Files
frameworks_base/graphics/java/android/graphics
Seigo Nonaka ba3028c1fc 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
2017-01-12 18:11:03 +09:00
..
2016-10-17 11:33:28 -07:00
2016-12-16 09:15:07 -08:00
2016-09-19 12:52:50 -07:00
2016-10-17 11:33:28 -07:00
2016-12-13 16:52:08 -08:00
2016-12-13 16:52:08 -08:00
2016-06-29 16:09:20 -07:00
2016-12-16 10:23:21 -08:00
2016-09-19 12:52:50 -07:00
2016-09-19 12:52:50 -07:00