Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4348)

Unified Diff: chrome/common/extensions/docs/static/experimental.fontSettings.html

Issue 10532105: Use ICU script code "Jpan" instead of "Hrkt" in Japanese pref names (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/samples.json ('k') | chrome/common/pref_names.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/static/experimental.fontSettings.html
diff --git a/chrome/common/extensions/docs/static/experimental.fontSettings.html b/chrome/common/extensions/docs/static/experimental.fontSettings.html
index 31c17b9b00bb9f0a56c603ec8e386b23f7ad242c..18851c29b1c16e85ec103cd5d00f46ac6dac908f 100644
--- a/chrome/common/extensions/docs/static/experimental.fontSettings.html
+++ b/chrome/common/extensions/docs/static/experimental.fontSettings.html
@@ -28,16 +28,12 @@ generic font family.</p>
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>
@@ -51,7 +47,7 @@ chrome.experimental.fontSettings.getFont(
<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: 'MS PGothic' }
);
</pre>
« no previous file with comments | « chrome/common/extensions/docs/samples.json ('k') | chrome/common/pref_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698