summaryrefslogtreecommitdiffstats
path: root/browser/components/preferences/fonts.xul
blob: 26b1c65478e3d19ca86b3d570df96cf703f7adcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<?xml version="1.0"?>

# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
#ifdef XP_MACOSX
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
#endif

<!DOCTYPE prefwindow SYSTEM "chrome://browser/locale/preferences/fonts.dtd" >

<prefwindow id="FontsDialog" type="child"
            xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
            title="&fontsDialog.title;"
            dlgbuttons="accept,cancel,help"
            ondialoghelp="openPrefsHelp()"
            onbeforeaccept="return gFontsDialog.onBeforeAccept();"
            style="">

  <script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>

  <prefpane id="FontsDialogPane"
            class="largeDialogContainer"
            helpTopic="prefs-fonts-and-colors">
  
    <preferences id="fontPreferences">
      <preference id="font.language.group"  name="font.language.group"  type="wstring"/>
      <preference id="browser.display.use_document_fonts"
                  name="browser.display.use_document_fonts"
                  type="int"/>
      <preference id="intl.charset.fallback.override" name="intl.charset.fallback.override" type="string"/>
    </preferences>
    
    <stringbundle id="bundlePreferences" src="chrome://browser/locale/preferences/preferences.properties"/>
    <script type="application/javascript" src="chrome://mozapps/content/preferences/fontbuilder.js"/>
    <script type="application/javascript" src="chrome://browser/content/preferences/fonts.js"/>

    <!-- Fonts for: [ Language ] -->
    <groupbox>
      <caption>
        <hbox align="center">
          <label accesskey="&language.accesskey;" control="selectLangs">&language.label;</label>
        </hbox>
        <menulist id="selectLangs" preference="font.language.group"
                  onsyncfrompreference="return gFontsDialog.readFontLanguageGroup();">
          <menupopup>
            <menuitem value="ar"              label="&font.langGroup.arabic;"/>
            <menuitem value="x-armn"          label="&font.langGroup.armenian;"/>
            <menuitem value="x-beng"          label="&font.langGroup.bengali;"/>
            <menuitem value="zh-CN"           label="&font.langGroup.simpl-chinese;"/>
            <menuitem value="zh-HK"           label="&font.langGroup.trad-chinese-hk;"/>
            <menuitem value="zh-TW"           label="&font.langGroup.trad-chinese;"/>
            <menuitem value="x-cyrillic"      label="&font.langGroup.cyrillic;"/>
            <menuitem value="x-devanagari"    label="&font.langGroup.devanagari;"/>
            <menuitem value="x-ethi"          label="&font.langGroup.ethiopic;"/>
            <menuitem value="x-geor"          label="&font.langGroup.georgian;"/>
            <menuitem value="el"              label="&font.langGroup.el;"/>
            <menuitem value="x-gujr"          label="&font.langGroup.gujarati;"/>
            <menuitem value="x-guru"          label="&font.langGroup.gurmukhi;"/>
            <menuitem value="he"              label="&font.langGroup.hebrew;"/>
            <menuitem value="ja"              label="&font.langGroup.japanese;"/>
            <menuitem value="x-knda"          label="&font.langGroup.kannada;"/>
            <menuitem value="x-khmr"          label="&font.langGroup.khmer;"/>
            <menuitem value="ko"              label="&font.langGroup.korean;"/>
            <menuitem value="x-western"       label="&font.langGroup.latin;"/>
            <menuitem value="x-mlym"          label="&font.langGroup.malayalam;"/>
            <menuitem value="x-math"          label="&font.langGroup.math;"/>
            <menuitem value="x-orya"          label="&font.langGroup.odia;"/>
            <menuitem value="x-sinh"          label="&font.langGroup.sinhala;"/>
            <menuitem value="x-tamil"         label="&font.langGroup.tamil;"/>
            <menuitem value="x-telu"          label="&font.langGroup.telugu;"/>
            <menuitem value="th"              label="&font.langGroup.thai;"/>
            <menuitem value="x-tibt"          label="&font.langGroup.tibetan;"/>
            <menuitem value="x-cans"          label="&font.langGroup.canadian;"/>
            <menuitem value="x-unicode"       label="&font.langGroup.other;"/>
          </menupopup>
        </menulist>
      </caption>
      
      <grid>
        <columns>
          <column/>
          <column flex="1"/>
          <column/>
          <column/>
        </columns>
        
        <rows>
          <row>
            <separator class="thin"/>
          </row>

          <row align="center">
            <hbox align="center" pack="end">
              <label accesskey="&proportional.accesskey;" control="defaultFontType">&proportional.label;</label>
            </hbox>
            <menulist id="defaultFontType" flex="1" style="width: 0px;">
              <menupopup>
                <menuitem value="serif" label="&useDefaultFontSerif.label;"/>
                <menuitem value="sans-serif" label="&useDefaultFontSansSerif.label;"/>
              </menupopup>
            </menulist>
            <hbox align="center" pack="end">
              <label value="&size.label;"
                     accesskey="&sizeProportional.accesskey;"
                     control="sizeVar"/>
            </hbox>  
            <menulist id="sizeVar" delayprefsave="true">
              <menupopup>
                <menuitem value="9" label="9"/>
                <menuitem value="10" label="10"/>
                <menuitem value="11" label="11"/>
                <menuitem value="12" label="12"/>
                <menuitem value="13" label="13"/>
                <menuitem value="14" label="14"/>
                <menuitem value="15" label="15"/>
                <menuitem value="16" label="16"/>
                <menuitem value="17" label="17"/>
                <menuitem value="18" label="18"/>
                <menuitem value="20" label="20"/>
                <menuitem value="22" label="22"/>
                <menuitem value="24" label="24"/>
                <menuitem value="26" label="26"/>
                <menuitem value="28" label="28"/>
                <menuitem value="30" label="30"/>
                <menuitem value="32" label="32"/>
                <menuitem value="34" label="34"/>
                <menuitem value="36" label="36"/>
                <menuitem value="40" label="40"/>
                <menuitem value="44" label="44"/>
                <menuitem value="48" label="48"/>
                <menuitem value="56" label="56"/>
                <menuitem value="64" label="64"/>
                <menuitem value="72" label="72"/>
              </menupopup>
            </menulist>
          </row>
          <row align="center">
            <hbox align="center" pack="end">
              <label accesskey="&serif.accesskey;" control="serif">&serif.label;</label>
            </hbox>
            <menulist id="serif" flex="1" style="width: 0px;" delayprefsave="true"
                      onsyncfrompreference="return FontBuilder.readFontSelection(this);"/>
            <spacer/>
          </row>
          <row align="center">
            <hbox align="center" pack="end">
              <label accesskey="&sans-serif.accesskey;" control="sans-serif">&sans-serif.label;</label>
            </hbox>
            <menulist id="sans-serif" flex="1" style="width: 0px;" delayprefsave="true"
                      onsyncfrompreference="return FontBuilder.readFontSelection(this);"/>
            <spacer/>
          </row>
          <row align="center">
            <hbox align="center" pack="end">
              <label accesskey="&monospace.accesskey;" control="monospace">&monospace.label;</label>
            </hbox>
            <menulist id="monospace" flex="1" style="width: 0px;" crop="right" delayprefsave="true"
                      onsyncfrompreference="return FontBuilder.readFontSelection(this);"/>
            <hbox align="center" pack="end">
              <label value="&size.label;"
                     accesskey="&sizeMonospace.accesskey;"
                     control="sizeMono"/>
            </hbox>  
            <menulist id="sizeMono" delayprefsave="true">
              <menupopup>
                <menuitem value="9" label="9"/>
                <menuitem value="10" label="10"/>
                <menuitem value="11" label="11"/>
                <menuitem value="12" label="12"/>
                <menuitem value="13" label="13"/>
                <menuitem value="14" label="14"/>
                <menuitem value="15" label="15"/>
                <menuitem value="16" label="16"/>
                <menuitem value="17" label="17"/>
                <menuitem value="18" label="18"/>
                <menuitem value="20" label="20"/>
                <menuitem value="22" label="22"/>
                <menuitem value="24" label="24"/>
                <menuitem value="26" label="26"/>
                <menuitem value="28" label="28"/>
                <menuitem value="30" label="30"/>
                <menuitem value="32" label="32"/>
                <menuitem value="34" label="34"/>
                <menuitem value="36" label="36"/>
                <menuitem value="40" label="40"/>
                <menuitem value="44" label="44"/>
                <menuitem value="48" label="48"/>
                <menuitem value="56" label="56"/>
                <menuitem value="64" label="64"/>
                <menuitem value="72" label="72"/>
              </menupopup>
            </menulist>
          </row>
        </rows>
      </grid>
      <separator class="thin"/>
      <hbox flex="1">
        <spacer flex="1"/>
        <hbox align="center" pack="end">
          <label accesskey="&minSize.accesskey;" control="minSize">&minSize.label;</label>
          <menulist id="minSize">
            <menupopup>
              <menuitem value="0" label="&minSize.none;"/>
              <menuitem value="9" label="9"/>
              <menuitem value="10" label="10"/>
              <menuitem value="11" label="11"/>
              <menuitem value="12" label="12"/>
              <menuitem value="13" label="13"/>
              <menuitem value="14" label="14"/>
              <menuitem value="15" label="15"/>
              <menuitem value="16" label="16"/>
              <menuitem value="17" label="17"/>
              <menuitem value="18" label="18"/>
              <menuitem value="20" label="20"/>
              <menuitem value="22" label="22"/>
              <menuitem value="24" label="24"/>
              <menuitem value="26" label="26"/>
              <menuitem value="28" label="28"/>
              <menuitem value="30" label="30"/>
              <menuitem value="32" label="32"/>
              <menuitem value="34" label="34"/>
              <menuitem value="36" label="36"/>
              <menuitem value="40" label="40"/>
              <menuitem value="44" label="44"/>
              <menuitem value="48" label="48"/>
              <menuitem value="56" label="56"/>
              <menuitem value="64" label="64"/>
              <menuitem value="72" label="72"/>
            </menupopup>
          </menulist>
        </hbox>
      </hbox>
      <separator/>
      <separator class="groove"/>
      <hbox>
        <checkbox id="useDocumentFonts" 
                  label="&allowPagesToUse.label;" accesskey="&allowPagesToUse.accesskey;"
                  preference="browser.display.use_document_fonts"
                  onsyncfrompreference="return gFontsDialog.readUseDocumentFonts();"
                  onsynctopreference="return gFontsDialog.writeUseDocumentFonts();"/>
      </hbox>
    </groupbox>

    <!-- Text Encoding -->
    <groupbox>
      <caption label="&languages.customize.Fallback2.grouplabel;"/>
      <description>&languages.customize.Fallback2.desc;</description>
      <hbox align="center">
        <label value="&languages.customize.Fallback2.label;"
               accesskey="&languages.customize.Fallback2.accesskey;"
               control="DefaultCharsetList"/>
        <menulist id="DefaultCharsetList" preference="intl.charset.fallback.override">
          <menupopup>
            <menuitem label="&languages.customize.Fallback.auto;"        value="*"/>
            <menuitem label="&languages.customize.Fallback.utf8;"        value="UTF-8"/>
            <menuitem label="&languages.customize.Fallback.arabic;"      value="windows-1256"/>
            <menuitem label="&languages.customize.Fallback.baltic;"      value="windows-1257"/>
            <menuitem label="&languages.customize.Fallback.ceiso;"       value="ISO-8859-2"/>
            <menuitem label="&languages.customize.Fallback.cewindows;"   value="windows-1250"/>
            <menuitem label="&languages.customize.Fallback.simplified;"  value="gbk"/>
            <menuitem label="&languages.customize.Fallback.traditional;" value="Big5"/>
            <menuitem label="&languages.customize.Fallback.cyrillic;"    value="windows-1251"/>
            <menuitem label="&languages.customize.Fallback.greek;"       value="ISO-8859-7"/>
            <menuitem label="&languages.customize.Fallback.hebrew;"      value="windows-1255"/>
            <menuitem label="&languages.customize.Fallback.japanese;"    value="Shift_JIS"/>
            <menuitem label="&languages.customize.Fallback.korean;"      value="EUC-KR"/>
            <menuitem label="&languages.customize.Fallback.thai;"        value="windows-874"/>
            <menuitem label="&languages.customize.Fallback.turkish;"     value="windows-1254"/>
            <menuitem label="&languages.customize.Fallback.vietnamese;"  value="windows-1258"/>
            <menuitem label="&languages.customize.Fallback.other;"       value="windows-1252"/>
          </menupopup>
        </menulist>
      </hbox>
    </groupbox>
  </prefpane>
</prefwindow>