summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorSally <sallyyuen@google.com>2020-09-24 18:27:31 +0000
committerSally <sallyyuen@google.com>2020-09-28 16:39:39 +0000
commit5670baef9b56cf5451a7b5d8f0853d5c9a781294 (patch)
treecd2d45e2098a4046565793c65814987452c8110c /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parente636cf3121b093bce9060adfcdd4cf6823085728 (diff)
Add support for Force Bold Text
This CL: 1) Saves the original unbolded typeface and returns this in getTypeface 2) Sets Paint's typeface to a bolded one if the Setting is enabled, or a config value is YES 3) Bolds by adding 300 to the current font weight (400 is normal, 700 is considered bold, weight is capped at 1000) 4) Resets the Paint typeface to the original value if the Setting is disabled, or the config value is not YES Bug: b/110991537 Test: manual; unit tests Change-Id: If21190fd5ad9d2e1721ffe464945f00ff20f62c6
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions