63 lines
1.9 KiB
Swift
63 lines
1.9 KiB
Swift
// Lato/Lato-Italic.ttf Lato/Lato-LightItalic.ttf Lato/Lato-Thin.ttf Lato/Lato-Bold.ttf Lato/Lato-Black.ttf Lato/Lato-Regular.ttf Lato/Lato-BlackItalic.ttf Lato/Lato-BoldItalic.ttf Lato/Lato-Light.ttf Lato/Lato-ThinItalic.ttf
|
|
// Generated from FontToolCore
|
|
|
|
import UIKit
|
|
|
|
extension R2Font {
|
|
|
|
enum FontName: String {
|
|
case LatoItalic = "Lato-Italic"
|
|
case LatoLightItalic = "Lato-LightItalic"
|
|
case LatoHairline = "Lato-Hairline"
|
|
case LatoBold = "Lato-Bold"
|
|
case LatoBlack = "Lato-Black"
|
|
case LatoRegular = "Lato-Regular"
|
|
case LatoBlackItalic = "Lato-BlackItalic"
|
|
case LatoBoldItalic = "Lato-BoldItalic"
|
|
case LatoLight = "Lato-Light"
|
|
case LatoHairlineItalic = "Lato-HairlineItalic"
|
|
}
|
|
|
|
// MARK: - Getter
|
|
|
|
func LatoItalic(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoItalic.rawValue, size: size)!
|
|
}
|
|
|
|
func LatoLightItalic(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoLightItalic.rawValue, size: size)!
|
|
}
|
|
|
|
func LatoHairline(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoHairline.rawValue, size: size)!
|
|
}
|
|
|
|
func LatoBold(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoBold.rawValue, size: size)!
|
|
}
|
|
|
|
func LatoBlack(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoBlack.rawValue, size: size)!
|
|
}
|
|
|
|
func LatoRegular(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoRegular.rawValue, size: size)!
|
|
}
|
|
|
|
func LatoBlackItalic(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoBlackItalic.rawValue, size: size)!
|
|
}
|
|
|
|
func LatoBoldItalic(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoBoldItalic.rawValue, size: size)!
|
|
}
|
|
|
|
func LatoLight(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoLight.rawValue, size: size)!
|
|
}
|
|
|
|
func LatoHairlineItalic(withSize size: CGFloat) -> UIFont {
|
|
UIFont(name: FontName.LatoHairlineItalic.rawValue, size: size)!
|
|
}
|
|
|
|
} |