经过一段时间后,一些符号变为大胆的Android 4-5

时间:2018-04-16 09:37:37

标签: android fonts calligraphy

经过一段时间后,Android 4-5上的某些符号变为粗体。我们使用自定义字体ubuntг和库书法。

这是我们使用Calligrapy的代码:

    @Override protected void attachBaseContext(Context newBase) {
        super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
      }

CalligraphyUtils.applyFontToTextView(this, TypefaceUtils.load(assets, App.UBUNTU_REGULAR_TYPEFACE))

这就是它的外观

enter image description here

更新

使用标准Android way后一切正常

1 个答案:

答案 0 :(得分:1)

这是一个自2017年以来的知识问题,问题是"可能"与Locale设置相关。当您的应用程序变为背景和前景时,您的设备区域设置会发生变化,而书法无法处理,因此符号会自动恢复。

不幸的是,作者不善于跟踪/解决问题,因为您可以看到110 open issues

This是与您的问题相关的问题,它仍处于打开状态。