]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
I'm not really happy with this workaround, it is a bit of a hack (as Symbol and ZapfD...
authorAdrian Cumiskey <acumiskey@apache.org>
Thu, 17 Jul 2008 18:47:58 +0000 (18:47 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Thu, 17 Jul 2008 18:47:58 +0000 (18:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@677679 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/afp/fonts/AFPFontCollection.java

index 55953daf0c231d6f51cb109c7c4d9409658d2a04..df2f4a105798af8a80dcd09b7548f81fe85fc683 100644 (file)
@@ -97,6 +97,22 @@ public class AFPFontCollection implements FontCollection {
             fontInfo.addMetrics("F" + num, bf);
             num++;
         }
+        if (fontInfo.fontLookup("Symbol", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL) == null) {
+            FontTriplet ft = fontInfo.fontLookup(
+                    "sans-serif", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL);
+            fontInfo.addFontProperties(
+                    fontInfo.getInternalFontKey(ft),
+                    "Symbol", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL);
+            num++;
+        }
+        if (fontInfo.fontLookup("ZapfDingbats", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL) == null) {
+            FontTriplet ft = fontInfo.fontLookup(
+                    "sans-serif", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL);
+            fontInfo.addFontProperties(
+                    fontInfo.getInternalFontKey(ft),
+                    "ZapfDingbats", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL);
+            num++;
+        }
         if (fontInfo.fontLookup("any", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL) == null) {
             FontTriplet ft = fontInfo.fontLookup(
                     "sans-serif", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL);