Uses of Class
org.apache.fop.fonts.Font
Packages that use Font
Package
Description
Contains an AFP library.
Contains a collection of AFP specific Batik bridges.
FOP's area tree: inline-level areas
Classes representing the various property types as well as supporting data structures for the FO tree.
Classes for font handling.
FOP's layout engine.
Layout managers for inline formatting objects and line building.
Generic renderer interface.
An AFP Renderer implementation and supporting classes.
Java2D Renderer which paints rendered pages on Graphics2D instances.
PCL Renderer (Supports PCL5 and HP GL/2)
PostScript Renderer
Classes that add SVG support to FOP and SVG->PDF conversion for Batik.
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 FontModifier and TypeMethodDescriptionvoid
DataStream.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 FontMethods in org.apache.fop.afp.svg with parameters of type FontModifier and TypeMethodDescriptionvoid
AFPTextHandler.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 FontConstructors in org.apache.fop.area.inline with parameters of type FontModifierConstructorDescriptionUnresolvedPageNumber
(String id, Font f) Create a new unresolved page number.UnresolvedPageNumber
(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 FontModifier and TypeMethodDescriptionCommonHyphenation.getHyphChar
(Font font) Returns the effective hyphenation character for a font.int
CommonHyphenation.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 FontFields in org.apache.fop.fonts with type parameters of type FontModifier and TypeFieldDescriptionprivate Map
<FontTriplet, Map<Integer, Font>> FontInfo.fontInstanceCache
Cache for Font instances.Methods in org.apache.fop.fonts that return FontModifier and TypeMethodDescriptionFontInfo.getFontInstance
(FontTriplet triplet, int fontSize) Retrieves a (possibly cached) Font instance based on a FontTriplet and a font size.FontInfo.getFontInstanceForAWTFont
(Font awtFont) Returns a suitable internal font given an AWT Font instance.private static Font
FontSelector.selectFontForCharacter
(char c, FONode fonode, CommonFont commonFont, PercentBaseContext context) static Font
FontSelector.selectFontForCharacter
(Character fobj, PercentBaseContext context) Selects a font which is able to display the given character.static Font
FontSelector.selectFontForCharacterInText
(char c, FOText text, PercentBaseContext context) Selects a font which is able to display the given character.static Font
FontSelector.selectFontForCharactersInText
(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 FontModifier and TypeMethodDescriptionprivate Map
<FontTriplet, Map<Integer, Font>> FontInfo.getFontInstanceCache()
Methods in org.apache.fop.fonts with parameters of type FontModifier and TypeMethodDescriptionstatic GlyphMapping
GlyphMapping.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
(CharSequence mcs, Font font, int[][] gpa) Given a mapped character sequence MCS, obtain glyph position adjustments from the font's kerning data.private static GlyphMapping
GlyphMapping.processWordMapping
(TextFragment text, int startIndex, int endIndex, Font font, char breakOpportunityChar, boolean endsWithHyphen, int level, boolean dontOptimizeForIdentityMapping, boolean retainAssociations, boolean retainControls) private static GlyphMapping
GlyphMapping.processWordNoMapping
(TextFragment text, int startIndex, int endIndex, Font font, MinOptMax letterSpaceIPD, MinOptMax[] letterSpaceAdjustArray, char precedingChar, char breakOpportunityChar, boolean endsWithHyphen, int level) private static boolean
GlyphMapping.useKerningAdjustments
(Font font, String script, String language) Constructors in org.apache.fop.fonts with parameters of type FontModifierConstructorDescriptionGlyphMapping
(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, String mapping, List associations) -
Uses of Font in org.apache.fop.layoutmgr
Methods in org.apache.fop.layoutmgr with parameters of type FontModifier and TypeMethodDescriptionstatic void
TraitSetter.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 FontModifier and TypeFieldDescriptionprotected Font
AbstractPageNumberCitationLayoutManager.font
Font for the page-number-citationprivate Font
CharacterLayoutManager.font
private Font
InlineLayoutManager.font
private Font
LeaderLayoutManager.font
private Font
PageNumberLayoutManager.font
private final Font
TextLayoutManager.TextAreaBuilder.font
private Font
TextLayoutManager.spaceFont
Font used for the space between words.Constructors in org.apache.fop.layoutmgr.inline with parameters of type FontModifierConstructorDescription(package private)
AlignmentContext
(Font font, int lineHeight, Length alignmentAdjust, int alignmentBaseline, Length baselineShift, int dominantBaseline, AlignmentContext parentAlignmentContext) Creates a new instance.(package private)
AlignmentContext
(Font font, int lineHeight, WritingMode writingMode) Creates a new instance of AlignmentContext based simply on the font and the writing mode.private
TextAreaBuilder
(MinOptMax width, int adjust, LayoutContext context, int firstIndex, int lastIndex, boolean isLastArea, Font font) Creates a newTextAreaBuilder
which itself builds an inline word area. -
Uses of Font in org.apache.fop.render
Methods in org.apache.fop.render that return FontModifier and TypeMethodDescriptionprotected Font
PrintRenderer.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 -
Uses of Font in org.apache.fop.render.intermediate
Methods in org.apache.fop.render.intermediate with parameters of type FontModifier and TypeMethodDescriptionprivate void
IFRenderer.renderTextWithAdjustments
(String s, int[][] dp, boolean reversed, Font font, AbstractTextArea parentArea) Does low-level rendering of text using generalized position adjustments.private void
IFRenderer.renderTextWithAdjustments
(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 FontModifier and TypeMethodDescriptionstatic GlyphVector
Java2DUtil.createGlyphVector
(String text, Graphics2D g2d, Font font, FontInfo fontInfo) Creates an instance ofGlyphVector
that correctly handle surrogate pairs and advanced font features such as GSUB/GPOS/GDEF.private static int[]
Java2DRenderer.getGlyphOffsets
(String s, Font font, TextArea text, int[] letterAdjust) static void
Java2DRenderer.renderText
(TextArea text, 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 FontModifier and TypeMethodDescriptionprivate Rectangle
PCLPainter.getTextBoundingBox
(int x, int y, int letterSpacing, int wordSpacing, int[][] dp, String text, Font font, FontMetricsMapper metrics) -
Uses of Font in org.apache.fop.render.ps
Fields in org.apache.fop.render.ps declared as FontModifier and TypeFieldDescriptionprivate Font
PSTextPainter.TextUtil.currentFont
protected Font
NativeTextHandler.font
Currently valid Fontprotected Font
NativeTextHandler.overrideFont
Overriding FontStateMethods in org.apache.fop.render.ps that return FontModifier and TypeMethodDescriptionprivate Font
NativeTextHandler.createFont
(Font f) PSTextPainter.TextUtil.getCurrentFont()
Methods in org.apache.fop.render.ps with parameters of type FontModifier and TypeMethodDescriptionprivate PSFontResource
PSTextPainter.getResourceForFont
(Font f, String postfix) boolean
PSTextPainter.TextUtil.isFontChanging
(Font f, char mapped) boolean
PSTextPainter.TextUtil.isMultiByte
(Font f) void
PSTextPainter.TextUtil.selectFont
(Font f, char mapped) void
PSTextPainter.TextUtil.setCurrentFont
(Font font, char mapped) void
PSTextPainter.TextUtil.setCurrentFont
(Font font, int encoding) void
NativeTextHandler.setOverrideFont
(Font override) Sets the overriding font.private void
PSPainter.writeText
(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 FontModifier and TypeFieldDescriptionprotected Font
NativeTextPainter.font
private Font
PDFTextUtil.font
protected Font
PDFGraphics2D.ovFontState
The override font state used when drawing text and the font cannot be set using java fonts.Methods in org.apache.fop.svg that return FontModifier and TypeMethodDescriptionstatic Font[]
ACIUtils.findFontsForBatikACI
(AttributedCharacterIterator aci, FontInfo fontInfo) Tries to find matching fonts in FOP'sFontInfo
instance for fonts used by Apache Batik.PDFTextUtil.getCurrentFont()
Returns the current font in use.private Font
AbstractFOPTextPainter.getFont
(AttributedCharacterIterator aci) protected Font
PDFGraphics2D.getInternalFontForAWTFont
(Font awtFont) Deprecated.use FontInfo.getFontInstanceForAWTFont(java.awt.Font awtFont) insteadMethods in org.apache.fop.svg with parameters of type FontModifier and TypeMethodDescriptionprivate float
AbstractFOPTextPainter.getStringWidth
(String str, Font font) void
PDFTextUtil.setCurrentFont
(Font f) Sets the current font.void
FOPTextHandler.setOverrideFont
(Font font) void
PDFGraphics2D.setOverrideFontState
(Font infont) Set the override font state for drawing text.protected void
PDFGraphics2D.updateCurrentFont
(Font font) Updates the currently selected font.void
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 FontMethods in org.apache.fop.svg.font that return FontMethods in org.apache.fop.svg.font with parameters of type FontModifier and TypeMethodDescriptionprivate int[]
FOPGVTGlyphVector.buildGlyphs
(Font font, CharacterIterator glyphAsCharIter) Constructors in org.apache.fop.svg.font with parameters of type FontModifierConstructorDescriptionFOPGVTFont
(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 FontModifier and TypeMethodDescriptionstatic SpaceVal
SpaceVal.makeWordSpacing
(Property wordSpacing, SpaceVal letterSpacing, Font fs)