OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "experimental.fontSettings", | 7 "namespace": "experimental.fontSettings", |
8 "types": [ | 8 "types": [ |
9 { | 9 { |
10 "id": "FontName", | 10 "id": "FontName", |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 "type": "function", | 69 "type": "function", |
70 "description": "Sets the font name of the current setting for a given sc
ript and generic font family.", | 70 "description": "Sets the font name of the current setting for a given sc
ript and generic font family.", |
71 "parameters": [ | 71 "parameters": [ |
72 { | 72 { |
73 "name": "details", | 73 "name": "details", |
74 "type": "object", | 74 "type": "object", |
75 "properties": { | 75 "properties": { |
76 "script": { | 76 "script": { |
77 "type": "string", | 77 "type": "string", |
78 "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"], | 78 "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"], |
79 "description": "The ISO 15924 script code for which the font set
ting should be retrieved. If omitted, the global script font setting is retrieve
d.", | 79 "description": "The ISO 15924 script code for which the font set
ting should be set. If omitted, the global script font setting is set.", |
80 "optional": true | 80 "optional": true |
81 }, | 81 }, |
82 "genericFamily": { | 82 "genericFamily": { |
83 "type": "string", | 83 "type": "string", |
84 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "
fantasy"], | 84 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "
fantasy"], |
85 "description": "The CSS generic font family for which the font s
etting should be retrieved." | 85 "description": "The CSS generic font family for which the font s
etting should be set." |
86 }, | 86 }, |
87 "fontName": { | 87 "fontName": { |
88 "type": "string", | 88 "type": "string", |
89 "description": "The font name." | 89 "description": "The font name." |
90 } | 90 } |
91 } | 91 } |
92 }, | 92 }, |
93 { | 93 { |
94 "type": "function", | 94 "type": "function", |
95 "name": "callback", | 95 "name": "callback", |
(...skipping 16 matching lines...) Expand all Loading... |
112 "type": "array", | 112 "type": "array", |
113 "items": { "$ref": "FontName" } | 113 "items": { "$ref": "FontName" } |
114 } | 114 } |
115 ] | 115 ] |
116 } | 116 } |
117 ] | 117 ] |
118 } | 118 } |
119 ] | 119 ] |
120 } | 120 } |
121 ] | 121 ] |
OLD | NEW |