Home | History | Annotate | Download | only in options

Lines Matching full:font

18                      'font-settings');
32 var standardFontRange = $('standard-font-size');
38 var minimumFontRange = $('minimum-font-size');
47 $('standard-font-family').appendChild(new Option(placeholder));
48 $('serif-font-family').appendChild(new Option(placeholder));
49 $('sans-serif-font-family').appendChild(new Option(placeholder));
50 $('fixed-font-family').appendChild(new Option(placeholder));
51 $('font-encoding').appendChild(new Option(placeholder));
69 * Called as the user changes the standard font size. This allows for
76 var fontSampleEl = $('standard-font-sample');
80 fontSampleEl = $('serif-font-sample');
84 fontSampleEl = $('sans-serif-font-sample');
90 * Called as the user changes the miniumum font size. This allows for
97 var fontSampleEl = $('minimum-font-sample');
103 * Sets the 'minimum_logical_font_size' preference when the minimum font
115 * Sets the text, font size and font family of the sample text.
117 * @param {number} size The font size of the sample text.
118 * @param {string} font The font family of the sample text.
119 * @param {bool} showSize True if the font size should appear in the sample.
122 setUpFontSample_: function(el, size, font, showSize) {
127 if (font)
128 el.style.fontFamily = font;
163 FontSettings.getInstance().populateSelect_($('standard-font-family'), fonts,
165 FontSettings.getInstance().populateSelect_($('serif-font-family'), fonts,
167 FontSettings.getInstance().populateSelect_($('sans-serif-font-family'),
169 FontSettings.getInstance().populateSelect_($('fixed-font-family'), fonts,
171 FontSettings.getInstance().populateSelect_($('font-encoding'), encodings,
175 FontSettings.setUpStandardFontSample = function(font, size) {
176 FontSettings.getInstance().setUpFontSample_($('standard-font-sample'), size,
177 font, true);
180 FontSettings.setUpSerifFontSample = function(font, size) {
181 FontSettings.getInstance().setUpFontSample_($('serif-font-sample'), size,
182 font, true);
185 FontSettings.setUpSansSerifFontSample = function(font, size) {
186 FontSettings.getInstance().setUpFontSample_($('sans-serif-font-sample'),
187 size, font, true);
190 FontSettings.setUpFixedFontSample = function(font, size) {
191 FontSettings.getInstance().setUpFontSample_($('fixed-font-sample'),
192 size, font, false);
197 // for the minimum logical font size.
200 FontSettings.getInstance().setUpFontSample_($('minimum-font-sample'), size,