adding font scaling pref to pref window to fix 5599, r=syd@netscape.com

This commit is contained in:
rgoodger%ihug.co.nz 1999-12-23 08:25:08 +00:00
parent 0951f12c16
commit a342c44397
8 changed files with 68 additions and 4 deletions

View File

@ -21,13 +21,15 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xul-overlay href="chrome://pref/content/fontScalingOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-fonts.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
id="fontPanel"
onload="StartUp('Fonts')" title="&window.title;"
align="vertical">
align="vertical">
<html:script language="javascript" src="PrefsWindow.js"/>
<box class="header" align="horizontal">
@ -129,6 +131,7 @@
</html:div>
</html:fieldset>
<!--
<html:table>
<html:tr>

View File

@ -21,3 +21,9 @@
<!ENTITY useDocFontNonDynamic "Use document-specified fonts, but disable Dynamic Fonts">
<!--LOCALIZATION NOTE (useDocFontDynamic): Translate 'Dynamic Fonts' according to Netscape Glossary -->
<!ENTITY useDocFontDynamic "Use document-specified fonts, including Dynamic Fonts">
<!-- font scaling -->
<!ENTITY fontScaling "Font Scaling">
<!ENTITY fontScalingIntro "Choose a resolution at which fonts will be displayed. A larger value can improve text visibility on some computers.">
<!ENTITY defaultScaling "96">
<!ENTITY fontScalingExample "dpi. (e.g. 96dpi)">
<!ENTITY resolution "Font display resolution:">

View File

@ -20,3 +20,4 @@ PrefsWindow.js
pref.xul
preftree.xul
pref-mousewheel.xul
fontScalingOverlay.xul

View File

@ -48,6 +48,7 @@ EXPORT_RESOURCE_CONTENT = \
$(srcdir)/pref-mousewheel.xul \
$(srcdir)/pref-smart_browsing.xul \
$(srcdir)/pref-smartupdate.xul \
$(srcdir)/fontScalingOverlay.xul \
$(srcdir)/preftree.xul \
$(NULL)

View File

@ -0,0 +1,43 @@
<?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): ______________________________________. -->
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-fonts.dtd" >
<overlay id="fontScaling"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<window id="fontPanel">
<html:fieldset style="height: 100%" flex="100%">
<html:legend>&fontScaling;</html:legend>
<html:div>&fontScalingIntro;</html:div>
<spring style="height: 10px;"/>
<box align="horizontal" style="width: 100%" flex="100%">
<html:label for="">&resolution;</html:label>
<html:input type="text" id="pref:string:browser.screen_resolution" size="3" value="&defaultScaling;"/>
<html:label>&fontScalingExample;</html:label>
</box>
</html:fieldset>
</window>
</overlay>

View File

@ -46,6 +46,7 @@ install::
$(MAKE_INSTALL) pref.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) preftree.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) pref-mousewheel.xul $(DIST)\bin\chrome\pref\content\default
$(MAKE_INSTALL) fontScalingOverlay.xul $(DIST)\bin\chrome\pref\content\default
clobber::
rm -f $(DIST)\bin\chrome\pref\content\default\*.*

View File

@ -21,13 +21,15 @@
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<?xul-overlay href="chrome://pref/content/fontScalingOverlay.xul"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-fonts.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
id="fontPanel"
onload="StartUp('Fonts')" title="&window.title;"
align="vertical">
align="vertical">
<html:script language="javascript" src="PrefsWindow.js"/>
<box class="header" align="horizontal">
@ -129,6 +131,7 @@
</html:div>
</html:fieldset>
<!--
<html:table>
<html:tr>

View File

@ -21,3 +21,9 @@
<!ENTITY useDocFontNonDynamic "Use document-specified fonts, but disable Dynamic Fonts">
<!--LOCALIZATION NOTE (useDocFontDynamic): Translate 'Dynamic Fonts' according to Netscape Glossary -->
<!ENTITY useDocFontDynamic "Use document-specified fonts, including Dynamic Fonts">
<!-- font scaling -->
<!ENTITY fontScaling "Font Scaling">
<!ENTITY fontScalingIntro "Choose a resolution at which fonts will be displayed. A larger value can improve text visibility on some computers.">
<!ENTITY defaultScaling "96">
<!ENTITY fontScalingExample "dpi. (e.g. 96dpi)">
<!ENTITY resolution "Font display resolution:">