summaryrefslogtreecommitdiff
path: root/native/android/system_fonts.cpp
AgeCommit message (Collapse)Author
2019-10-29Make AFont_getLocale workSeigo Nonaka
There are multiple problems here: - Java Font.equals and hashCode doesn't look at locale list. Due to this issue, the CTS tests have been passing unexpectedly. - The null pointer check in the AFont_getLoacle was inversed. Should return only when it is non-null. - Looks like we cannot get the parent's attribute which always returns null. Instead, read the "lang" attribute when we read the family tag. Bug: 139201432 Test: atest NativeSystemFontTest Test: atest TypefaceEqualsTest Change-Id: I0514847bbf46a73358afab374ccfce2db09b2ec0
2019-04-05Pass runMax = 1 to stop unnecessary itemizationSeigo Nonaka
Bug: 130044291 Test: N/A Change-Id: I124b211f9a3db24d4c70c6d6bc0b1a9fdc93b9f7
2019-04-02Update the system font implementation for new API changeSeigo Nonaka
Bug: 129559385 Test: TEMPORARY_DISABLE_PATH_RESTRICTIONS=true m ndk-docs Test: atest CtsGraphicsTestCases:android.graphics.fonts Change-Id: I73fd366762e4923886529a49a682cdc1cdceb1aa
2018-10-30Implement matchFamilyStyleCharacter APISeigo Nonaka
Bug: 114479228 Test: atest CtsGraphicsTestCases:android.graphics.fonts Change-Id: Ieaa4251e0ba7c0479f048147141a81766016e9b6
2018-10-01Read OEM customization XMLSeigo Nonaka
We now moved OEM font customization outside of system image and all system font modifications are in /product directory. In this CL, only customizationType="new-named-family" is supported. My previous CL If58711fc038898175fcad0ae095865312bd738e2 breaks test cases in CtsGraphicsTestCases but TreeHugger didn't catch my mistake becasue the test cases are not annotated as Presubmit. Bug: 111544833 Test: atest CtsGraphicsTestCases:android.graphics.fonts Change-Id: I7a7a2d91d8f37c51944d598dde7562733eae5626
2018-09-13Add native font enumeration API implementationSeigo Nonaka
ASystemFont API provides an ability of enumerating the system available font files with some additional information. ASystemFont reads /system/etc/fonts.xml and give the information to developers. Lots of developers reads fonts.xml by themselves but that is not a part of public API and the structure is subject to change. This API is a replacement of the reading fonts.xml by developers. Bug: 111861508 Test: atest NativeSystemFontTest Change-Id: I992902228650303eb10f486f1ec7838f218c15e7