StiFontUtils Class

Namespace: Stimulsoft.Base.Drawing

Methods

Method Returns Description
changeFontName static Font  
changeFontSize static Font  
changeFontStyle static Font  
changeFontStyle2 static Font  
changeFontStyleBold static Font  
changeFontStyleItalic static Font  
changeFontStyleStrikeout static Font  
changeFontStyleUnderline static Font  
correctStyle static FontStyle  

Method Details

changeFontName static

changeFontName(font: Font, newFontName: string): Font

Parameters

  • font (Font)
  • newFontName (string)

Returns Font


changeFontSize static

changeFontSize(font: Font, newFontSize: number): Font

Parameters

  • font (Font)
  • newFontSize (number)

Returns Font


changeFontStyle static

changeFontStyle(font: Font, style: FontStyle): Font

Parameters

Returns Font


changeFontStyle2 static

changeFontStyle2(fontName: string, fontSize: number, style: FontStyle): Font

Parameters

  • fontName (string)
  • fontSize (number)
  • style (FontStyle)

Returns Font


changeFontStyleBold static

changeFontStyleBold(font: Font, bold: boolean): Font

Parameters

  • font (Font)
  • bold (boolean)

Returns Font


changeFontStyleItalic static

changeFontStyleItalic(font: Font, italic: boolean): Font

Parameters

  • font (Font)
  • italic (boolean)

Returns Font


changeFontStyleStrikeout static

changeFontStyleStrikeout(font: Font, strikeout: boolean): Font

Parameters

  • font (Font)
  • strikeout (boolean)

Returns Font


changeFontStyleUnderline static

changeFontStyleUnderline(font: Font, underline: boolean): Font

Parameters

  • font (Font)
  • underline (boolean)

Returns Font


correctStyle static

correctStyle(fontName: string, style: FontStyle): FontStyle

Parameters

Returns FontStyle