fop-pdf-images 2.3

org.apache.fop.render.pdf.pdfbox
Class FOPPDFMultiByteFont

java.lang.Object
  extended by org.apache.fop.fonts.Typeface
      extended by org.apache.fop.fonts.CustomFont
          extended by org.apache.fop.fonts.CIDFont
              extended by org.apache.fop.fonts.MultiByteFont
                  extended by org.apache.fop.render.pdf.pdfbox.FOPPDFMultiByteFont
All Implemented Interfaces:
org.apache.fop.complexscripts.fonts.Positionable, org.apache.fop.complexscripts.fonts.Substitutable, org.apache.fop.fonts.FontDescriptor, org.apache.fop.fonts.FontMetrics, org.apache.fop.fonts.MutableFont

public class FOPPDFMultiByteFont
extends org.apache.fop.fonts.MultiByteFont


Field Summary
protected  org.apache.fop.pdf.PDFDictionary ref
           
 
Fields inherited from class org.apache.fop.fonts.MultiByteFont
boundingBoxes, cidSet
 
Fields inherited from class org.apache.fop.fonts.CIDFont
width
 
Fields inherited from class org.apache.fop.fonts.CustomFont
additionalEncodings, cmap, unencodedCharacters
 
Fields inherited from class org.apache.fop.fonts.Typeface
eventListener, NOT_FOUND
 
Constructor Summary
FOPPDFMultiByteFont(org.apache.pdfbox.cos.COSDictionary fontData, java.lang.String name)
           
 
Method Summary
 java.lang.String addFont(org.apache.pdfbox.cos.COSDictionary fontData)
           
protected  FontContainer getFont(org.apache.pdfbox.cos.COSDictionary fontData)
           
 java.lang.String getFontName()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getMappedWord(java.util.List<java.lang.String> word, byte[] bytes, FontContainer oldFont)
           
 org.apache.fop.pdf.PDFDictionary getRef()
           
 java.util.Map<java.lang.Integer,java.lang.Integer> getWidthsMap()
           
 boolean isEmbeddable()
           
protected static void mergeMaxp(org.apache.fontbox.ttf.TrueTypeFont ttf, MaximumProfileTable outMaxp)
           
protected static void setProperties(org.apache.fop.fonts.CustomFont cFont, org.apache.pdfbox.pdmodel.font.PDFont font)
           
 void setRef(org.apache.fop.pdf.PDFDictionary d)
           
 int size()
           
 
Methods inherited from class org.apache.fop.fonts.MultiByteFont
addPrivateUseMapping, findGlyphIndex, getBoundingBox, getChars, getCIDSet, getCIDType, getCmapStream, getDefaultWidth, getEmbedFontName, getEncodingName, getGDEF, getGIDFromChar, getGlyphIndices, getGPOS, getGSUB, getOrdering, getRegistry, getSupplement, getTTCName, getUnicodeFromGID, getUnscaledWidths, getUsedGlyphNames, getUsedGlyphs, getWidth, getWidths, hasChar, hasCodePoint, hasFeature, isOTFFile, isSubsetEmbedded, mapChar, mapCodePoint, mapUsedGlyphName, performPositioning, performPositioning, performsPositioning, performsSubstitution, performSubstitution, reorderCombiningMarks, setBBoxArray, setCIDType, setDefaultWidth, setGDEF, setGPOS, setGSUB, setIsOTFFile, setTTCName, setWidthArray
 
Methods inherited from class org.apache.fop.fonts.CIDFont
isMultiByte
 
Methods inherited from class org.apache.fop.fonts.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, 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, setUnderlinePosition, setUnderlineThickness, setWeight, setXHeight
 
Methods inherited from class org.apache.fop.fonts.Typeface
getMaxAscent, hadMappingOperations, isCID, notifyMapOperation, setEventListener, toString, warnMissingGlyph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.fop.fonts.FontMetrics
getMaxAscent
 

Field Detail

ref

protected org.apache.fop.pdf.PDFDictionary ref
Constructor Detail

FOPPDFMultiByteFont

public FOPPDFMultiByteFont(org.apache.pdfbox.cos.COSDictionary fontData,
                           java.lang.String name)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addFont

public java.lang.String addFont(org.apache.pdfbox.cos.COSDictionary fontData)
                         throws java.io.IOException
Throws:
java.io.IOException

getWidthsMap

public java.util.Map<java.lang.Integer,java.lang.Integer> getWidthsMap()
Overrides:
getWidthsMap in class org.apache.fop.fonts.MultiByteFont

getRef

public org.apache.fop.pdf.PDFDictionary getRef()

setRef

public void setRef(org.apache.fop.pdf.PDFDictionary d)

size

public int size()

isEmbeddable

public boolean isEmbeddable()
Specified by:
isEmbeddable in interface org.apache.fop.fonts.FontDescriptor
Overrides:
isEmbeddable in class org.apache.fop.fonts.MultiByteFont

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Overrides:
getInputStream in class org.apache.fop.fonts.CustomFont
Throws:
java.io.IOException

getFont

protected FontContainer getFont(org.apache.pdfbox.cos.COSDictionary fontData)
                         throws java.io.IOException
Throws:
java.io.IOException

setProperties

protected static void setProperties(org.apache.fop.fonts.CustomFont cFont,
                                    org.apache.pdfbox.pdmodel.font.PDFont font)

mergeMaxp

protected static void mergeMaxp(org.apache.fontbox.ttf.TrueTypeFont ttf,
                                MaximumProfileTable outMaxp)
                         throws java.io.IOException
Throws:
java.io.IOException

getMappedWord

public java.lang.String getMappedWord(java.util.List<java.lang.String> word,
                                      byte[] bytes,
                                      FontContainer oldFont)

getFontName

public java.lang.String getFontName()

fop-pdf-images 2.3

Copyright 2007-2018 The Apache Software Foundation. All Rights Reserved.