rt

解决方案 »

  1.   

    用typeface引入外部字体文件就可以,
      

  2.   

     do not understand #!'s answer
      

  3.   

    在xml文件中使用android:textStyle=”bold” 可以将英文设置成粗体, 但是不能将中文设置成粗体, 
    将中文设置成粗体的方法是: TextView tv = (TextView)findViewById(R.id.TextView01); 
    TextPaint tp = tv.getPaint(); 
    tp.setFakeBoldText(true); 
      

  4.   

    上面是我搜的,不过我试了之后,似乎中文的粗体还是不行
    android:textStyle=”bold|italic”
      

  5.   

    TextView custom=newTextView(this);
    //字体MgOpenCosmeticaBold.ttf放置于assets/font/路径下
    typeface=Typeface.createFromAsset(getAssets(),"font/MgOpenCosmeticaBold.ttf");
    custom.setTypeface(typeface);