mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
28 lines
428 B
Swift
28 lines
428 B
Swift
import BaseUIPublic
|
|
|
|
extension DivFontWeight {
|
|
var fontWeight: FontWeight {
|
|
switch self {
|
|
case .light:
|
|
return .light
|
|
case .regular:
|
|
return .regular
|
|
case .medium:
|
|
return .medium
|
|
case .bold:
|
|
return .bold
|
|
}
|
|
}
|
|
}
|
|
|
|
extension DivFontFamily {
|
|
var fontFamily: FontFamily {
|
|
switch self {
|
|
case .display:
|
|
return .YSDisplay
|
|
case .text:
|
|
return .YSText
|
|
}
|
|
}
|
|
}
|