2019-03-10 11:50:24 +03:00
|
|
|
/**
|
|
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
|
|
* See LICENSE
|
|
|
|
*/
|
2018-08-27 19:44:42 +03:00
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
2020-03-10 23:14:49 +03:00
|
|
|
public struct FontTrait: OptionSet {
|
2018-08-27 19:44:42 +03:00
|
|
|
|
2020-03-10 23:14:49 +03:00
|
|
|
public let rawValue: UInt
|
|
|
|
|
|
|
|
public init(rawValue: UInt) {
|
|
|
|
self.rawValue = rawValue
|
|
|
|
}
|
2018-08-27 19:44:42 +03:00
|
|
|
|
|
|
|
static let italic = FontTrait(rawValue: 1 << 0)
|
|
|
|
static let bold = FontTrait(rawValue: 1 << 1)
|
|
|
|
static let underline = FontTrait(rawValue: 1 << 2)
|
|
|
|
static let undercurl = FontTrait(rawValue: 1 << 3)
|
|
|
|
}
|