Class CFFToType1Font
java.lang.Object
org.apache.fop.fonts.Typeface
org.apache.fop.fonts.CustomFont
org.apache.fop.fonts.CIDFont
org.apache.fop.fonts.MultiByteFont
org.apache.fop.fonts.CFFToType1Font
- All Implemented Interfaces:
Positionable, Substitutable, FontDescriptor, FontMetrics, MutableFont
-
Field Summary
Fields inherited from class MultiByteFont
boundingBoxes, cidSetFields inherited from class CustomFont
additionalEncodings, cmap, svgs, unencodedCharactersFields inherited from class Typeface
eventListener, NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionCFFToType1Font(InternalResourceResolver resourceResolver, EmbeddingMode embeddingMode) -
Method Summary
Modifier and TypeMethodDescriptionprivate List<InputStream> private InputStreamconvertOTFToType1(Map<Integer, Integer> glyphs, org.apache.fontbox.cff.CFFFont cffFont, String splitGlyphsId) Returns anInputStreamrepresenting an embeddable font file.splitGlyphs(Map<Integer, Integer> glyphs) Methods inherited from class MultiByteFont
addPrivateUseMapping, charSequenceToGlyphSequence, findGlyphIndex, getBoundingBox, getChars, getCIDSet, getCIDType, getCmapStream, getDefaultWidth, getEmbedFontName, getEncodingName, getGDEF, getGIDFromChar, getGlyphIndices, getGPOS, getGSUB, getOrdering, getRegistry, getSupplement, getSVG, getTTCName, getUnicodeFromGID, getUnscaledWidths, getUsedGlyphNames, getUsedGlyphs, getWidth, getWidths, getWidthsMap, hasChar, hasCodePoint, hasFeature, isEmbeddable, isOTFFile, isSubsetEmbedded, mapChar, mapCodePoint, mapUsedGlyphName, performPositioning, performPositioning, performsPositioning, performsSubstitution, performSubstitution, reorderCombiningMarks, setBBoxArray, setCIDType, setDefaultWidth, setGDEF, setGPOS, setGSUB, setIsOTFFile, setTTCName, setWidthArrayMethods inherited from class CIDFont
isMultiByteMethods inherited from class CustomFont
addUnencodedCharacter, getAdditionalEncoding, getAdditionalEncodingCount, getAscender, getAscender, getCapHeight, getCapHeight, getCMap, getDescender, getDescender, getEmbeddingMode, getEmbedFileURI, getEmbedResourceName, getFamilyNames, getFirstChar, getFlags, getFontBBox, getFontName, getFontSubName, getFontType, getFontURI, getFullName, getItalicAngle, getKerningInfo, getLastChar, getMissingWidth, getSimulateStyle, getStemV, getStrikeoutPosition, getStrikeoutThickness, getStrippedFontName, getUnderlinePosition, getUnderlineThickness, getWeight, getXHeight, hasAdditionalEncodings, hasKerningInfo, hasSVG, isAdvancedEnabled, isKerningEnabled, isSymbolicFont, mapUnencodedChar, putKerningEntry, replaceKerningMap, setAdvancedEnabled, setAscender, setCapHeight, setCMap, setDescender, setEmbeddingMode, setEmbedResourceName, setEmbedURI, setFamilyNames, setFirstChar, setFlags, setFontBBox, setFontName, setFontSubFamilyName, setFontType, setFontURI, setFullName, setItalicAngle, setKerningEnabled, setLastChar, setMissingWidth, setSimulateStyle, setStemV, setStrikeoutPosition, setStrikeoutThickness, setSVG, setUnderlinePosition, setUnderlineThickness, setWeight, setXHeightMethods inherited from class Typeface
getMaxAscent, hadMappingOperations, isCID, notifyMapOperation, setEventListener, toString, warnMissingGlyphMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FontMetrics
getMaxAscent
-
Constructor Details
-
CFFToType1Font
-
-
Method Details
-
getInputStream
Description copied from class:CustomFontReturns anInputStreamrepresenting an embeddable font file.- Overrides:
getInputStreamin classCustomFont- Returns:
InputStreamfor an embeddable font file- Throws:
IOException- if embedFileName is not null but Source is not found
-
getInputStreams
- Throws:
IOException
-
convertOTFToType1
- Throws:
IOException
-
splitGlyphs
-
convertOTFToType1
private InputStream convertOTFToType1(Map<Integer, Integer> glyphs, org.apache.fontbox.cff.CFFFont cffFont, String splitGlyphsId) throws IOException- Throws:
IOException
-