| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "experimental.fontSettings", | 3 "namespace": "experimental.fontSettings", |
| 4 "types": [ |
| 5 { |
| 6 "id": "FontName", |
| 7 "type": "object", |
| 8 "description": "Represents a font name.", |
| 9 "properties": { |
| 10 "fontName": { |
| 11 "type": "string", |
| 12 "description": "The font name." |
| 13 }, |
| 14 "localizedName": { |
| 15 "type": "string", |
| 16 "description": "The font name localized for the current locale." |
| 17 } |
| 18 } |
| 19 } |
| 20 ], |
| 4 "functions": [ | 21 "functions": [ |
| 5 { | 22 { |
| 6 "name": "getFontName", | 23 "name": "getFontName", |
| 7 "type": "function", | 24 "type": "function", |
| 8 "description": "Gets the font name of the current setting for a given sc
ript and font family.", | 25 "description": "Gets the font name of the current setting for a given sc
ript and generic font family.", |
| 9 "parameters": [ | 26 "parameters": [ |
| 10 { | 27 { |
| 11 "name": "details", | 28 "name": "details", |
| 12 "type": "object", | 29 "type": "object", |
| 13 "properties": { | 30 "properties": { |
| 14 "script": { | 31 "script": { |
| 15 "type": "string", | 32 "type": "string", |
| 16 "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"], | 33 "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"], |
| 17 "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.", | 34 "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.", |
| 18 "optional": true | 35 "optional": true |
| (...skipping 20 matching lines...) Expand all Loading... |
| 39 } | 56 } |
| 40 } | 57 } |
| 41 } | 58 } |
| 42 ] | 59 ] |
| 43 } | 60 } |
| 44 ] | 61 ] |
| 45 }, | 62 }, |
| 46 { | 63 { |
| 47 "name": "setFontName", | 64 "name": "setFontName", |
| 48 "type": "function", | 65 "type": "function", |
| 49 "description": "Sets the font name of the current setting for a given sc
ript and font family.", | 66 "description": "Sets the font name of the current setting for a given sc
ript and generic font family.", |
| 50 "parameters": [ | 67 "parameters": [ |
| 51 { | 68 { |
| 52 "name": "details", | 69 "name": "details", |
| 53 "type": "object", | 70 "type": "object", |
| 54 "properties": { | 71 "properties": { |
| 55 "script": { | 72 "script": { |
| 56 "type": "string", | 73 "type": "string", |
| 57 "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"], | 74 "enum": ["Arab", "Hang", "Hans", "Hant", "Hrkt"], |
| 58 "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.", | 75 "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.", |
| 59 "optional": true | 76 "optional": true |
| 60 }, | 77 }, |
| 61 "genericFamily": { | 78 "genericFamily": { |
| 62 "type": "string", | 79 "type": "string", |
| 63 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "
fantasy"], | 80 "enum": ["standard", "sansserif", "serif", "fixed", "cursive", "
fantasy"], |
| 64 "description": "The CSS generic font family for which the font s
etting should be retrieved." | 81 "description": "The CSS generic font family for which the font s
etting should be retrieved." |
| 65 }, | 82 }, |
| 66 "fontName": { | 83 "fontName": { |
| 67 "type": "string", | 84 "type": "string", |
| 68 "description": "The font name." | 85 "description": "The font name." |
| 69 } | 86 } |
| 70 } | 87 } |
| 71 }, | 88 }, |
| 72 { | 89 { |
| 73 "type": "function", | 90 "type": "function", |
| 74 "name": "callback", | 91 "name": "callback", |
| 75 "optional": "true", | 92 "optional": "true", |
| 76 "parameters": [] | 93 "parameters": [] |
| 77 } | 94 } |
| 78 ] | 95 ] |
| 96 }, |
| 97 { |
| 98 "name": "getFontList", |
| 99 "type": "function", |
| 100 "description": "Gets a list of fonts on the system.", |
| 101 "parameters": [ |
| 102 { |
| 103 "type": "function", |
| 104 "name": "callback", |
| 105 "parameters": [ |
| 106 { |
| 107 "name": "results", |
| 108 "type": "array", |
| 109 "items": { "$ref": "FontName" } |
| 110 } |
| 111 ] |
| 112 } |
| 113 ] |
| 79 } | 114 } |
| 80 ] | 115 ] |
| 81 } | 116 } |
| 82 ] | 117 ] |
| OLD | NEW |