下面是我自己写的Demo出来的效果!

android使用艺术字,自定义字体

具体操作步骤也比较简单,先建一个assets文件夹,如下图

android使用艺术字,自定义字体

接下来把字体库拷贝到asstes中,字体库有需要的话可以给我发邮件,我的qq邮箱:[email protected]。在TextView写上要显示的文字,在代码中使用,如下:

  TextView tvOne = findViewById(R.id.tv_one);
        Typeface typeface = Typeface.createFromAsset(getAssets(), "05汉仪乐喵字体.ttf");
        tvOne.setTypeface(typeface);//第一句话“离离原上草,一岁一枯荣”引入lanti.ttf字体库

 

 

 

相关文章:

  • 2021-09-05
  • 2021-11-28
  • 2021-05-08
  • 2021-12-25
  • 2022-12-23
  • 2021-12-14
  • 2021-05-20
猜你喜欢
  • 2022-01-13
  • 2021-12-21
  • 2021-12-21
  • 2021-09-16
  • 2021-12-18
  • 2021-09-20
  • 2022-12-23
相关资源
相似解决方案