зеркало из https://github.com/mozilla/gecko-dev.git
fixing for font pref emergency r=erik brendan okayed
This commit is contained in:
Родитель
2621ddcf15
Коммит
6f2f545421
|
@ -53,29 +53,34 @@ function selectLang()
|
|||
|
||||
|
||||
lang = document.getElementById("selectLangs").value;
|
||||
var fontSizePrefstring = 'font.size.' + lang;
|
||||
document.getElementById('size').setAttribute('prefstring', fontSizePrefstring);
|
||||
var fontSizePrefint = 'font.size.variable.' + lang;
|
||||
var fontSizePrefFontint = 'font.size.fixed.' + lang;
|
||||
document.getElementById('size').setAttribute('prefstring', fontSizePrefint);
|
||||
document.getElementById('sizeFixed').setAttribute('prefstring', fontSizePrefFontint);
|
||||
|
||||
for (i = 0; i < generics.length; i++) {
|
||||
var select = document.getElementById(generics[i]);
|
||||
var selectParent = select.parentNode;
|
||||
var selectNew = select.cloneNode(false);
|
||||
var fontPrefstring = 'font.name.' + generics[i] + '.' + lang;
|
||||
select.setAttribute('prefstring', fontPrefstring);
|
||||
selectNew.setAttribute('prefstring', fontPrefstring);
|
||||
// dump('selectNew:' + selectNew.getAttribute('prefstring'));
|
||||
fonts = enumerator.EnumerateFonts(lang, generics[i], fontCount);
|
||||
|
||||
|
||||
for (j = 0; j < fonts.length; j++) {
|
||||
var option = document.createElement("html:option");
|
||||
var text = document.createTextNode(fonts[j]);
|
||||
option.appendChild(text);;
|
||||
option.appendChild(text);
|
||||
option.setAttribute('value' , fonts[j]);
|
||||
selectNew.appendChild(option)
|
||||
selectNew.appendChild(option);
|
||||
// dump(fonts[j] + " || ");
|
||||
|
||||
}
|
||||
|
||||
selectParent.replaceChild(selectNew , select);
|
||||
|
||||
//dump('select:' + document.getElementById(generics[i]).getAttribute('prefstring') + '\n');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -48,10 +48,9 @@
|
|||
<html:select id="selectLangs" onchange = "selectLang();">
|
||||
</html:select>
|
||||
</html:td>
|
||||
<html:td/>
|
||||
<html:td>&size.select;</html:td>
|
||||
<html:td>&varFont.select;</html:td>
|
||||
<html:td>
|
||||
<html:select id="size" pref="true" preftype="string">
|
||||
<html:select id="size" pref="true" preftype="int">
|
||||
<html:option value="&font8.option;" >&font8.option;</html:option>
|
||||
<html:option value="&font9.option;" >&font9.option;</html:option>
|
||||
<html:option value="&font10.option;" >&font10.option;</html:option>
|
||||
|
@ -112,7 +111,27 @@
|
|||
<html:select id="monospace" pref="true" preftype="string" prefstring="">
|
||||
</html:select>
|
||||
</html:td>
|
||||
|
||||
<html:td>&fixedFont.Select;</html:td>
|
||||
<html:td>
|
||||
<html:select id="sizeFixed" pref="true" preftype="int">
|
||||
<html:option value="&font8.option;" >&font8.option;</html:option>
|
||||
<html:option value="&font9.option;" >&font9.option;</html:option>
|
||||
<html:option value="&font10.option;" >&font10.option;</html:option>
|
||||
<html:option value="&font11.option;" >&font11.option;</html:option>
|
||||
<html:option value="&font12.option;" >&font12.option;</html:option>
|
||||
<html:option value="&font14.option;" >&font14.option;</html:option>
|
||||
<html:option value="&font16.option;" >&font16.option;</html:option>
|
||||
<html:option value="&font18.option;" >&font18.option;</html:option>
|
||||
<html:option value="&font20.option;" >&font20.option;</html:option>
|
||||
<html:option value="&font22.option;" >&font22.option;</html:option>
|
||||
<html:option value="&font24.option;" >&font24.option;</html:option>
|
||||
<html:option value="&font26.option;" >&font26.option;</html:option>
|
||||
<html:option value="&font28.option;" >&font28.option;</html:option>
|
||||
<html:option value="&font36.option;" >&font36.option;</html:option>
|
||||
<html:option value="&font48.option;" >&font48.option;</html:option>
|
||||
<html:option value="&font72.option;" >&font72.option;</html:option>
|
||||
</html:select>
|
||||
</html:td>
|
||||
</html:tr>
|
||||
</html:table>
|
||||
</html:fieldset>
|
||||
|
|
Загрузка…
Ссылка в новой задаче