You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
458 B
24 lines
458 B
//
|
|
// FontResource.swift
|
|
// R.swift.Library
|
|
//
|
|
// Created by Mathijs Kadijk on 06-01-16.
|
|
// From: https://github.com/mac-cain13/R.swift.Library
|
|
// License: MIT License
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public protocol FontResourceType {
|
|
/// Name of the font
|
|
var fontName: String { get }
|
|
}
|
|
|
|
public struct FontResource: FontResourceType {
|
|
/// Name of the font
|
|
public let fontName: String
|
|
|
|
public init(fontName: String) {
|
|
self.fontName = fontName
|
|
}
|
|
}
|