<?xml version="1.0"?> 
<!--
   The contents of this file are subject to the Netscape Public
   License Version 1.1 (the "License"); you may not use this file
   except in compliance with the License. You may obtain a copy of
   the License at http://www.mozilla.org/NPL/
    
   Software distributed under the License is distributed on an "AS
   IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
   implied. See the License for the specific language governing
   rights and limitations under the License.
    
   The Original Code is Mozilla Communicator client code, released
   March 31, 1998.
   
   The Initial Developer of the Original Code is Netscape
   Communications Corporation. Portions created by Netscape are
   Copyright (C) 1998-1999 Netscape Communications Corporation. All
   Rights Reserved.
   
   Contributor(s): 
  -->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>

<!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-fonts.dtd" >
<window id="fontPanel"
        xmlns:html="http://www.w3.org/TR/REC-html40"
		    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        class="color-dialog"
        title="&window.title;" 
        orient="vertical"
  		  onload="parent.initPanel('chrome://communicator/content/pref/pref-fonts.xul');">

  <script language="javascript" src="chrome://communicator/content/pref/pref-fonts.js"></script>
  <script language="javascript" src="chrome://global/content/strres.js"></script>

  <box class="box-smallheader" title="&lHeader;"/>
  
  <titledbox orient="vertical">
    <title><text value="&displayFonts;"/></title>

    <box autostretch="never">
      <text class="label" value="&language.label;" accesskey="&language.accesskey;" for="selectLangs"/>
      <menulist id="selectLangs" oncommand="selectLanguage();">
        <menupopup>
          <menuitem data="x-western" value="&font.langGroup.latin1;"/>
          <menuitem data="x-central-euro" value="&font.langGroup.latin2;"/>
          <menuitem data="ja" value="&font.langGroup.japanese;"/>
          <menuitem data="zh-TW" value="&font.langGroup.trad-chinese;"/>
          <menuitem data="zh-CN" value="&font.langGroup.simpl-chinese;"/>
          <menuitem data="ko" value="&font.langGroup.korean;"/>
          <menuitem data="x-cyrillic" value="&font.langGroup.cyrillic;"/>
          <menuitem data="x-baltic" value="&font.langGroup.baltic;"/>
          <menuitem data="el" value="&font.langGroup.el;"/>
          <menuitem data="tr" value="&font.langGroup.turkish;"/>
          <menuitem data="x-unicode" value="&font.langGroup.unicode;"/>
          <menuitem data="x-user-def" value="&font.langGroup.user-def;"/>
          <menuitem data="th" value="&font.langGroup.thai;"/>
          <menuitem data="he" value="&font.langGroup.hebrew;"/>
          <menuitem data="ar" value="&font.langGroup.arabic;"/>
        </menupopup>
      </menulist>
      <spring flex="1"/>
    </box>

    <separator/>
        
    <text class="label" value="&variableFonts.label;"/>

    <separator class="thin"/>

    <grid class="indent">
      <columns>
        <column/>
        <column flex="1"/>
        <column/>
        <column/>
        <column/>
      </columns>
      
      <rows>
        <row>
          <text class="label" value="&serif.label;" accesskey="&serif.accesskey;" for="serif"/>
          <menulist id="serif">
            <menupopup/>
          </menulist>
          <text class="label" value="&size.label;" accesskey="&sizeVar.accesskey;" for="sizeVar"/>
          <menulist id="sizeVar" style="width: 4em;">
            <menupopup>
              <menuitem data="12" value="12"/>
              <menuitem data="13" value="13"/>
              <menuitem data="14" value="14"/>
              <menuitem data="15" value="15"/>
              <menuitem data="16" value="16"/>
              <menuitem data="18" value="18"/>
              <menuitem data="20" value="20"/>
              <menuitem data="24" value="24"/>
            </menupopup>
          </menulist>
          <text class="label" value="&units.label;"/>
        </row>
        <row>
          <text class="label" value="&sans-serif.label;" accesskey="&sans-serif.accesskey;" for="sans-serif"/>
          <menulist id="sans-serif">
            <menupopup/>
          </menulist>
          <spring/>
          <spring/>
          <spring/>
        </row>
        <!--
        <row>
          <text class="label" value="&cursive.label;" accesskey="&cursive.accesskey;" for="cursive"/>
          <menulist id="cursive">
            <menupopup/>
          </menulist>
          <spring/>
          <spring/>
          <spring/>
        </row>
        <row>
          <text class="label" value="&fantasy.label;" accesskey="&fantasy.accesskey;" for="fantasy"/>
          <menulist id="fantasy">
            <menupopup/>
          </menulist>
          <spring/>
          <spring/>
          <spring/>
        </row>
        -->
      </rows>
    </grid>
    
    <separator/>

    <box autostretch="never" class="indent">
      <text class="label" value="&default.type.label;"/>
      <radiogroup id="defaultFont" autostretch="never" preftype="string" prefstring="font.default">
        <radio group="defaultFont" data="serif" value="&useDefaultFontSerif.label;" accesskey="&useDefaultFontSerif.accesskey;"/>
        <radio group="defaultFont" data="sans-serif" value="&useDefaultFontSansSerif.label;" accesskey="&useDefaultFontSansSerif.accesskey;"/>
      </radiogroup>
    </box>

    <separator/>
    
    <text class="label" value="&fixedFonts.label;"/>
    
    <separator class="thin"/>
    
    <grid class="indent">
      <columns>
        <column/>
        <column flex="1"/>
        <column/>
        <column/>
        <column/>
      </columns>
      <rows>
        <row>
          <text class="label" value="&monospace.label;" accesskey="&monospace.accesskey;" for="monospace"/>
          <menulist id="monospace">
            <menupopup/>
          </menulist>
          <text class="label" value="&size.label;" accesskey="&sizeMono.accesskey;" for="sizeMono"/>
          <menulist id="sizeMono" style="width: 4em;">
            <menupopup>
              <menuitem data="12" value="12"/>
              <menuitem data="13" value="13"/>
              <menuitem data="14" value="14"/>
              <menuitem data="15" value="15"/>
              <menuitem data="16" value="16"/>
              <menuitem data="18" value="18"/>
              <menuitem data="20" value="20"/>
              <menuitem data="24" value="24"/>
            </menupopup>
          </menulist>
          <text class="label" value="&units.label;"/>
        </row>
      </rows>
    </grid>

    <separator/>
    
    <!-- note that this removes the ability to select dynamic fonts -->
    <checkbox id="browserUseDocumentFonts" 
              value="&useDocumentFonts.label;" accesskey="&useDocumentFonts.accesskey;"
              preftype="int" prefstring="browser.display.use_document_fonts"/>

  </titledbox>

  <titledbox orient="vertical">
    <title><text value="&fontScaling;"/></title>
    <html>&fontScalingIntro;</html>
    <box autostretch="never">
      <text class="label" value="&resolution.label;" accesskey="&resolution.accesskey;" for="browserScreenResolution"/>
      <textfield id="browserScreenResolution" size="4" maxlength="3" value="&defaultScaling;" preftype="int" prefstring="browser.display.screen_resolution"/>
      <text class="label" value="&fontScalingExample;"/>
    </box>
  </titledbox>  

</window>
