summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2017-06-29 17:50:33 -0700
committerSeigo Nonaka <nona@google.com>2017-07-13 10:47:48 -0700
commit0d253e46aa0b4cb2ea56e220812aeab92de64ae1 (patch)
tree790b3171f79c25b3be1878d0e2070be84a84fb4e /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentab78a4707b276a58c758e5a7122a21d75403497b (diff)
Implement family fallback.
Introduce new attribute "fallbackFor" to font element. By specifying name of the family to this attribute, that font is used when the developer specifies the font family. For example, if fonts.xml has the following family entry, <family lang="ja"> <font fallbackFor="serif">NotoSerifJP-Regular.ttf</font> <font>NotoSansJP-Regular.ttf</font> </family> the Japanese text is rendered by NotoSansJP-Regular.ttf by default. Then, if developer specifies fontFamily="serif" in TextView, the Japanese text is rendered by NotoSerifJP-Regular.ttf. Bug: 37328609 Bug: 31491668 Test: bit FrameworksCoreTests:android.graphics.TypefaceSystemFallbackTest Change-Id: I2744db7384c8056795e841c88b387545434131f4
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions