本文介紹了使用自定義字體時出現問題 - “無法制作原生字體";的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我正在嘗試使用我在互聯網上找到的字體,但問題是我得到了一個帶有無法制作原生字體"的 FC.
I'm trying to use a font I found on the internet, but the problem is that I get an FC with "native typeface cannot be made".
這是我的 ListVIew 的 getView 中的代碼:
Here is the code in the getView of my ListVIew:
holder.tv_SuraName =(TextView)convertView.findViewById(R.id.Start_Name);
holder.tv_SuraName.setTypeface(Typeface.createFromAsset(mContext.getAssets(), "suralist_font.ttf"));
誰能告訴我為什么我可以使用自定義 rom?你可以得到它這里 ..文件是.ttf
Can anyone tell me why can I use the custom rom? You can get it HERE .. the file is .ttf
推薦答案
字體文件由于某種原因損壞或不受支持.您可以將其放在 SD 卡上并從文件中加載,以確保您的資產沒有問題.
The font file is either corrupt or unsupported for some reason. You can drop it on the SD card and load it from file, to make sure it's not a problem with your assets.
這篇關于使用自定義字體時出現問題 - “無法制作原生字體";的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!