aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2012-06-13 15:40:23 +0000
committerVincent Hennebert <vhennebert@apache.org>2012-06-13 15:40:23 +0000
commit37378b836a3c55ac323010e39e4986c14337eb60 (patch)
treed947b9091517ae14b3328fe99a368141c2460c94 /src/java/org/apache
parentfae8882d2261a48ae2b158ff631fe696d511b98b (diff)
downloadxmlgraphics-fop-37378b836a3c55ac323010e39e4986c14337eb60.tar.gz
xmlgraphics-fop-37378b836a3c55ac323010e39e4986c14337eb60.zip
Removed commented code: subset-embedding for single-byte fonts is not working yet
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_TrueTypeInPostScript@1349919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/render/ps/PSFontUtils.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSFontUtils.java b/src/java/org/apache/fop/render/ps/PSFontUtils.java
index 53ceff53e..c70181cf7 100644
--- a/src/java/org/apache/fop/render/ps/PSFontUtils.java
+++ b/src/java/org/apache/fop/render/ps/PSFontUtils.java
@@ -40,10 +40,10 @@ import org.apache.xmlgraphics.ps.PSGenerator;
import org.apache.xmlgraphics.ps.PSResource;
import org.apache.xmlgraphics.ps.dsc.ResourceTracker;
-import org.apache.fop.fonts.CMapSegment;
import org.apache.fop.fonts.Base14Font;
import org.apache.fop.fonts.CIDFontType;
import org.apache.fop.fonts.CIDSubset;
+import org.apache.fop.fonts.CMapSegment;
import org.apache.fop.fonts.CustomFont;
import org.apache.fop.fonts.EmbeddingMode;
import org.apache.fop.fonts.Font;
@@ -56,9 +56,9 @@ import org.apache.fop.fonts.SingleByteFont;
import org.apache.fop.fonts.Typeface;
import org.apache.fop.fonts.truetype.FontFileReader;
import org.apache.fop.fonts.truetype.TTFFile;
+import org.apache.fop.fonts.truetype.TTFFile.PostScriptVersion;
import org.apache.fop.fonts.truetype.TTFOutputStream;
import org.apache.fop.fonts.truetype.TTFSubSetFile;
-import org.apache.fop.fonts.truetype.TTFFile.PostScriptVersion;
import org.apache.fop.render.ps.fonts.PSTTFOutputStream;
import org.apache.fop.util.HexEncoder;
@@ -297,16 +297,6 @@ public class PSFontUtils extends org.apache.xmlgraphics.ps.PSFontUtils {
font.setEmbeddingMode(EmbeddingMode.SUBSET);
}
FontFileReader reader = new FontFileReader(fontStream);
- // TODO is subset-embedding working? In which case the following can be factorized
- // with what is in composeType0Font
-// TTFFile ttfFile;
-// if (font.getEmbeddingMode() != EmbeddingMode.FULL) {
-// ttfFile = new TTFSubSetFile();
-// ttfFile.readFont(reader, font.getFullName()(), font.getUsedGlyphs());
-// } else {
-// ttfFile = new TTFFile();
-// ttfFile.readFont(reader, font.getFullName());
-// }
TTFFile ttfFile = new TTFFile();
ttfFile.readFont(reader, font.getFullName());
createType42DictionaryEntries(gen, font, font.getCMap(), ttfFile);