Calligraphy的原始库有一个get()
获取字体路径的方法。例子:
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
CalligraphyConfig.get().getFontPath();
我用它来设置我的输入,例如:
Typeface face = Typeface.createFromAsset(getAssets(), CalligraphyConfig.get().getFontPath());
passwordInput.setTypeface(face, Typeface.NORMAL);
现在,在Calligraphy 3中没有 CalligraphyConfig 的类。
无法解析符号“CalligraphyConfig”
我已按照安装说明进行操作。
我找不到使用新版本 Calligraphy 获取字体路径的方法。获得它的新方法是什么?
我的目标是使用新的Calligraphy 3获取字体路径。