mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
36 lines
539 B
Swift
36 lines
539 B
Swift
//
|
|
// Font.swift
|
|
// lottie-swift
|
|
//
|
|
// Created by Brandon Withrow on 1/9/19.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
final class Font: Codable {
|
|
|
|
let name: String
|
|
let familyName: String
|
|
let style: String
|
|
let ascent: Double
|
|
|
|
private enum CodingKeys: String, CodingKey {
|
|
case name = "fName"
|
|
case familyName = "fFamily"
|
|
case style = "fStyle"
|
|
case ascent = "ascent"
|
|
}
|
|
|
|
}
|
|
|
|
/// A list of fonts
|
|
final class FontList: Codable {
|
|
|
|
let fonts: [Font]
|
|
|
|
enum CodingKeys : String, CodingKey {
|
|
case fonts = "list"
|
|
}
|
|
|
|
}
|