Uses of Class org.apache.fop.fonts.Typeface (Apache FOP 2.7 API)
Date: 2022-01-12

## Uses of Class
org.apache.fop.fonts.Typeface

- Packages that use Typeface
  Package | Description
  --- | ---
  org.apache.fop.afp.fonts | Contains a collection of AFP Graphics Object Content Architecture (GOCA) structured objects.
  org.apache.fop.fonts | Classes for font handling.
  org.apache.fop.fonts.base14 | Base 14 fonts used for PDF and PostScript.
  org.apache.fop.render.afp | An AFP Renderer implementation and supporting classes.
  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.pcl.fonts |
  org.apache.fop.render.pcl.fonts.truetype |
  org.apache.fop.render.ps | PostScript Renderer

- - ### Uses of Typeface in org.apache.fop.afp.fonts

    Subclasses of Typeface in org.apache.fop.afp.fonts
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractOutlineFont` A font defined as a set of lines and curves as opposed to a bitmap font.
    `class` | `AFPFont` All implementations of AFP fonts should extend this base class, the object implements the FontMetrics information.
    `class` | `DoubleByteFont` Implementation of `AbstractOutlineFont` that supports double-byte fonts (CID Keyed font (Type 0)).
    `class` | `OutlineFont` Default implementation of AbstractOutlineFont.
    `class` | `RasterFont` A font where each character is stored as an array of pixels (a bitmap).

    Methods in org.apache.fop.afp.fonts with parameters of type Typeface
    Modifier and Type | Method and Description
    --- | ---
    `CharacterSet` | CharacterSetBuilder.`build(java.lang.String characterSetName, java.lang.String codePageName, java.lang.String encoding, Typeface typeface, AFPEventProducer eventProducer)` Load the font details and metrics into the CharacterSetMetric object, this will use the actual afp code page and character set files to load the object with the necessary metrics.
    `CharacterSet` | CharacterSetBuilder.`build(java.lang.String characterSetName, java.lang.String codePageName, java.lang.String encoding, Typeface typeface, AFPResourceAccessor accessor, AFPEventProducer eventProducer)`

    Constructors in org.apache.fop.afp.fonts with parameters of type Typeface
    Constructor and Description
    `FopCharacterSet(java.lang.String codePage, java.lang.String encoding, java.lang.String name, Typeface charSet, AFPEventProducer eventProducer)` Constructor for the CharacterSetMetric object, the character set is used to load the font information from the actual AFP font.
    `FopCharacterSet(java.lang.String codePage, java.lang.String encoding, java.lang.String name, Typeface charSet, AFPResourceAccessor accessor, AFPEventProducer eventProducer)`

  - ### Uses of Typeface in org.apache.fop.fonts

    Subclasses of Typeface in org.apache.fop.fonts
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Base14Font` Base class for all Base 14 fonts.
    `class` | `CFFToType1Font`
    `class` | `CIDFont` Abstract base class for CID fonts.
    `class` | `CustomFont` Abstract base class for custom fonts loaded from files, for example.
    `class` | `LazyFont` This class is used to defer the loading of a font until it is really used.
    `class` | `MultiByteFont` Generic MultiByte (CID) font
    `class` | `SingleByteFont` Generic SingleByte font

    Methods in org.apache.fop.fonts that return Typeface
    Modifier and Type | Method and Description
    --- | ---
    `Typeface` | XMLFontMetricsReader.`getFont()` Deprecated. Get the generated font object
    `Typeface` | LazyFont.`getRealFont()` Gets the real font.

    Methods in org.apache.fop.fonts that return types with arguments of type Typeface
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Map<java.lang.String,Typeface>` | FontInfo.`getFonts()` Gets a Map of all registered fonts.
    `java.util.Map<java.lang.String,Typeface>` | FontInfo.`getUsedFonts()` This is used by the renderers to retrieve all the fonts used in the document.

  - ### Uses of Typeface in org.apache.fop.fonts.base14

    Subclasses of Typeface in org.apache.fop.fonts.base14
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Courier`
    `class` | `CourierBold`
    `class` | `CourierBoldOblique`
    `class` | `CourierOblique`
    `class` | `Helvetica`
    `class` | `HelveticaBold`
    `class` | `HelveticaBoldOblique`
    `class` | `HelveticaOblique`
    `class` | `Symbol`
    `class` | `TimesBold`
    `class` | `TimesBoldItalic`
    `class` | `TimesItalic`
    `class` | `TimesRoman`
    `class` | `ZapfDingbats`

  - ### Uses of Typeface in org.apache.fop.render.afp

    Subclasses of Typeface in org.apache.fop.render.afp
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `AFPFontConfig.AFPTrueTypeFont`

  - ### Uses of Typeface in org.apache.fop.render.java2d

    Subclasses of Typeface in org.apache.fop.render.java2d
    Modifier and Type | Class and Description
    --- | ---
    `class` | `CustomFontMetricsMapper` FontMetricsMapper that delegates most methods to an underlying `FontMetrics` instance.
    `class` | `SystemFontMetricsMapper` This class implements org.apache.fop.layout.FontMetrics and is added to the hash table in FontInfo.

    Methods in org.apache.fop.render.java2d that return Typeface
    Modifier and Type | Method and Description
    --- | ---
    `Typeface` | CustomFontMetricsMapper.`getRealFont()`

  - ### Uses of Typeface in org.apache.fop.render.pcl

    Fields in org.apache.fop.render.pcl with type parameters of type Typeface
    Modifier and Type | Field and Description
    --- | ---
    `protected java.util.Map<PCLSoftFontManager,java.util.Map<Typeface,java.lang.Long>>` | PCLGenerator.`fontManagerMap`
    `protected java.util.Map<Typeface,PCLFontReader>` | PCLGenerator.`fontReaderMap`

    Methods in org.apache.fop.render.pcl with parameters of type Typeface
    Modifier and Type | Method and Description
    --- | ---
    `void` | PCLGenerator.`addFont(PCLSoftFontManager sfManager, Typeface font)`

  - ### Uses of Typeface in org.apache.fop.render.pcl.fonts

    Fields in org.apache.fop.render.pcl.fonts declared as Typeface
    Modifier and Type | Field and Description
    --- | ---
    `protected Typeface` | PCLFontReader.`typeface`

    Methods in org.apache.fop.render.pcl.fonts that return Typeface
    Modifier and Type | Method and Description
    --- | ---
    `Typeface` | PCLSoftFont.`getTypeface()`

    Methods in org.apache.fop.render.pcl.fonts with parameters of type Typeface
    Modifier and Type | Method and Description
    --- | ---
    `static PCLFontReader` | PCLFontReaderFactory.`createInstance(Typeface font)`
    `PCLSoftFont` | PCLSoftFontManager.`getSoftFont(Typeface font, java.lang.String text)` Finds a soft font associated with the given typeface.
    `int` | PCLSoftFontManager.`getSoftFontID(Typeface tf)`
    `java.util.List<PCLSoftFontManager.PCLTextSegment>` | PCLSoftFontManager.`getTextSegments(java.lang.String text, Typeface font)`
    `java.io.ByteArrayOutputStream` | PCLSoftFontManager.`makeSoftFont(Typeface font, java.lang.String text)`

    Constructors in org.apache.fop.render.pcl.fonts with parameters of type Typeface
    Constructor and Description
    `PCLFontReader(Typeface font)`
    `PCLSoftFont(int fontID, Typeface font, boolean multiByteFont)`

    Constructor parameters in org.apache.fop.render.pcl.fonts with type arguments of type Typeface
    Constructor and Description
    `PCLSoftFontManager(java.util.Map<Typeface,PCLFontReader> fontReaderMap)`

  - ### Uses of Typeface in org.apache.fop.render.pcl.fonts.truetype

    Constructors in org.apache.fop.render.pcl.fonts.truetype with parameters of type Typeface
    Constructor and Description
    `PCLTTFFontReader(Typeface font)`

  - ### Uses of Typeface in org.apache.fop.render.ps

    Method parameters in org.apache.fop.render.ps with type arguments of type Typeface
    Modifier and Type | Method and Description
    --- | ---
    `static java.util.Map` | PSFontUtils.`determineSuppliedFonts(org.apache.xmlgraphics.ps.dsc.ResourceTracker resTracker, FontInfo fontInfo, java.util.Map<java.lang.String,Typeface> fonts)` Determines the set of fonts that will be supplied with the PS file and registers them with the resource tracker.
    `static java.util.Map` | PSFontUtils.`writeFontDict(org.apache.xmlgraphics.ps.PSGenerator gen, FontInfo fontInfo, java.util.Map<java.lang.String,Typeface> fonts, PSEventProducer eventProducer)` Generates the PostScript code for the font dictionary.

Copyright 1999-2022 The Apache Software Foundation. All Rights Reserved.