Uses of Class
org.apache.fop.fonts.Font
-
Packages that use Font Package Description org.apache.fop.afp Contains an AFP library.org.apache.fop.afp.svg Contains a collection of AFP specific Batik bridges.org.apache.fop.area.inline FOP's area tree: inline-level areasorg.apache.fop.fo.properties Classes representing the various property types as well as supporting data structures for the FO tree.org.apache.fop.fonts Classes for font handling.org.apache.fop.layoutmgr FOP's layout engine.org.apache.fop.layoutmgr.inline Layout managers for inline formatting objects and line building.org.apache.fop.render Generic renderer interface.org.apache.fop.render.afp An AFP Renderer implementation and supporting classes.org.apache.fop.render.intermediate org.apache.fop.render.java2d Java2D Renderer which paints rendered pages on Graphics2D instances.org.apache.fop.render.pcl PCL Renderer (Supports PCL5 and HP GL/2)org.apache.fop.render.ps PostScript Rendererorg.apache.fop.svg Classes that add SVG support to FOP and SVG->PDF conversion for Batik.org.apache.fop.svg.font org.apache.fop.traits Trait classes and other supporting data structures. -
-
Uses of Font in org.apache.fop.afp
Methods in org.apache.fop.afp with parameters of type Font Modifier and Type Method Description voidDataStream. createText(AFPTextDataInfo textDataInfo, int letterSpacing, int wordSpacing, Font font, CharacterSet charSet)Helper method to create text on the current page, this method delegates to the current presentation text object in order to construct the text. -
Uses of Font in org.apache.fop.afp.svg
Fields in org.apache.fop.afp.svg declared as Font Modifier and Type Field Description protected FontAFPTextHandler. overrideFontOverriding FontStateMethods in org.apache.fop.afp.svg with parameters of type Font Modifier and Type Method Description voidAFPTextHandler. setOverrideFont(Font overrideFont)Sets the overriding font. -
Uses of Font in org.apache.fop.area.inline
Fields in org.apache.fop.area.inline declared as Font Modifier and Type Field Description private FontUnresolvedPageNumber. fontConstructors in org.apache.fop.area.inline with parameters of type Font Constructor Description UnresolvedPageNumber(java.lang.String id, Font f)Create a new unresolved page number.UnresolvedPageNumber(java.lang.String id, Font f, boolean type)Create a new unresolved page number. -
Uses of Font in org.apache.fop.fo.properties
Methods in org.apache.fop.fo.properties with parameters of type Font Modifier and Type Method Description java.lang.CharacterCommonHyphenation. getHyphChar(Font font)Returns the effective hyphenation character for a font.intCommonHyphenation. getHyphIPD(Font font)Returns the IPD for the hyphenation character for a font. -
Uses of Font in org.apache.fop.fonts
Fields in org.apache.fop.fonts declared as Font Modifier and Type Field Description FontGlyphMapping. fontFields in org.apache.fop.fonts with type parameters of type Font Modifier and Type Field Description private java.util.Map<FontTriplet,java.util.Map<java.lang.Integer,Font>>FontInfo. fontInstanceCacheCache for Font instances.Methods in org.apache.fop.fonts that return Font Modifier and Type Method Description FontFontInfo. getFontInstance(FontTriplet triplet, int fontSize)Retrieves a (possibly cached) Font instance based on a FontTriplet and a font size.FontFontInfo. getFontInstanceForAWTFont(java.awt.Font awtFont)Returns a suitable internal font given an AWT Font instance.private static FontFontSelector. selectFontForCharacter(char c, FONode fonode, CommonFont commonFont, PercentBaseContext context)static FontFontSelector. selectFontForCharacter(Character fobj, PercentBaseContext context)Selects a font which is able to display the given character.static FontFontSelector. selectFontForCharacterInText(char c, FOText text, PercentBaseContext context)Selects a font which is able to display the given character.static FontFontSelector. selectFontForCharactersInText(java.lang.CharSequence charSeq, int firstIndex, int breakIndex, FOText text, PercentBaseContext context)Selects a font which is able to display the most of the given characters.Methods in org.apache.fop.fonts that return types with arguments of type Font Modifier and Type Method Description private java.util.Map<FontTriplet,java.util.Map<java.lang.Integer,Font>>FontInfo. getFontInstanceCache()Methods in org.apache.fop.fonts with parameters of type Font Modifier and Type Method Description static GlyphMappingGlyphMapping. doGlyphMapping(TextFragment text, int startIndex, int endIndex, Font font, MinOptMax letterSpaceIPD, MinOptMax[] letterSpaceAdjustArray, char precedingChar, char breakOpportunityChar, boolean endsWithHyphen, int level, boolean dontOptimizeForIdentityMapping, boolean retainAssociations, boolean retainControls)private static int[][]GlyphMapping. getKerningAdjustments(java.lang.CharSequence mcs, Font font, int[][] gpa)Given a mapped character sequence MCS, obtain glyph position adjustments from the font's kerning data.private static GlyphMappingGlyphMapping. processWordMapping(TextFragment text, int startIndex, int endIndex, Font font, char breakOpportunityChar, boolean endsWithHyphen, int level, boolean dontOptimizeForIdentityMapping, boolean retainAssociations, boolean retainControls)private static GlyphMappingGlyphMapping. processWordNoMapping(TextFragment text, int startIndex, int endIndex, Font font, MinOptMax letterSpaceIPD, MinOptMax[] letterSpaceAdjustArray, char precedingChar, char breakOpportunityChar, boolean endsWithHyphen, int level)private static booleanGlyphMapping. useKerningAdjustments(Font font, java.lang.String script, java.lang.String language)Constructors in org.apache.fop.fonts with parameters of type Font Constructor Description GlyphMapping(int startIndex, int endIndex, int wordSpaceCount, int letterSpaceCount, MinOptMax areaIPD, boolean isHyphenated, boolean isSpace, boolean breakOppAfter, Font font, int level, int[][] gposAdjustments)GlyphMapping(int startIndex, int endIndex, int wordSpaceCount, int letterSpaceCount, MinOptMax areaIPD, boolean isHyphenated, boolean isSpace, boolean breakOppAfter, Font font, int level, int[][] gposAdjustments, java.lang.String mapping, java.util.List associations) -
Uses of Font in org.apache.fop.layoutmgr
Methods in org.apache.fop.layoutmgr with parameters of type Font Modifier and Type Method Description static voidTraitSetter. addFontTraits(Area area, Font font)Adds font traits to an area -
Uses of Font in org.apache.fop.layoutmgr.inline
Fields in org.apache.fop.layoutmgr.inline declared as Font Modifier and Type Field Description protected FontAbstractPageNumberCitationLayoutManager. fontFont for the page-number-citationprivate FontCharacterLayoutManager. fontprivate FontInlineLayoutManager. fontprivate FontLeaderLayoutManager. fontprivate FontPageNumberLayoutManager. fontprivate FontTextLayoutManager.TextAreaBuilder. fontprivate FontTextLayoutManager. spaceFontFont used for the space between words.Constructors in org.apache.fop.layoutmgr.inline with parameters of type Font Constructor Description AlignmentContext(Font font, int lineHeight, Length alignmentAdjust, int alignmentBaseline, Length baselineShift, int dominantBaseline, AlignmentContext parentAlignmentContext)Creates a new instance.AlignmentContext(Font font, int lineHeight, WritingMode writingMode)Creates a new instance of AlignmentContext based simply on the font and the writing mode.TextAreaBuilder(MinOptMax width, int adjust, LayoutContext context, int firstIndex, int lastIndex, boolean isLastArea, Font font)Creates a newTextAreaBuilderwhich itself builds an inline word area. -
Uses of Font in org.apache.fop.render
Methods in org.apache.fop.render that return Font Modifier and Type Method Description protected FontPrintRenderer. getFontFromArea(Area area)Returns a Font object constructed based on the font traits in an area -
Uses of Font in org.apache.fop.render.afp
Fields in org.apache.fop.render.afp declared as Font Modifier and Type Field Description (package private) FontAFPPainter.DefaultPtocaProducer. font -
Uses of Font in org.apache.fop.render.intermediate
Methods in org.apache.fop.render.intermediate with parameters of type Font Modifier and Type Method Description private voidIFRenderer. renderTextWithAdjustments(java.lang.String s, int[][] dp, boolean reversed, Font font, AbstractTextArea parentArea)Does low-level rendering of text using generalized position adjustments.private voidIFRenderer. renderTextWithAdjustments(java.lang.String s, int[] dx, boolean reversed, Font font, AbstractTextArea parentArea)Does low-level rendering of text using DX only position adjustments. -
Uses of Font in org.apache.fop.render.java2d
Methods in org.apache.fop.render.java2d with parameters of type Font Modifier and Type Method Description static java.awt.font.GlyphVectorJava2DUtil. createGlyphVector(java.lang.String text, java.awt.Graphics2D g2d, Font font, FontInfo fontInfo)Creates an instance ofGlyphVectorthat correctly handle surrogate pairs and advanced font features such as GSUB/GPOS/GDEF.private static int[]Java2DRenderer. getGlyphOffsets(java.lang.String s, Font font, TextArea text, int[] letterAdjust)static voidJava2DRenderer. renderText(TextArea text, java.awt.Graphics2D g2d, Font font, FontInfo fontInfo)Renders a TextArea to a Graphics2D instance. -
Uses of Font in org.apache.fop.render.pcl
Methods in org.apache.fop.render.pcl with parameters of type Font Modifier and Type Method Description private java.awt.RectanglePCLPainter. getTextBoundingBox(int x, int y, int letterSpacing, int wordSpacing, int[][] dp, java.lang.String text, Font font, FontMetricsMapper metrics) -
Uses of Font in org.apache.fop.render.ps
Fields in org.apache.fop.render.ps declared as Font Modifier and Type Field Description private FontPSTextPainter.TextUtil. currentFontprotected FontNativeTextHandler. fontCurrently valid Fontprotected FontNativeTextHandler. overrideFontOverriding FontStateMethods in org.apache.fop.render.ps that return Font Modifier and Type Method Description private FontNativeTextHandler. createFont(java.awt.Font f)FontPSTextPainter.TextUtil. getCurrentFont()Methods in org.apache.fop.render.ps with parameters of type Font Modifier and Type Method Description private PSFontResourcePSTextPainter. getResourceForFont(Font f, java.lang.String postfix)booleanPSTextPainter.TextUtil. isFontChanging(Font f, char mapped)booleanPSTextPainter.TextUtil. isMultiByte(Font f)voidPSTextPainter.TextUtil. selectFont(Font f, char mapped)voidPSTextPainter.TextUtil. setCurrentFont(Font font, char mapped)voidPSTextPainter.TextUtil. setCurrentFont(Font font, int encoding)voidNativeTextHandler. setOverrideFont(Font override)Sets the overriding font.private voidPSPainter. writeText(java.lang.String text, int start, int len, int letterSpacing, int wordSpacing, int[][] dp, Font font, Typeface tf, boolean multiByte) -
Uses of Font in org.apache.fop.svg
Fields in org.apache.fop.svg declared as Font Modifier and Type Field Description protected FontNativeTextPainter. fontprivate FontPDFTextUtil. fontprotected FontPDFGraphics2D. ovFontStateThe override font state used when drawing text and the font cannot be set using java fonts.Methods in org.apache.fop.svg that return Font Modifier and Type Method Description static Font[]ACIUtils. findFontsForBatikACI(java.text.AttributedCharacterIterator aci, FontInfo fontInfo)Tries to find matching fonts in FOP'sFontInfoinstance for fonts used by Apache Batik.FontPDFTextUtil. getCurrentFont()Returns the current font in use.private FontAbstractFOPTextPainter. getFont(java.text.AttributedCharacterIterator aci)protected FontPDFGraphics2D. getInternalFontForAWTFont(java.awt.Font awtFont)Deprecated.use FontInfo.getFontInstanceForAWTFont(java.awt.Font awtFont) insteadMethods in org.apache.fop.svg with parameters of type Font Modifier and Type Method Description private floatAbstractFOPTextPainter. getStringWidth(java.lang.String str, Font font)voidPDFTextUtil. setCurrentFont(Font f)Sets the current font.voidFOPTextHandler. setOverrideFont(Font font)voidPDFGraphics2D. setOverrideFontState(Font infont)Set the override font state for drawing text.protected voidPDFGraphics2D. updateCurrentFont(Font font)Updates the currently selected font.voidPDFTextUtil. writeTf(Font f)Writes a "Tf" command, setting a new current font. -
Uses of Font in org.apache.fop.svg.font
Fields in org.apache.fop.svg.font declared as Font Modifier and Type Field Description private FontFOPGVTFont. fontMethods in org.apache.fop.svg.font that return Font Modifier and Type Method Description FontFOPGVTFont. getFont()Methods in org.apache.fop.svg.font with parameters of type Font Modifier and Type Method Description private int[]FOPGVTGlyphVector. buildGlyphs(Font font, java.text.CharacterIterator glyphAsCharIter)Constructors in org.apache.fop.svg.font with parameters of type Font Constructor Description FOPGVTFont(Font font, org.apache.batik.gvt.font.GVTFontFamily fontFamily) -
Uses of Font in org.apache.fop.traits
Methods in org.apache.fop.traits with parameters of type Font Modifier and Type Method Description static SpaceValSpaceVal. makeWordSpacing(Property wordSpacing, SpaceVal letterSpacing, Font fs)
-