skia
    Preparing search index...

    Interface TextBlobFactory

    See SkTextBlob.h for more details.

    interface TextBlobFactory {
        MakeFromGlyphs(glyphs: InputGlyphIDArray, font: Font): TextBlob;
        MakeFromRSXform(
            str: string,
            rsxforms: InputFlattenedRSXFormArray,
            font: Font,
        ): TextBlob;
        MakeFromRSXformGlyphs(
            glyphs: InputGlyphIDArray,
            rsxforms: InputFlattenedRSXFormArray,
            font: Font,
        ): TextBlob;
        MakeFromText(str: string, font: Font): TextBlob;
        MakeOnPath(
            str: string,
            path: Path,
            font: Font,
            initialOffset?: number,
        ): TextBlob;
    }
    Index

    Methods

    • Return a TextBlob with a single run of text.

      It does not perform typeface fallback for characters not found in the Typeface. It does not perform kerning or other complex shaping; glyphs are positioned based on their default advances.

      Parameters

      Returns TextBlob

    • Return a TextBlob with a single run of text.

      It uses the default character-to-glyph mapping from the typeface in the font. It does not perform typeface fallback for characters not found in the Typeface. It does not perform kerning or other complex shaping; glyphs are positioned based on their default advances.

      Parameters

      • str: string
      • font: Font

      Returns TextBlob

    • Returns a TextBlob that has the glyphs following the contours of the given path.

      It is a convenience wrapper around MakeFromRSXform and ContourMeasureIter.

      Parameters

      • str: string
      • path: Path
      • font: Font
      • OptionalinitialOffset: number

        the length in pixels to start along the path.

      Returns TextBlob