我正在使用一种字体,并且我想让它变粗但它不会变粗,如果在文本中设置字体,如何设置文本样式。
century_gothic = Typeface.createFromAsset(context.getAssets(), "century_gothic.ttf");
TextView dialog_text = (TextView)layout.findViewById(R.id.textdialog);
dialog_text.setText(text);
dialog_text.setTypeface(CustomDialog.century_gothic);
dialog_text.setTypeface(Typeface.DEFAULT_BOLD);