Interface Font.Glyph

  • Enclosing interface:
    Font

    public static interface Font.Glyph
    Glyph for font http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6cmap.html http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6glyf.html http://www.microsoft.com/typography/otspec/glyf.htm
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ID_UNKNOWN  
    • Method Detail

      • getID

        int getID()
        Return this glyph's ID
      • getName

        String getName()
        Return the glyph's name, source from `post` table
      • isWhiteSpace

        boolean isWhiteSpace()
        Return true if the underlying getShape() is a whitespace, otherwise false.
      • isUndefined

        boolean isUndefined()
        Return true if the Glyph denotes an undefined getID() symbol, i.e. getName() == `.notdef`.
      • getBoundsFU

        AABBox getBoundsFU()
        Return the AABBox in font-units, borrowing internal instance.
      • getBoundsFU

        AABBox getBoundsFU​(AABBox dest)
        Return the AABBox in font-units, copying into given dest.
        Parameters:
        dest - AABBox instance set to this metrics boundary in font-units
        Returns:
        the given and set AABBox 'dest' in font-units
      • getBounds

        AABBox getBounds​(AABBox dest)
        Return the AABBox in font em-size [0..1], copying into given dest.
        Parameters:
        dest - AABBox instance set to this metrics boundary in font em-size [0..1]
        Returns:
        the given and set AABBox 'dest' in font em-size [0..1]
      • getBounds

        AABBox getBounds()
        Return the AABBox in font em-size [0..1], creating a new copy.
      • getAdvanceFU

        int getAdvanceFU()
        Return advance in font units, sourced from `hmtx` table.
      • getAdvance

        float getAdvance()
        Return advance in font em-size [0..1], sourced from `hmtx` table.
      • getLeftSideBearingsFU

        int getLeftSideBearingsFU()
        Return leftSideBearings in font units, sourced from `hmtx` table.
      • getLeftSideBearings

        float getLeftSideBearings()
        Return leftSideBearings in font em-size [0..1], sourced from `hmtx` table.
      • isKerningHorizontal

        boolean isKerningHorizontal()
        True if kerning values are horizontal, otherwise vertical
      • isKerningCrossstream

        boolean isKerningCrossstream()
        True if kerning values are perpendicular to text flow, otherwise along with flow
      • getKerningPairCount

        int getKerningPairCount()
        Return the number of kerning values stored for this glyph, associated to a right hand glyph.
      • getKerningFU

        int getKerningFU​(int right_glyphid)
        Returns the optional kerning inter-glyph distance within words between this glyph and the given right glyph_id in font-units.
        Parameters:
        right_glyphid - right glyph code id
        Returns:
        font-units
      • getKerning

        float getKerning​(int right_glyphid)
        Returns the optional kerning inter-glyph distance within words between this glyph and the given right glyph_id in fractional font em-size [0..1].
        Parameters:
        right_glyphid - right glyph code id
        Returns:
        fractional font em-size distance [0..1]
      • fullString

        String fullString()
        Return all glyph details as string.