{"id":2063,"url":"https://github.com/ArtSabintsev/FontBlaster","last_synced_at":"2025-08-06T13:32:23.540Z","repository":{"id":31570892,"uuid":"35135646","full_name":"ArtSabintsev/FontBlaster","owner":"ArtSabintsev","description":"Programmatically load custom fonts into your iOS, macOS and tvOS app.","archived":true,"fork":false,"pushed_at":"2024-08-29T14:27:46.000Z","size":15736,"stargazers_count":1161,"open_issues_count":0,"forks_count":105,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-07-30T20:53:45.955Z","etag":null,"topics":["carthage","cocoapods","custom-fonts","plist","swift","swift-package-manager","tvos"],"latest_commit_sha":null,"homepage":"https://sabintsev.com/","language":"Swift","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/ArtSabintsev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2015-05-06T02:43:14.000Z","updated_at":"2025-04-11T17:11:39.000Z","dependencies_parsed_at":"2024-01-29T16:58:11.757Z","dependency_job_id":"98937c3b-559c-4fef-aa09-9594775324c2","html_url":"https://github.com/ArtSabintsev/FontBlaster","commit_stats":{"total_commits":164,"total_committers":13,"mean_commits":"12.615384615384615","dds":0.09756097560975607,"last_synced_commit":"69fbcb5a878b46b74927155f3fefe033f3240f33"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/ArtSabintsev/FontBlaster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtSabintsev%2FFontBlaster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtSabintsev%2FFontBlaster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtSabintsev%2FFontBlaster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtSabintsev%2FFontBlaster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtSabintsev","download_url":"https://codeload.github.com/ArtSabintsev/FontBlaster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtSabintsev%2FFontBlaster/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268802601,"owners_count":24309669,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["carthage","cocoapods","custom-fonts","plist","swift","swift-package-manager","tvos"],"created_at":"2024-01-05T20:16:02.563Z","updated_at":"2025-08-06T13:32:23.122Z","avatar_url":"https://github.com/ArtSabintsev.png","language":"Swift","funding_links":[],"categories":["Text","Libs","Swift","Testing","Fonts [🔝](#readme)"],"sub_categories":["Font","Fonts","Other free courses"],"readme":"# FontBlaster\n\n### Programmatically load custom fonts into your iOS, macOS, and tvOS app.\n\n![Swift Support](https://img.shields.io/badge/Swift-5.3-orange.svg) ![Platform](https://img.shields.io/badge/Platforms-iOS%20%7c%20macOS%20%7c%20tvOS%20-lightgray.svg?style=flat) [![CocoaPods](https://img.shields.io/cocoapods/v/FontBlaster.svg)](https://cocoapods.org/pods/FontBlaster) [![SwiftPM Compatible](https://img.shields.io/badge/SwiftPM-Compatible-brightgreen.svg)](https://swift.org/package-manager/)\n\n---\n\n## About\n\nSay goodbye to importing custom fonts via property lists as **FontBlaster** automatically imports and loads all fonts in your app's Bundles with one line of code.\n\n## Features\n- [x] CocoaPods Support\n- [x] Swift PM Support\n- [x] Automatically imports fonts from `Bundle.main`\n- [x] Able to import fonts from remote bundles\n- [x] Sample Project\n\n## Installation Instructions\n\n| Swift Version |  Branch Name  | Will Continue to Receive Updates?\n| ------------- | ------------- |  -------------\n| 5.1+ | master | **Yes**\n| 5.0  | swift5.0 | No\n| 4.2  | swift4.2 | No\n| 4.1  | swift4.1 | No\n| 3.2  | swift3.2 | No\n| 3.1  | swift3.1 | No\n\n### CocoaPods\n```ruby\npod 'FontBlaster' # Swift 5.1+\npod 'FontBlaster', :git =\u003e 'https://github.com/ArtSabintsev/FontBlaster.git', :branch =\u003e 'swift5.0' # Swift 5.0\npod 'FontBlaster', :git =\u003e 'https://github.com/ArtSabintsev/FontBlaster.git', :branch =\u003e 'swift4.2' # Swift 4.2\npod 'FontBlaster', :git =\u003e 'https://github.com/ArtSabintsev/FontBlaster.git', :branch =\u003e 'swift4.1' # Swift 4.1\npod 'FontBlaster', :git =\u003e 'https://github.com/ArtSabintsev/FontBlaster.git', :branch =\u003e 'swift3.2' # Swift 3.2\npod 'FontBlaster', :git =\u003e 'https://github.com/ArtSabintsev/FontBlaster.git', :branch =\u003e 'swift3.2' # Swift 3.1\n```\n\n### Swift Package Manager\n``` swift\n.Package(url: \"https://github.com/ArtSabintsev/FontBlaster.git\", majorVersion: 4)\n```\n\n### Manual\n\n1. [Download FontBlaster](//github.com/ArtSabintsev/FontBlaster/archive/master.zip).\n2. Copy `FontBlaster.swift` into your project.\n\n## Setup\n\nTypically, all fonts are automatically found in `Bundle.main`. Even if you have a custom bundle, it's usually lodged inside of the `mainBundle.` Therefore, to load all the fonts in your application, irrespective of the bundle it's in, simply call:\n\n```Swift\nFontBlaster.blast() // Defaults to Bundle.main if no arguments are passed\n```\n\nIf you are loading from a bundle that isn't found inside your app's `mainBundle`, simply pass a reference to your `Bundle` in the `blast(_:)` method:\n\n```Swift\nFontBlaster.blast(bundle:) // Takes one argument of type Bundle, or as mentioned above, defaults to Bundle.main if no arguments are passed\n```\n\nIf you need a list of all of the loaded fonts, an overloaded version of the `blast(_:)` method has a completion handler that returns just that. Just like the original method, this method takes either a custom `Bundle` or defaults to `Bundle.main` if no argument is passed.\n\n```Swift\n\n// Defaults to Bundle.main as no argument is passed\nFontBlaster.blast() { (fonts) in\n  print(fonts) // fonts is an array of Strings containing font names\n}\n\n// Custom bundle is passed as argument\nFontBlaster.blast(bundle:) { (fonts) in\n  print(fonts) // fonts is an array of Strings containing font names\n}\n```\n\nTo turn on console debug statements, simply set `debugEnabled() = true` **before** calling either `blast()` method:\n\n```Swift\nFontBlaster.debugEnabled = true\nFontBlaster.blast()\n```\n\n## Sample Project\nA Sample iOS project is included in the repo. When you launch the app, all fonts are configured to load custom fonts, but don't actually display them *until* you push the button on the navigation bar. After pushing the button, **FontBlaster** imports your fonts and redraws the view.\n\n## Inspiration\nThis project builds upon an old solution that [Marco Arment](http://twitter.com/marcoarment) proposed and wrote about on his [blog](http://www.marco.org/2012/12/21/ios-dynamic-font-loading).\n\n## Created and maintained by\n[Arthur Ariel Sabintsev](http://www.sabintsev.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FArtSabintsev%2FFontBlaster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FArtSabintsev%2FFontBlaster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FArtSabintsev%2FFontBlaster/lists"}