| OLD | NEW |
| 1 <!-- BEGIN AUTHORED CONTENT --> | |
| 2 | |
| 3 <p>The Font Settings API allows you to manage Chrome's font settings.</p> | 1 <p>The Font Settings API allows you to manage Chrome's font settings.</p> |
| 4 | 2 |
| 5 <h2 id="manifest">Manifest</h2> | 3 <h2 id="manifest">Manifest</h2> |
| 6 <p>To use the Font Settings API, you must declare the "fontSettings" permission | 4 <p>To use the Font Settings API, you must declare the "fontSettings" permission |
| 7 in the <a href="manifest.html">extension manifest</a>. | 5 in the <a href="manifest.html">extension manifest</a>. |
| 8 For example:</p> | 6 For example:</p> |
| 9 <pre>{ | 7 <pre>{ |
| 10 "name": "My Font Settings Extension", | 8 "name": "My Font Settings Extension", |
| 11 "description": "Customize your fonts", | 9 "description": "Customize your fonts", |
| 12 "version": "0.2", | 10 "version": "0.2", |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 <p>The next snippet sets the sans-serif font for Japanese.</p> | 46 <p>The next snippet sets the sans-serif font for Japanese.</p> |
| 49 <pre> | 47 <pre> |
| 50 chrome.fontSettings.setFont( | 48 chrome.fontSettings.setFont( |
| 51 { genericFamily: 'sansserif', script: 'Jpan', fontId: 'MS PGothic' } | 49 { genericFamily: 'sansserif', script: 'Jpan', fontId: 'MS PGothic' } |
| 52 ); | 50 ); |
| 53 </pre> | 51 </pre> |
| 54 | 52 |
| 55 <p>You can find a sample extension using the Font Settings API in the | 53 <p>You can find a sample extension using the Font Settings API in the |
| 56 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/fontSettings/">examples/api/fontSettings</a> | 54 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension
s/docs/examples/api/fontSettings/">examples/api/fontSettings</a> |
| 57 directory. For other examples and for help in viewing the source code, see | 55 directory. For other examples and for help in viewing the source code, see |
| 58 <a href="samples.html">Samples</a>.</p> | 56 <a href="samples.html">Samples</a>.</p> |
| 59 | |
| 60 <!-- END AUTHORED CONTENT --> | |
| OLD | NEW |