summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2021-01-17 15:32:01 -0800
committerSeigo Nonaka <nona@google.com>2021-01-19 15:55:41 -0800
commitf5859819cdbfe5e3e7f3eefbe4530ca3170f542d (patch)
tree0b93f157233f920c67180a99d5f403d11d466a2c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent37fa2b76f1e830ea31f3686d3f8d6df038d134e4 (diff)
Refactor font parser for making SystemApi.
This CL breaks system font initialization step into three sub-steps to be able to expose font configuration as SystemApi. The font initialization step is now following three steps: 1. Parse XML files. This is SystemFonts#getSystemFontConfig and SystemFonts#getSystemPreinstalledFontConfig. The first API gives you the current FontConfig and the second API gives you plain vanilla FontConfig without any updates. 2. Build font family fallback list from FontConfig. The font family fallback is a intermediate state that can be used for custom Typeface. This state is kept for dumping in shell command later. This is useful for checking what font will be used by the fallback since family fallback is still printable. 3. Build typeface mapping. The typeface mapping is the final state to be used by application. This is no longer printable. Bug: 173619554 Test: atest TypefaceTest TypefaceSystemFallbackTest StaticLayoutTest Test: atest CtsGraphicsTestCases CtsTextTestCases Change-Id: I4e21fc7c41f2fb7975d03c1d5f5536a23e8abb09
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions