diff options
author | Jeremias Maerki <jeremias@apache.org> | 2007-11-03 10:47:22 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2007-11-03 10:47:22 +0000 |
commit | 46e8fb467370744775df6fc17a0e3f24df7299f2 (patch) | |
tree | 34313e4e5e8a458aee60c3ad1443833c0d6fbd1d | |
parent | 8a8bd203f9d3edb0bda8a1f71701dcd86b14592c (diff) | |
download | xmlgraphics-fop-46e8fb467370744775df6fc17a0e3f24df7299f2.tar.gz xmlgraphics-fop-46e8fb467370744775df6fc17a0e3f24df7299f2.zip |
Mapping "SansSerif" and "Monospaced" (widely used in SVG land) to our Base 14 fonts.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591579 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/fonts/FontSetup.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fonts/FontSetup.java b/src/java/org/apache/fop/fonts/FontSetup.java index 4a87f6efe..0e9501f25 100644 --- a/src/java/org/apache/fop/fonts/FontSetup.java +++ b/src/java/org/apache/fop/fonts/FontSetup.java @@ -121,6 +121,12 @@ public class FontSetup { fontInfo.addFontProperties("F3", "sans-serif", "normal", Font.WEIGHT_BOLD); fontInfo.addFontProperties("F4", "sans-serif", "oblique", Font.WEIGHT_BOLD); fontInfo.addFontProperties("F4", "sans-serif", "italic", Font.WEIGHT_BOLD); + fontInfo.addFontProperties("F1", "SansSerif", "normal", Font.WEIGHT_NORMAL); + fontInfo.addFontProperties("F2", "SansSerif", "oblique", Font.WEIGHT_NORMAL); + fontInfo.addFontProperties("F2", "SansSerif", "italic", Font.WEIGHT_NORMAL); + fontInfo.addFontProperties("F3", "SansSerif", "normal", Font.WEIGHT_BOLD); + fontInfo.addFontProperties("F4", "SansSerif", "oblique", Font.WEIGHT_BOLD); + fontInfo.addFontProperties("F4", "SansSerif", "italic", Font.WEIGHT_BOLD); fontInfo.addFontProperties("F5", "serif", "normal", Font.WEIGHT_NORMAL); fontInfo.addFontProperties("F6", "serif", "oblique", Font.WEIGHT_NORMAL); fontInfo.addFontProperties("F6", "serif", "italic", Font.WEIGHT_NORMAL); @@ -133,6 +139,12 @@ public class FontSetup { fontInfo.addFontProperties("F11", "monospace", "normal", Font.WEIGHT_BOLD); fontInfo.addFontProperties("F12", "monospace", "oblique", Font.WEIGHT_BOLD); fontInfo.addFontProperties("F12", "monospace", "italic", Font.WEIGHT_BOLD); + fontInfo.addFontProperties("F9", "Monospaced", "normal", Font.WEIGHT_NORMAL); + fontInfo.addFontProperties("F10", "Monospaced", "oblique", Font.WEIGHT_NORMAL); + fontInfo.addFontProperties("F10", "Monospaced", "italic", Font.WEIGHT_NORMAL); + fontInfo.addFontProperties("F11", "Monospaced", "normal", Font.WEIGHT_BOLD); + fontInfo.addFontProperties("F12", "Monospaced", "oblique", Font.WEIGHT_BOLD); + fontInfo.addFontProperties("F12", "Monospaced", "italic", Font.WEIGHT_BOLD); fontInfo.addFontProperties("F1", "Helvetica", "normal", Font.WEIGHT_NORMAL); fontInfo.addFontProperties("F2", "Helvetica", "oblique", Font.WEIGHT_NORMAL); |