diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-05-06 16:14:09 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-05-06 16:14:09 +0000 |
commit | cff8a3713fc7e069ab5bf46585131071d50fb979 (patch) | |
tree | 0135c713caba8113c6f10e2c24469af45275cdf1 /src/java/org/apache/fop/fonts/EmbedFontInfo.java | |
parent | e5158b410b3d257e492610b10594e670e6e1d834 (diff) | |
download | xmlgraphics-fop-cff8a3713fc7e069ab5bf46585131071d50fb979.tar.gz xmlgraphics-fop-cff8a3713fc7e069ab5bf46585131071d50fb979.zip |
* Added font substitution configuration reader, model, business logic, junit test and docs.
* Added java 1.5 generics comments to many methods.
* Performed some preparatory cleanup and refactoring which includes (but is not limited to..)
- Creating a FontManager delegating class that is called upon when renderers are setting up fonts
- A new FontCollection interface and concrete implementing classes to supercede the static FontSetup mechanism.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@653826 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fonts/EmbedFontInfo.java')
-rw-r--r-- | src/java/org/apache/fop/fonts/EmbedFontInfo.java | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/src/java/org/apache/fop/fonts/EmbedFontInfo.java b/src/java/org/apache/fop/fonts/EmbedFontInfo.java index 8bda40532..dc40da780 100644 --- a/src/java/org/apache/fop/fonts/EmbedFontInfo.java +++ b/src/java/org/apache/fop/fonts/EmbedFontInfo.java @@ -36,14 +36,15 @@ public class EmbedFontInfo implements Serializable { protected String embedFile; /** false, to disable kerning */ protected boolean kerning; - /** the list of associated font triplets */ - protected List fontTriplets; /** the PostScript name of the font */ protected String postScriptName = null; /** the sub-fontname of the font (used for TrueType Collections, null otherwise) */ protected String subFontName = null; + /** the list of associated font triplets */ + private List/*<FontTriplet>*/ fontTriplets = null; + /** * Main constructor * @param metricsFile Path to the xml file containing font metrics @@ -53,7 +54,7 @@ public class EmbedFontInfo implements Serializable { * @param subFontName the sub-fontname used for TrueType Collections (null otherwise) */ public EmbedFontInfo(String metricsFile, boolean kerning, - List fontTriplets, String embedFile, String subFontName) { + List/*<FontTriplet>*/ fontTriplets, String embedFile, String subFontName) { this.metricsFile = metricsFile; this.embedFile = embedFile; this.kerning = kerning; @@ -84,19 +85,11 @@ public class EmbedFontInfo implements Serializable { public boolean getKerning() { return kerning; } - - /** - * Returns the list of font triplets associated with this font. - * @return List of font triplets - */ - public List getFontTriplets() { - return fontTriplets; - } /** - * Returns the sub-fontname name of the font. This is primarily used for TrueType Collections + * Returns the sub-font name name of the font. This is primarily used for TrueType Collections * to select one of the sub-fonts. For all other fonts, this is always null. - * @return the sub-fontname (or null) + * @return the sub-font name (or null) */ public String getSubFontName() { return this.subFontName; @@ -118,10 +111,20 @@ public class EmbedFontInfo implements Serializable { this.postScriptName = postScriptName; } - /** {@inheritDoc} */ + /** + * Returns the list of font triplets associated with this font. + * @return List of font triplets + */ + public List/*<FontTriplet>*/ getFontTriplets() { + return fontTriplets; + } + + /** + * {@inheritDoc} + */ public String toString() { return "metrics-url=" + metricsFile + ",embed-url=" + embedFile - + ", kerning=" + kerning + ", font-triplet=" + fontTriplets + + ", kerning=" + kerning + ", " + "font-triplet=" + fontTriplets + (getSubFontName() != null ? ", sub-font=" + getSubFontName() : ""); } } |