Hierarchy

  • StiTextRenderer

Index

Properties

Static StiForceWidthAlignTag

StiForceWidthAlignTag: string = "<forcewidth>"

Static compatibility2009

compatibility2009: boolean = false

Static correctionEnabled

correctionEnabled: boolean = true

Static interpreteFontSizeInHtmlTagsAsInHtml

interpreteFontSizeInHtmlTagsAsInHtml: boolean = false

Static maxFontSize

maxFontSize: number = 1024

Static optimizeBottomMargin

optimizeBottomMargin: boolean = true

Static precisionModeEnabled

precisionModeEnabled: boolean = false

Static precisionModeFactor

precisionModeFactor: number = 4

Methods

Static drawTextForOutput

Static getFontIndex

  • getFontIndex(fontName: string, fontSize: number, bold: boolean, italic: boolean, underlined: boolean, strikeout: boolean, superOrSubscript: boolean, tempFontList: List<StiFontState>): number
  • Parameters

    • fontName: string
    • fontSize: number
    • bold: boolean
    • italic: boolean
    • underlined: boolean
    • strikeout: boolean
    • superOrSubscript: boolean
    • tempFontList: List<StiFontState>

    Returns number

Static getTextLinesAndWidths

  • getTextLinesAndWidths(g: Graphics, REFtext: any, font: Font, bounds: Rectangle, lineSpacing: number, wordWrap: boolean, rightToLeft: boolean, scale: number, angle: number, trimming: StringTrimming, allowHtmlTags: boolean, REFtextLines: any, REFlinesInfo: any): string[]
  • Parameters

    • g: Graphics
    • REFtext: any
    • font: Font
    • bounds: Rectangle
    • lineSpacing: number
    • wordWrap: boolean
    • rightToLeft: boolean
    • scale: number
    • angle: number
    • trimming: StringTrimming
    • allowHtmlTags: boolean
    • REFtextLines: any
    • REFlinesInfo: any

    Returns string[]

Static measureString

  • measureString(maxWidth: number, font: Font, text: string, angle?: number, allowHtmlTags?: boolean): Size
  • Parameters

    • maxWidth: number
    • font: Font
    • text: string
    • Default value angle: number = 0
    • Default value allowHtmlTags: boolean = false

    Returns Size

Static measureText

  • measureText(g: Graphics, text: string, font: Font, bounds: Rectangle, lineSpacing: number, wordWrap: boolean, rightToLeft: boolean, scale: number, angle: number, trimming: StringTrimming, lineLimit: boolean, allowHtmlTags: boolean, textOptions: StiTextOptions): Size

Static parseHtmlToStates

Static prepareStateText

Static stateToHtml

Generated using TypeDoc