From 46e8fb467370744775df6fc17a0e3f24df7299f2 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sat, 3 Nov 2007 10:47:22 +0000 Subject: 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 --- src/java/org/apache/fop/fonts/FontSetup.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- cgit v1.2.3