DefaultFontFamilyFactory

public struct DefaultFontFamilyFactory
extension DefaultFontFamilyFactory: FontFamilyFactory

Returns a DefaultFontFamily given a font family name and style.

  • Initializes a default font family factory

    Declaration

    Swift

    public init()
  • Given a family name and style instantiates and returns a DefaultFontFamily

    Declaration

    Swift

    public func getFontFamily(familyName: String, style: Typography.FontStyle) -> FontFamily

    Parameters

    familyName

    font family name

    style

    font style

    Return Value

    a font family matching the family name and style