Status Update
Comments
au...@google.com <au...@google.com>
no...@google.com <no...@google.com> #2
Over to Ryan who is currently working on font in Android X Core.
Couple of questions and notes.
- What exception is thrown during loading font?
- What devices are you using? Does this happen on Pixel?
- We cannot check in a raw font file. If it is copied from other third party projects, please don't include it.
ry...@google.com <ry...@google.com> #4
Hi,
Could you provide the information requested in
We're unable to use a raw font file from unknown sources, so it would be helpful to understand the issue so that we can recreate it without that specific file. If it's from a specific source, please let us know that source so that we can evaluate whether it might be usable.
Thanks!
si...@gmail.com <si...@gmail.com> #5
Apologies, this font file was provided by our designer. However, it is currently the Chinese New Year holiday, and we are all on break. I am unable to reach her at the moment. I will confirm the origin of this font with her as soon as we return to work. The font 'helvetica_roman_semib' can be downloaded online in its regular weight, but it's possible she made some modifications to it.
Description
When I use the ResourcesCompat.getFont() method to load the helvetica-roman-semib font, the application crashes. I discovered that the issue arises because the TypefaceCompat.createFromResourcesFontFile() method uses different sTypefaceCompatImpl implementations. Specifically, the sTypefaceCompatImpl implementations for Build.VERSION.SDK_INT >= Build.VERSION_CODES.O cause the application to crash.
please seehttps://github.com/androidx/androidx/pull/752