是否可以在SD卡中存儲的android中使用自定義字體?到目前爲止,我所看到的字體文件必須位於assets文件夾中。請告訴我,我錯了。Android:在SD卡中加載自定義字體
4
A
回答
3
我還沒有嘗試過自己,但配方指出你也許可以做到這一點通過使用
Typeface.createFromFile(String path)
http://androidcookbook.com/Recipe.seam;jsessionid=A2DD7A11C804B7C7646DCA883AA452FC?recipeId=1141
8
Typeface.createFromFile()
需要String
路徑或File
。
Typeface typeface = Typeface.createFromFile(
new File(Environment.getExternalStorageDirectory(), "font.ttf"));
相關問題
- 1. Android自定義字體加載錯誤
- 2. 在Android 4.2(API 17)中加載自定義字體的問題
- 3. CoreText不加載自定義字體
- 4. 自定義字體未被加載?
- 5. 自定義字體不加載
- 6. 如何加載自定義字體?
- 7. PixiJS:加載自定義字體
- 8. 自定義CSS字體加載問題
- 9. 自定義圖標字體未加載
- 10. @ font-face不加載自定義字體
- 11. 加載自定義字體失敗
- 12. 自定義字體僅在加載字體時才顯示
- 13. Android下載Zip到SD卡?
- 14. Android ListActivity自定義字體
- 15. 自定義Android字體
- 16. android:什麼是首選,加載自定義字體或圖像?
- 17. 來自SD卡的Android Widget
- 18. 圖片加載SD卡從
- 19. 添加自定義字體
- 20. 在Windows 8 Metro應用中加載自定義字體
- 21. 如何在imagestring()中加載我的自定義字體?
- 22. 自定義字體不加載在Rails中
- 23. 在ActionScript中加載自定義字體3
- 24. Android中的ADB安裝/卸載SD卡
- 25. 在Android中登錄SD卡
- 26. 在android中寫入SD卡
- 27. 在SD卡的Android
- 28. SD卡中的Android
- 29. 在Android中向主題添加自定義字體
- 30. 自定義字體在Android的