From: Vincent Hennebert Date: Wed, 13 Jun 2012 15:40:23 +0000 (+0000) Subject: Removed commented code: subset-embedding for single-byte fonts is not working yet X-Git-Tag: fop-1_1rc1^2~1^2~7^2~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=37378b836a3c55ac323010e39e4986c14337eb60;p=xmlgraphics-fop.git 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 --- 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);