1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 "namespace": "experimental.fontSettings",
12 "description": "Represents a font name.",
16 "description": "The font ID."
20 "description": "The display name of the font."
27 "enum": [ "Afak", "Arab", "Armi", "Armn", "Avst", "Bali", "Bamu", "Bass", "Batk",
28 "Beng", "Blis", "Bopo", "Brah", "Brai", "Bugi", "Buhd", "Cakm", "Cans",
29 "Cari", "Cham", "Cher", "Cirt", "Copt", "Cprt", "Cyrl", "Cyrs", "Deva",
30 "Dsrt", "Dupl", "Egyd", "Egyh", "Egyp", "Elba", "Ethi", "Geor", "Geok",
31 "Glag", "Goth", "Gran", "Grek", "Gujr", "Guru", "Hang", "Hani", "Hano",
32 "Hans", "Hant", "Hebr", "Hluw", "Hmng", "Hung", "Inds", "Ital", "Java",
33 "Jpan", "Jurc", "Kali", "Khar", "Khmr", "Khoj", "Knda", "Kpel", "Kthi",
34 "Lana", "Laoo", "Latf", "Latg", "Latn", "Lepc", "Limb", "Lina", "Linb",
35 "Lisu", "Loma", "Lyci", "Lydi", "Mand", "Mani", "Maya", "Mend", "Merc",
36 "Mero", "Mlym", "Moon", "Mong", "Mroo", "Mtei", "Mymr", "Narb", "Nbat",
37 "Nkgb", "Nkoo", "Nshu", "Ogam", "Olck", "Orkh", "Orya", "Osma", "Palm",
38 "Perm", "Phag", "Phli", "Phlp", "Phlv", "Phnx", "Plrd", "Prti", "Rjng",
39 "Roro", "Runr", "Samr", "Sara", "Sarb", "Saur", "Sgnw", "Shaw", "Shrd",
40 "Sind", "Sinh", "Sora", "Sund", "Sylo", "Syrc", "Syre", "Syrj", "Syrn",
41 "Tagb", "Takr", "Tale", "Talu", "Taml", "Tang", "Tavt", "Telu", "Teng",
42 "Tfng", "Tglg", "Thaa", "Thai", "Tibt", "Tirh", "Ugar", "Vaii", "Visp",
43 "Wara", "Wole", "Xpeo", "Xsux", "Yiii", "Zmth", "Zsym", "Zyyy" ],
44 "description": "An ISO 15924 script code. The default, or global, script is represented by script code \"Zyyy\"."
47 "id": "GenericFamily",
49 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy"],
50 "description": "A CSS generic font family."
53 "id": "LevelOfControl",
54 "description": "One of<br><var>not_controllable</var>: cannot be controlled by any extension<br><var>controlled_by_other_extensions</var>: controlled by extensions with higher precedence<br><var>controllable_by_this_extension</var>: can be controlled by this extension<br><var>controlled_by_this_extension</var>: controlled by this extension",
56 "enum": ["not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", "controlled_by_this_extension"]
62 "description": "Clears the font set by this extension, if any.",
70 "description": "The script for which the font should be cleared. If omitted, the global script font setting is cleared.",
74 "$ref": "GenericFamily",
75 "description": "The generic font family for which the font should be cleared."
89 "description": "Gets the font for a given script and generic font family.",
97 "description": "The script for which the font should be retrieved. If omitted, the font setting for the global script (script code \"Zyyy\") is retrieved.",
101 "$ref": "GenericFamily",
102 "description": "The generic font family for which the font should be retrieved."
117 "description": "The font ID. Rather than the literal font ID preference value, this may be the ID of the font that the system resolves the preference value to. So, <var>fontId</var> can differ from the font passed to <code>setFont</code>, if, for example, the font is not available on the system. The empty string signifies fallback to the global script font setting."
120 "$ref": "LevelOfControl",
121 "description": "The level of control this extension has over the setting."
131 "description": "Sets the font for a given script and generic font family.",
138 "$ref": "ScriptCode",
139 "description": "The script code which the font should be set. If omitted, the font setting for the global script (script code \"Zyyy\") is set.",
143 "$ref": "GenericFamily",
144 "description": "The generic font family for which the font should be set."
148 "description": "The font ID. The empty string means to fallback to the global script font setting."
161 "name": "getFontList",
162 "description": "Gets a list of fonts on the system.",
171 "items": { "$ref": "FontName" }
178 "name": "clearDefaultFontSize",
179 "description": "Clears the default font size set by this extension, if any.",
185 "description": "This parameter is currently unused.",
197 "name": "getDefaultFontSize",
198 "description": "Gets the default font size.",
204 "description": "This parameter is currently unused.",
218 "description": "The font size in pixels."
221 "$ref": "LevelOfControl",
222 "description": "The level of control this extension has over the setting."
231 "name": "setDefaultFontSize",
232 "description": "Sets the default font size.",
240 "description": "The font size in pixels."
253 "name": "clearDefaultFixedFontSize",
254 "description": "Clears the default fixed font size set by this extension, if any.",
260 "description": "This parameter is currently unused.",
272 "name": "getDefaultFixedFontSize",
273 "description": "Gets the default size for fixed width fonts.",
279 "description": "This parameter is currently unused.",
293 "description": "The font size in pixels."
296 "$ref": "LevelOfControl",
297 "description": "The level of control this extension has over the setting."
306 "name": "setDefaultFixedFontSize",
307 "description": "Sets the default size for fixed width fonts.",
315 "description": "The font size in pixels."
328 "name": "clearMinimumFontSize",
329 "description": "Clears the minimum font size set by this extension, if any.",
335 "description": "This parameter is currently unused.",
347 "name": "getMinimumFontSize",
348 "description": "Gets the minimum font size.",
354 "description": "This parameter is currently unused.",
368 "description": "The font size in pixels."
371 "$ref": "LevelOfControl",
372 "description": "The level of control this extension has over the setting."
381 "name": "setMinimumFontSize",
382 "description": "Sets the minimum font size.",
390 "description": "The font size in pixels."
405 "name": "onFontChanged",
406 "description": "Fired when a font setting changes.",
414 "description": "The font ID. See the description in <code>getFont</code>."
417 "$ref": "ScriptCode",
418 "description": "The script code for which the font setting has changed.",
422 "$ref": "GenericFamily",
423 "description": "The generic font family for which the font setting has changed."
426 "$ref": "LevelOfControl",
427 "description": "The level of control this extension has over the setting."
434 "name": "onDefaultFontSizeChanged",
435 "description": "Fired when the default font size setting changes.",
443 "description": "The font size in pixels."
446 "$ref": "LevelOfControl",
447 "description": "The level of control this extension has over the setting."
454 "name": "onDefaultFixedFontSizeChanged",
455 "description": "Fired when the default fixed font size setting changes.",
463 "description": "The font size in pixels."
466 "$ref": "LevelOfControl",
467 "description": "The level of control this extension has over the setting."
474 "name": "onMinimumFontSizeChanged",
475 "description": "Fired when the minimum font size setting changes.",
483 "description": "The font size in pixels."
486 "$ref": "LevelOfControl",
487 "description": "The level of control this extension has over the setting."