summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSeigo Nonaka <nona@google.com>2016-11-30 14:04:21 -0800
committerSeigo Nonaka <nona@google.com>2017-01-12 18:11:03 +0900
commitba3028c1fc9fca2d45acc841557da2c9a83923bf (patch)
tree1accfd45ea89fd4ccbd4e1e2b3816ac36e799690 /tools/aapt2/java/JavaClassGenerator_test.cpp
parente4e375c7493a06af89151b7cbd44cf07930d521b (diff)
Introduce set/getFontVariationSettings.
This CL enables developers to specify axis values to the underlying font collection. The specification of the font variation settings is the same as the CSS font-variation-settings attribute in CSS working draft as of 2016-11-30. Code example: Here is an example to set width 100 and weight 1.5. TextView tv = (TextView) findViewById(R.id.textView); tv.setFontVariationSettings("'wdth' 100, 'wght' 1.5"); Bug: 33062398 Test: Manually done. Ran FrameworksGraphicsTests, CtsGraphicsTestCases and CtsWidgetTestCases Change-Id: I249d464f8cdaa56017a987588b94ed685aadeb58
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions