Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试开发一个 android 应用程序来显示马拉雅拉姆语新闻。我有包含ISO-8859-5宪章实体的数据库。
ISO-8859-5
例子:
'çÁxÞ æØaV ææµÎÞx¢'
我想以马拉雅拉姆字体显示它。我应该怎么办?
嗨,您应该下载马来亚语 ttf 文件并将其存储在资产文件夹中,并在您的代码中使用它,请参阅以下代码TextView text = (TextView) findViewById(R.id.textview03); Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Molot.otf"); text.setTypeface(tf);
TextView text = (TextView) findViewById(R.id.textview03); Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Molot.otf"); text.setTypeface(tf);