安卓:在SD卡中加载自定义字体 [英] Android: load custom font in SD card

查看:356
本文介绍了安卓:在SD卡中加载自定义字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用Android的自定义字体存储在SD卡?我到目前为止看到的显示字体文件必须在资产文件夹。请告诉我,我错了。

Is it possible to use a custom font in android which is stored in the SD card? What I've seen so far indicates the font file must be in the assets folder. Please tell me I'm wrong.

推荐答案

我还没有尝试过自己,但配方状态,你也许可以用做它

I have not tried it myself but the recipe states you might be able to do it by using the

Typeface.createFromFile(String path)

<一个href="http://androidcookbook.com/Recipe.seam;jsessionid=A2DD7A11C804B7C7646DCA883AA452FC?recipeId=1141" rel="nofollow">http://androidcookbook.com/Recipe.seam;jsessionid=A2DD7A11C804B7C7646DCA883AA452FC?recipeId=1141

这篇关于安卓:在SD卡中加载自定义字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆