Font

class Font

An object representing a text font.

  • The name of the font.

    Declaration

    var name: String { get }
  • The font size.

    Declaration

    var size: Double { get }
  • The path to the font’s file.

    Declaration

    var path: String? { get }
  • The file name of the font’s file.

    Declaration

    var fileName: String? { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: Font) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.