OLD | NEW |
1 <!-- BEGIN AUTHORED CONTENT --> | 1 <!-- BEGIN AUTHORED CONTENT --> |
2 <p>The Font Settings API allows you to manage Chrome's font settings.</p> | 2 <p>The Font Settings API allows you to manage Chrome's font settings.</p> |
3 <h2 id="manifest">Manifest</h2> | 3 <h2 id="manifest">Manifest</h2> |
4 <p>The Font Settings API is currently experimental, so you must declare the | 4 <p>The Font Settings API is currently experimental, so you must declare the |
5 "experimental" permission to use it. For example:</p> | 5 "experimental" permission to use it. For example:</p> |
6 <pre>{ | 6 <pre>{ |
7 "name": "My Font Settings Extension", | 7 "name": "My Font Settings Extension", |
8 "description": "Customize your fonts", | 8 "description": "Customize your fonts", |
9 "version": "0.2", | 9 "version": "0.2", |
10 "permissions": ["experimental"] | 10 "permissions": ["experimental"] |
(...skipping 29 matching lines...) Expand all Loading... |
40 <pre> | 40 <pre> |
41 chrome.experimental.fontSettings.setFont( | 41 chrome.experimental.fontSettings.setFont( |
42 { genericFamily: 'sansserif', script: 'Jpan', fontName: 'MS PGothic' } | 42 { genericFamily: 'sansserif', script: 'Jpan', fontName: 'MS PGothic' } |
43 ); | 43 ); |
44 </pre> | 44 </pre> |
45 <p>You can find a sample extension using the Font Settings API in the | 45 <p>You can find a sample extension using the Font Settings API in the |
46 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/fontSettings/">examples/api/fontSettings</a> | 46 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/fontSettings/">examples/api/fontSettings</a> |
47 directory. For other examples and for help in viewing the source code, see | 47 directory. For other examples and for help in viewing the source code, see |
48 <a href="samples.html">Samples</a>.</p> | 48 <a href="samples.html">Samples</a>.</p> |
49 <!-- END AUTHORED CONTENT --> | 49 <!-- END AUTHORED CONTENT --> |
OLD | NEW |