Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: chrome/common/extensions/docs/server2/templates/intros/fontSettings.html

Issue 10834130: Extensions Docs Server: Doc conversion script - SVN (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 -->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698