skia
    Preparing search index...

    Interface FontConstructor

    See SkFont.h for more.

    interface FontConstructor {
        new FontConstructor(face: Typeface | null, size?: number): Font;
        new FontConstructor(
            face: Typeface | null,
            size: number,
            scaleX: number,
            skewX: number,
        ): Font;
        new FontConstructor(): Font;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Constructors

    • Constructs Font with default values with Typeface.

      Parameters

      • face: Typeface | null
      • Optionalsize: number

        font size in points. If not specified, uses a default value.

      Returns Font

    • Constructs Font with default values with Typeface and size in points, horizontal scale, and horizontal skew. Horizontal scale emulates condensed and expanded fonts. Horizontal skew emulates oblique fonts.

      Parameters

      • face: Typeface | null
      • size: number
      • scaleX: number
      • skewX: number

      Returns Font

    • Returns Font