SFWFont

extension SFWFont

Undocumented

  • Calculates size of string

    Declaration

    Swift

    func sizeOfString(string: String, constrainedToWidth width: CGFloat) -> CGSize

    Parameters

    string

    string

    width

    maximum width

    Return Value

    return size of string

  • Number of characters that fit witdh

    Declaration

    Swift

    func number(ofCharacters text: String, thatFit width: CGFloat, numberOfLines: Int = 1) -> Int

    Parameters

    text

    text

    width

    maximum width

    numberOfLines

    number of lines

    Return Value

    number of characters