-
- Downloads
Read font attributes from buffer.
minikin::Font::typeface() is expensive because it will open the font file. Font attribute getters should avoid calling it. Bug: 188201287 Test: atest UpdatableSystemFontTest Test: atest CtsGraphicsTestCases:FontTest Test: atest CtsGraphicsTestCases:SystemFontsTest Change-Id: Ic8554f6dfacbe27ddfea6b375633c96bced2cc09
Showing
- libs/hwui/jni/Typeface.cpp 52 additions, 50 deletionslibs/hwui/jni/Typeface.cpp
- libs/hwui/jni/fonts/Font.cpp 42 additions, 12 deletionslibs/hwui/jni/fonts/Font.cpp
- tests/UpdatableSystemFontTest/Android.bp 1 addition, 0 deletionstests/UpdatableSystemFontTest/Android.bp
- tests/UpdatableSystemFontTest/EmojiRenderingTestApp/AndroidManifest.xml 1 addition, 0 deletions...eSystemFontTest/EmojiRenderingTestApp/AndroidManifest.xml
- tests/UpdatableSystemFontTest/EmojiRenderingTestApp/src/com/android/emojirenderingtestapp/GetAvailableFontsTestActivity.java 53 additions, 0 deletions.../emojirenderingtestapp/GetAvailableFontsTestActivity.java
- tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/UpdatableSystemFontTest.java 21 additions, 0 deletions.../android/updatablesystemfont/UpdatableSystemFontTest.java
Loading
Please register or sign in to comment