Commit 7d893502 by adamdahan

update to Roboto

parent fd0fa450
......@@ -9,28 +9,24 @@
import UIKit
public struct Roboto {
public static func lightWithSize(size: CGFloat) -> UIFont {
if let light = UIFont(name: "Roboto-Light", size: size) {
return light
} else {
return UIFont.systemFontOfSize(size)
}
return UIFont.systemFontOfSize(size)
}
public static func mediumWithSize(size: CGFloat) -> UIFont {
if let light = UIFont(name: "Roboto-Medium", size: size) {
return light
} else {
return UIFont.systemFontOfSize(size)
}
return UIFont.systemFontOfSize(size)
}
public static func regularWithSize(size: CGFloat) -> UIFont {
if let light = UIFont(name: "Roboto-Regular", size: size) {
return light
} else {
return UIFont.systemFontOfSize(size)
}
return UIFont.systemFontOfSize(size)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment