PFont class
A PCanvas font.
- Available extensions
Constructors
Properties
- bold → bool
- 
  If truethe font is bold.final
- family → String
- 
  The family of the font.
  final
- familyFallback → String?
- 
  The family fallback.
  final
- hashCode → int
- 
  The hash code for this object.
  no setteroverride
- italic → bool
- 
  If truethe font is italic.final
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- size → num
- 
  The size of the font.
  final
Methods
- 
  equals(PFont other) → bool 
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toCSS({num pixelRatio = 1}) → String 
- Returns this font properties in CSS.
- 
  toString() → String 
- 
  A string representation of this object.
  override
- 
  toTextStyle({PColor? color, num pixelRatio = 1}) → TextStyle 
- 
      Available on PFont, provided by the PFontExtension extension 
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  override