docs: fix "buidler" typos in Typeface.Builder
Change-Id: Ic27a4ea036ca5506793795bf838ff63355eeeaf8 test: make ds-docs bug: 119301911
This commit is contained in:
@@ -327,7 +327,7 @@ public class Typeface {
|
|||||||
* 1) Create Typeface from ttf file.
|
* 1) Create Typeface from ttf file.
|
||||||
* <pre>
|
* <pre>
|
||||||
* <code>
|
* <code>
|
||||||
* Typeface.Builder buidler = new Typeface.Builder("your_font_file.ttf");
|
* Typeface.Builder builder = new Typeface.Builder("your_font_file.ttf");
|
||||||
* Typeface typeface = builder.build();
|
* Typeface typeface = builder.build();
|
||||||
* </code>
|
* </code>
|
||||||
* </pre>
|
* </pre>
|
||||||
@@ -335,7 +335,7 @@ public class Typeface {
|
|||||||
* 2) Create Typeface from ttc file in assets directory.
|
* 2) Create Typeface from ttc file in assets directory.
|
||||||
* <pre>
|
* <pre>
|
||||||
* <code>
|
* <code>
|
||||||
* Typeface.Builder buidler = new Typeface.Builder(getAssets(), "your_font_file.ttc");
|
* Typeface.Builder builder = new Typeface.Builder(getAssets(), "your_font_file.ttc");
|
||||||
* builder.setTtcIndex(2); // Set index of font collection.
|
* builder.setTtcIndex(2); // Set index of font collection.
|
||||||
* Typeface typeface = builder.build();
|
* Typeface typeface = builder.build();
|
||||||
* </code>
|
* </code>
|
||||||
@@ -344,7 +344,7 @@ public class Typeface {
|
|||||||
* 3) Create Typeface with variation settings.
|
* 3) Create Typeface with variation settings.
|
||||||
* <pre>
|
* <pre>
|
||||||
* <code>
|
* <code>
|
||||||
* Typeface.Builder buidler = new Typeface.Builder("your_font_file.ttf");
|
* Typeface.Builder builder = new Typeface.Builder("your_font_file.ttf");
|
||||||
* builder.setFontVariationSettings("'wght' 700, 'slnt' 20, 'ital' 1");
|
* builder.setFontVariationSettings("'wght' 700, 'slnt' 20, 'ital' 1");
|
||||||
* builder.setWeight(700); // Tell the system that this is a bold font.
|
* builder.setWeight(700); // Tell the system that this is a bold font.
|
||||||
* builder.setItalic(true); // Tell the system that this is an italic style font.
|
* builder.setItalic(true); // Tell the system that this is an italic style font.
|
||||||
|
|||||||
Reference in New Issue
Block a user