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": "fontSettings",
8 "description": "Use the <code>chrome.fontSettings</code> API to manage Chrome's font settings.",
13 "description": "Represents a font name.",
17 "description": "The font ID."
21 "description": "The display name of the font."
28 "enum": [ "Afak", "Arab", "Armi", "Armn", "Avst", "Bali", "Bamu", "Bass", "Batk",
29 "Beng", "Blis", "Bopo", "Brah", "Brai", "Bugi", "Buhd", "Cakm", "Cans",
30 "Cari", "Cham", "Cher", "Cirt", "Copt", "Cprt", "Cyrl", "Cyrs", "Deva",
31 "Dsrt", "Dupl", "Egyd", "Egyh", "Egyp", "Elba", "Ethi", "Geor", "Geok",
32 "Glag", "Goth", "Gran", "Grek", "Gujr", "Guru", "Hang", "Hani", "Hano",
33 "Hans", "Hant", "Hebr", "Hluw", "Hmng", "Hung", "Inds", "Ital", "Java",
34 "Jpan", "Jurc", "Kali", "Khar", "Khmr", "Khoj", "Knda", "Kpel", "Kthi",
35 "Lana", "Laoo", "Latf", "Latg", "Latn", "Lepc", "Limb", "Lina", "Linb",
36 "Lisu", "Loma", "Lyci", "Lydi", "Mand", "Mani", "Maya", "Mend", "Merc",
37 "Mero", "Mlym", "Moon", "Mong", "Mroo", "Mtei", "Mymr", "Narb", "Nbat",
38 "Nkgb", "Nkoo", "Nshu", "Ogam", "Olck", "Orkh", "Orya", "Osma", "Palm",
39 "Perm", "Phag", "Phli", "Phlp", "Phlv", "Phnx", "Plrd", "Prti", "Rjng",
40 "Roro", "Runr", "Samr", "Sara", "Sarb", "Saur", "Sgnw", "Shaw", "Shrd",
41 "Sind", "Sinh", "Sora", "Sund", "Sylo", "Syrc", "Syre", "Syrj", "Syrn",
42 "Tagb", "Takr", "Tale", "Talu", "Taml", "Tang", "Tavt", "Telu", "Teng",
43 "Tfng", "Tglg", "Thaa", "Thai", "Tibt", "Tirh", "Ugar", "Vaii", "Visp",
44 "Wara", "Wole", "Xpeo", "Xsux", "Yiii", "Zmth", "Zsym", "Zyyy" ],
45 "description": "An ISO 15924 script code. The default, or global, script is represented by script code \"Zyyy\"."
48 "id": "GenericFamily",
50 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "fantasy"],
51 "description": "A CSS generic font family."
54 "id": "LevelOfControl",
55 "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",
57 "enum": ["not_controllable", "controlled_by_other_extensions", "controllable_by_this_extension", "controlled_by_this_extension"]
63 "description": "Clears the font set by this extension, if any.",
71 "description": "The script for which the font should be cleared. If omitted, the global script font setting is cleared.",
75 "$ref": "GenericFamily",
76 "description": "The generic font family for which the font should be cleared."
90 "description": "Gets the font for a given script and generic font family.",
98 "description": "The script for which the font should be retrieved. If omitted, the font setting for the global script (script code \"Zyyy\") is retrieved.",
102 "$ref": "GenericFamily",
103 "description": "The generic font family for which the font should be retrieved."
118 "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."
121 "$ref": "LevelOfControl",
122 "description": "The level of control this extension has over the setting."
132 "description": "Sets the font for a given script and generic font family.",
139 "$ref": "ScriptCode",
140 "description": "The script code which the font should be set. If omitted, the font setting for the global script (script code \"Zyyy\") is set.",
144 "$ref": "GenericFamily",
145 "description": "The generic font family for which the font should be set."
149 "description": "The font ID. The empty string means to fallback to the global script font setting."
162 "name": "getFontList",
163 "description": "Gets a list of fonts on the system.",
172 "items": { "$ref": "FontName" }
179 "name": "clearDefaultFontSize",
180 "description": "Clears the default font size set by this extension, if any.",
186 "description": "This parameter is currently unused.",
198 "name": "getDefaultFontSize",
199 "description": "Gets the default font size.",
205 "description": "This parameter is currently unused.",
219 "description": "The font size in pixels."
222 "$ref": "LevelOfControl",
223 "description": "The level of control this extension has over the setting."
232 "name": "setDefaultFontSize",
233 "description": "Sets the default font size.",
241 "description": "The font size in pixels."
254 "name": "clearDefaultFixedFontSize",
255 "description": "Clears the default fixed font size set by this extension, if any.",
261 "description": "This parameter is currently unused.",
273 "name": "getDefaultFixedFontSize",
274 "description": "Gets the default size for fixed width fonts.",
280 "description": "This parameter is currently unused.",
294 "description": "The font size in pixels."
297 "$ref": "LevelOfControl",
298 "description": "The level of control this extension has over the setting."
307 "name": "setDefaultFixedFontSize",
308 "description": "Sets the default size for fixed width fonts.",
316 "description": "The font size in pixels."
329 "name": "clearMinimumFontSize",
330 "description": "Clears the minimum font size set by this extension, if any.",
336 "description": "This parameter is currently unused.",
348 "name": "getMinimumFontSize",
349 "description": "Gets the minimum font size.",
355 "description": "This parameter is currently unused.",
369 "description": "The font size in pixels."
372 "$ref": "LevelOfControl",
373 "description": "The level of control this extension has over the setting."
382 "name": "setMinimumFontSize",
383 "description": "Sets the minimum font size.",
391 "description": "The font size in pixels."
406 "name": "onFontChanged",
407 "description": "Fired when a font setting changes.",
415 "description": "The font ID. See the description in <code>getFont</code>."
418 "$ref": "ScriptCode",
419 "description": "The script code for which the font setting has changed.",
423 "$ref": "GenericFamily",
424 "description": "The generic font family for which the font setting has changed."
427 "$ref": "LevelOfControl",
428 "description": "The level of control this extension has over the setting."
435 "name": "onDefaultFontSizeChanged",
436 "description": "Fired when the default font size setting changes.",
444 "description": "The font size in pixels."
447 "$ref": "LevelOfControl",
448 "description": "The level of control this extension has over the setting."
455 "name": "onDefaultFixedFontSizeChanged",
456 "description": "Fired when the default fixed font size setting changes.",
464 "description": "The font size in pixels."
467 "$ref": "LevelOfControl",
468 "description": "The level of control this extension has over the setting."
475 "name": "onMinimumFontSizeChanged",
476 "description": "Fired when the minimum font size setting changes.",
484 "description": "The font size in pixels."
487 "$ref": "LevelOfControl",
488 "description": "The level of control this extension has over the setting."