{"id":29460174,"url":"https://github.com/danielsaidi/fontkit","last_synced_at":"2025-07-15T03:02:04.446Z","repository":{"id":303564399,"uuid":"1015905058","full_name":"danielsaidi/FontKit","owner":"danielsaidi","description":"Easily handle custom fonts in SwiftUI, UIKit, and AppKit.","archived":false,"fork":false,"pushed_at":"2025-07-08T08:40:31.000Z","size":935,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-08T09:38:09.703Z","etag":null,"topics":["appkit","fonts","ios","macos","swift","swiftui","tvos","uikit","visionos","watchos"],"latest_commit_sha":null,"homepage":"https://danielsaidi.com/opensource","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielsaidi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["danielsaidi"]}},"created_at":"2025-07-08T07:54:31.000Z","updated_at":"2025-07-08T09:37:46.000Z","dependencies_parsed_at":"2025-07-08T09:42:04.057Z","dependency_job_id":"fc8836d4-35e0-4bb9-9d01-778b92e0492a","html_url":"https://github.com/danielsaidi/FontKit","commit_stats":null,"previous_names":["danielsaidi/fontkit"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/danielsaidi/FontKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsaidi%2FFontKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsaidi%2FFontKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsaidi%2FFontKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsaidi%2FFontKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielsaidi","download_url":"https://codeload.github.com/danielsaidi/FontKit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsaidi%2FFontKit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265233500,"owners_count":23731800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appkit","fonts","ios","macos","swift","swiftui","tvos","uikit","visionos","watchos"],"created_at":"2025-07-14T02:01:31.336Z","updated_at":"2025-07-14T02:03:25.436Z","avatar_url":"https://github.com/danielsaidi.png","language":"Shell","funding_links":["https://github.com/sponsors/danielsaidi"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"Resources/Icon.png\" alt=\"Project Icon\" width=\"250\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/danielsaidi/FontKit?color=%2300550\u0026sort=semver\" alt=\"Version\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/swift-6.0-orange.svg\" alt=\"Swift 6.0\" /\u003e\n    \u003ca href=\"https://danielsaidi.github.io/FontKit\"\u003e\u003cimg src=\"https://img.shields.io/badge/documentation-web-blue.svg\" alt=\"Documentation\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/danielsaidi/FontKit/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/danielsaidi/FontKit\" alt=\"MIT License\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/sponsors/danielsaidi\"\u003e\u003cimg src=\"https://img.shields.io/badge/sponsor-GitHub-red.svg\" alt=\"Sponsor my work\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n# FontKit\n\nFontKit is a Swift library that makes it easy to use custom fonts with SwiftUI, UIKit, and AppKit.\n\n![FontKit Preview](Resources/Preview.png)\n\n\n\n## Installation\n\nFontKit can be installed with the Swift Package Manager:\n\n```\nhttps://github.com/danielsaidi/FontKit.git\n```\n\n\n\n## Support My Work\n\nYou can [become a sponsor][Sponsors] to help me dedicate more time on my various [open-source tools][OpenSource]. Every contribution, no matter the size, makes a real difference in keeping these tools free and actively developed.\n\n\n\n## Getting Started\n\nFontKit has a ``CustomFont`` struct that can be used to define and load custom font resources from any bundle.\n\nFor instance, this is how FontKit defines the four OpenDyslexic fonts that are embedded in the `.module` bundle:\n\n```swift\npublic extension CustomFont {\n\n    /// A regular OpenDyslexic font variant.\n    static let openDyslexic = CustomFont(\n        name: \"OpenDyslexic-Regular\",\n        displayName: \"OpenDyslexic Regular\",\n        fileExtension: \"otf\",\n        bundle: .module\n    )\n\n    /// A bold OpenDyslexic font variant.\n    static let openDyslexicBold = CustomFont(\n        name: \"OpenDyslexic-Bold\",\n        displayName: \"OpenDyslexic Bold\",\n        fileExtension: \"otf\",\n        bundle: .module\n    )\n\n    /// A bold italic OpenDyslexic font variant.\n    static let openDyslexicBoldItalic = CustomFont(\n        name: \"OpenDyslexic-Bold-Italic\",\n        displayName: \"OpenDyslexic Bold Italic\",\n        fileExtension: \"otf\",\n        bundle: .module\n    )\n\n    /// An italic OpenDyslexic font variant.\n    static let openDyslexicItalic = CustomFont(\n        name: \"OpenDyslexic-Italic\",\n        displayName: \"OpenDyslexic Italic\",\n        fileExtension: \"otf\",\n        bundle: .module\n    )\n}\n```\n\nYou can use SwiftuI ``Font`` extensions to create ``CustomFont``-based fonts, or the ``.font(size:)`` builder to create fonts for UIKit and AppKit.\n\n\n\n## Documentation\n\nThe online [documentation][Documentation] has more information, articles, code examples, etc.\n\n\n\n## Demo Application\n\nThe `Demo` folder has a demo app that lets you test the library and its various fonts.\n\n\n\n## Contact\n\nFeel free to reach out if you have questions, or want to contribute in any way:\n\n* Website: [danielsaidi.com][Website]\n* E-mail: [daniel.saidi@gmail.com][Email]\n* Bluesky: [@danielsaidi@bsky.social][Bluesky]\n* Mastodon: [@danielsaidi@mastodon.social][Mastodon]\n\n\n\n## License\n\nFontKit is available under the MIT license. See the [LICENSE][License] file for more info.\n\n\n\n[Email]: mailto:daniel.saidi@gmail.com\n[Website]: https://danielsaidi.com\n[GitHub]: https://github.com/danielsaidi\n[OpenSource]: https://danielsaidi.com/opensource\n[Sponsors]: https://github.com/sponsors/danielsaidi\n\n[Bluesky]: https://bsky.app/profile/danielsaidi.bsky.social\n[Mastodon]: https://mastodon.social/@danielsaidi\n[Twitter]: https://twitter.com/danielsaidi\n\n[Documentation]: https://danielsaidi.github.io/FontKit\n[Getting-Started]: https://danielsaidi.github.io/FontKit/documentation/fontkit/getting-started\n[License]: https://github.com/danielsaidi/FontKit/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielsaidi%2Ffontkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielsaidi%2Ffontkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielsaidi%2Ffontkit/lists"}