| Index: chrome/common/extensions/docs/experimental.fontSettings.html
|
| diff --git a/chrome/common/extensions/docs/experimental.fontSettings.html b/chrome/common/extensions/docs/experimental.fontSettings.html
|
| index b339467b8d7d6075cb57294a0cf0750c9fb13b46..3d00a040b08ef964df85fd41e936128a9b7f057a 100644
|
| --- a/chrome/common/extensions/docs/experimental.fontSettings.html
|
| +++ b/chrome/common/extensions/docs/experimental.fontSettings.html
|
| @@ -317,15 +317,12 @@ generic font family.</p>
|
| <p>When a webpage specifies a language, Chrome selects the font based on the
|
| setting for the corresponding language script. If no language is specified,
|
| Chrome uses the setting for the default, or global, script.</p>
|
| -<p>The supported language scripts are based on ISO 15924 script codes and listed
|
| -in the API reference below. Technically, Chrome settings are not strictly
|
| +<p>The supported language scripts are specified by ISO 15924 script code and
|
| +listed in the API reference below. Technically, Chrome settings are not strictly
|
| per-script but also depend on language. For example, Chrome chooses the font for
|
| -Hangul (ISO 15924 script code "Hang") when a webpage specifies Korean language,
|
| -and uses this font not just for Hangul script but for everything the font
|
| -covers, such as Hanja.</p>
|
| -<p>Although ISO 15924 provides script codes like "Japn" for Japanese and "Kore"
|
| -for Korean, these codes are newer than "Hrkt" and "Hang" which Chrome continues
|
| -to use for compatibility purposes.</p>
|
| +Cyrillic (ISO 15924 script code "Cyrl") when a webpage specifies the Russian
|
| +language, and uses this font not just for Cyrillic script but for everything the
|
| +font covers, such as Latin.</p>
|
| <h2 id="examples">Examples</h2>
|
| <p>The following code gets the standard font for Arabic.</p>
|
| <pre>chrome.experimental.fontSettings.getFont(
|
| @@ -335,7 +332,7 @@ to use for compatibility purposes.</p>
|
| </pre>
|
| <p>The next snippet sets the sans-serif font for Japanese.</p>
|
| <pre>chrome.experimental.fontSettings.setFont(
|
| - { genericFamily: 'sansserif', script: 'Hrkt', fontName: 'IPAPGothic' }
|
| + { genericFamily: 'sansserif', script: 'Jpan', fontName: 'IPAPGothic' }
|
| );
|
| </pre>
|
| <p>You can find a sample extension using the Font Settings API in the
|
| @@ -3061,7 +3058,7 @@ directory. For other examples and for help in viewing the source code, see
|
| <span id="typeTemplate">
|
| <span>
|
| <span>string</span>
|
| - <span>["Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor", "Grek", "Gujr", "Guru", "Hang", "Hans", "Hant", "Hebr", "Hrkt", "Knda", "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu", "Thaa", "Thai", "Tibt", "Yiii", "Zyyy"]</span>
|
| + <span>["Arab", "Armn", "Beng", "Cans", "Cher", "Cyrl", "Deva", "Ethi", "Geor", "Grek", "Gujr", "Guru", "Hans", "Hant", "Hebr", "Jpan", "Knda", "Kore", "Khmr", "Laoo", "Mlym", "Mong", "Mymr", "Orya", "Sinh", "Taml", "Telu", "Thaa", "Thai", "Tibt", "Yiii", "Zyyy"]</span>
|
| </span>
|
| </span>
|
| )
|
|
|