aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-07-22 09:42:21 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-07-22 09:42:21 +0000
commitd91660dff59d9059d5f50173f9582e43c02f140e (patch)
treedf324433d8bf574d47c0391e034e577a2f2ff6ef /src/java/org/apache
parent37ba6a47212ed1f79008d83fc1c088399d9bccbd (diff)
downloadxmlgraphics-fop-d91660dff59d9059d5f50173f9582e43c02f140e.tar.gz
xmlgraphics-fop-d91660dff59d9059d5f50173f9582e43c02f140e.zip
Added some String statics.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678693 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/render/afp/fonts/AFPFontCollection.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/render/afp/fonts/AFPFontCollection.java b/src/java/org/apache/fop/render/afp/fonts/AFPFontCollection.java
index 9ee169d80..35f99c24c 100644
--- a/src/java/org/apache/fop/render/afp/fonts/AFPFontCollection.java
+++ b/src/java/org/apache/fop/render/afp/fonts/AFPFontCollection.java
@@ -37,7 +37,13 @@ import org.apache.fop.render.afp.AFPEventProducer;
*/
public class AFPFontCollection implements FontCollection {
+ private static final String DEFAULT_CODEPAGE = "T1V10500";
+
+ private static final String DEFAULT_ENCODING = "Cp500";
+
+
private EventBroadcaster eventBroadcaster;
+
private List/*<EmbedFontInfo>*/ embedFontInfoList;
/**
@@ -51,7 +57,7 @@ public class AFPFontCollection implements FontCollection {
this.eventBroadcaster = eventBroadcaster;
this.embedFontInfoList = embedFontInfoList;
}
-
+
/** {@inheritDoc} */
public int setup(int start, FontInfo fontInfo) {
int num = 1;
@@ -75,7 +81,7 @@ public class AFPFontCollection implements FontCollection {
// note: these fonts may not exist on your AFP installation
if (fontInfo.fontLookup("sans-serif", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL) == null) {
- CharacterSet cs = new FopCharacterSet("T1V10500", "Cp500", "CZH200 ",
+ CharacterSet cs = new FopCharacterSet(DEFAULT_CODEPAGE, DEFAULT_ENCODING, "CZH200",
1, new Helvetica());
AFPFont bf = new OutlineFont("Helvetica", cs);
fontInfo.addFontProperties(
@@ -84,7 +90,7 @@ public class AFPFontCollection implements FontCollection {
num++;
}
if (fontInfo.fontLookup("serif", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL) == null) {
- CharacterSet cs = new FopCharacterSet("T1V10500", "Cp500", "CZN200 ",
+ CharacterSet cs = new FopCharacterSet(DEFAULT_CODEPAGE, DEFAULT_ENCODING, "CZN200",
1, new TimesRoman());
AFPFont bf = new OutlineFont("Helvetica", cs);
fontInfo.addFontProperties("F" + num, "serif", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL);
@@ -92,7 +98,7 @@ public class AFPFontCollection implements FontCollection {
num++;
}
if (fontInfo.fontLookup("monospace", Font.STYLE_NORMAL, Font.WEIGHT_NORMAL) == null) {
- CharacterSet cs = new FopCharacterSet("T1V10500", "Cp500", "CZ4200 ",
+ CharacterSet cs = new FopCharacterSet(DEFAULT_CODEPAGE, DEFAULT_ENCODING, "CZ4200",
1, new Courier());
AFPFont bf = new OutlineFont("Helvetica", cs);
fontInfo.addFontProperties(