createFromAsset接口是用来生成typeface的。
For Example:
Typeface tf = Typeface.createFromAsset(mContext.getAssets(), "simple.ttf");
如果是用createFromAsset的接口生成新的typeface,
那么要把simple.ttf放到对应的应用的assets目录下,
否则会提示native typeface cannot be made.
另外,如果指定的字库是在系统下的,可以用绝对路径来生成typeface.
For Example:
typeface.createFromFile("/system/fonts/DroidSansFallback.ttf")