Developer   API   Graphics   Typeface

Typeface(native)

The Typeface class specifies the typeface and intrinsic style of a font.

Properties

  • bold : Boolean
    True if style is the #bold
  • italic : Boolean
    True if style isNaN the #italic
  • style : Symbol
    Typeface's intrinsic style attributes.
  • uniqueId : Integer
    Integer value for this typeface, unique for the underlying font data. This is never 0.

Methods

  • fromName(familyName, style) : Typeface
    Creates new instance of Typeface class to the font that most closely matches the requested familyName and style.

Remarks

This is used in the paint, along with optionally algorithmic settings like textSize, textSkewX, textScaleX, kFakeBoldText_Mask, to specify how text appears when drawn (and measured).Typeface objects are immutable, and so they can be shared between threads.

API Navigation
Skip Navigation Links.
Expand <span>User Interface</span> User Interface
Expand <span>Core & System</span> Core & System
Collapse <span>Graphics</span> Graphics
Canvas
Paint
Bitmap
Typeface
Path
Matrix
Shader
ColorFilter
MaskFilter
Expand <span>Files and Databases</span> Files and Databases
Expand <span>Crypto</span> Crypto
Expand <span>Native User Interface</span> Native User Interface
Expand <span>Net</span> Net
Expand <span>Media</span> Media
Expand <span>Sensor</span> Sensor
Expand <span>Game Development</span> Game Development