Class CGFont

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CGFont
    extends CFType
    • Constructor Detail

      • CGFont

        protected CGFont()
    • Method Detail

      • getGlyphAdvances

        public int[] getGlyphAdvances​(char[] glyphs)
      • getGlyphBBoxes

        public CGRect[] getGlyphBBoxes​(char[] glyphs)
      • getClassTypeID

        public static long getClassTypeID()
        Since:
        Available in iOS 2.0 and later.
      • create

        public static CGFont create​(CGDataProvider provider)
        Since:
        Available in iOS 2.0 and later.
      • create

        public static CGFont create​(java.lang.String name)
        Since:
        Available in iOS 2.0 and later.
      • getNumberOfGlyphs

        public long getNumberOfGlyphs()
        Since:
        Available in iOS 2.0 and later.
      • getUnitsPerEm

        public int getUnitsPerEm()
        Since:
        Available in iOS 2.0 and later.
      • getPostScriptName

        public java.lang.String getPostScriptName()
        Since:
        Available in iOS 2.0 and later.
      • getFullName

        public java.lang.String getFullName()
        Since:
        Available in iOS 2.0 and later.
      • getAscent

        public int getAscent()
        Since:
        Available in iOS 2.0 and later.
      • getDescent

        public int getDescent()
        Since:
        Available in iOS 2.0 and later.
      • getLeading

        public int getLeading()
        Since:
        Available in iOS 2.0 and later.
      • getCapHeight

        public int getCapHeight()
        Since:
        Available in iOS 2.0 and later.
      • getXHeight

        public int getXHeight()
        Since:
        Available in iOS 2.0 and later.
      • getFontBBox

        public CGRect getFontBBox()
        Since:
        Available in iOS 2.0 and later.
      • getItalicAngle

        public double getItalicAngle()
        Since:
        Available in iOS 2.0 and later.
      • getStemV

        public double getStemV()
        Since:
        Available in iOS 2.0 and later.
      • getVariationAxes

        public java.util.List<CGFontVariationAxis> getVariationAxes()
        Since:
        Available in iOS 2.0 and later.
      • getVariations

        public java.util.Map<java.lang.String,​NSNumber> getVariations()
        Since:
        Available in iOS 2.0 and later.
      • getGlyphForName

        public char getGlyphForName​(java.lang.String name)
        Since:
        Available in iOS 2.0 and later.
      • getNameForGlyph

        public java.lang.String getNameForGlyph​(char glyph)
        Since:
        Available in iOS 2.0 and later.