{"id":22622538,"url":"https://github.com/gaelfoppolo/uidefaultfont","last_synced_at":"2025-03-29T02:42:34.042Z","repository":{"id":56924843,"uuid":"103869887","full_name":"gaelfoppolo/UIDefaultFont","owner":"gaelfoppolo","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-15T15:41:08.000Z","size":126,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T04:17:32.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gaelfoppolo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-17T23:31:34.000Z","updated_at":"2021-12-26T09:58:16.000Z","dependencies_parsed_at":"2022-08-21T06:20:09.140Z","dependency_job_id":null,"html_url":"https://github.com/gaelfoppolo/UIDefaultFont","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaelfoppolo%2FUIDefaultFont","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaelfoppolo%2FUIDefaultFont/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaelfoppolo%2FUIDefaultFont/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaelfoppolo%2FUIDefaultFont/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaelfoppolo","download_url":"https://codeload.github.com/gaelfoppolo/UIDefaultFont/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246131241,"owners_count":20728299,"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":[],"created_at":"2024-12-08T23:16:32.332Z","updated_at":"2025-03-29T02:42:34.025Z","avatar_url":"https://github.com/gaelfoppolo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIDefaultFont\n\n[![CI Status](http://img.shields.io/travis/gaelfoppolo/UIDefaultFont.svg?style=flat)](https://travis-ci.org/gaelfoppolo/UIDefaultFont)\n![Swift 4](https://img.shields.io/badge/Swift-4-orange.svg)\n[![Version](https://img.shields.io/cocoapods/v/UIDefaultFont.svg?style=flat)](http://cocoapods.org/pods/UIDefaultFont)\n[![License](https://img.shields.io/cocoapods/l/UIDefaultFont.svg?style=flat)](http://cocoapods.org/pods/UIDefaultFont)\n[![Platform](https://img.shields.io/cocoapods/p/UIDefaultFont.svg?style=flat)](http://cocoapods.org/pods/UIDefaultFont)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Documentation](https://github.com/gaelfoppolo/UIDefaultFont/blob/gh-pages/badge.svg)](https://gaelfoppolo.github.io/UIDefaultFont)\n[![codecov.io](https://codecov.io/github/gaelfoppolo/UIDefaultFont/coverage.svg?branch=master)](https://codecov.io/github/gaelfoppolo/UIDefaultFont?branch=master)\n\nReplace the system font in the whole app easily\n\nNo more wasted time and effort, searching and overriding the font of every displayed string in your app. At runtime, you can change the system font and it will be replaced everywhere it's used in the application.\n\nThis library is simply one extension to `UIFont`, adding three properties:\n* `normalFontName`\n* `boldFontName`\n* `italicFontName`\n\n## Usage\n\nSimply:\n\n```swift\nUIFont.normalFontName = \"Courier\"\nUIFont.boldFontName = \"Noteworthy-Bold\"\nUIFont.italicFontName = \"HelveticaNeue-ThinItalic\"\n```\n\nIf you want to be notify (to update already displayed labels for example), you can observe these three notifications:\n* `normalFontChanged`\n* `boldFontChanged`\n* `italicFontChanged`\n\n```swift\nNotificationCenter.default.addObserver(self, selector: #selector(updateNormalFont), name: .normalFontChanged, object: nil)\n```\n\n## Requirements\n\n* Xcode 9.0\n* Swift 4\n\n*Swift 3 support is available on the branch `swift-3` on this repository.*\n\n## Installation\n\n### CocoaPods\n\nUIDefaultFont is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'UIDefaultFont'\n```\n\n### Carthage\n\nIf you use Carthage to manage your dependencies, simply add\nUIDefaultFont to your `Cartfile`:\n\n```\ngithub \"gaelfoppolo/UIDefaultFont\"\n```\n\nIf you use Carthage to build your dependencies, make sure you have added `UIDefaultFont.framework` to the \"_Linked Frameworks and Libraries_\" section of your target, and have included `UIDefaultFont.framework` in your Carthage framework copying build phase.\n\n### Swift Pacakge Manager\n\nIf you use Swift Pacakage Manager to manage your dependencies, simply add\nUIDefaultFont to your `Package.swift`:\n\n```swift\ndependencies: [\n    .Package(url: \"https://github.com/gaelfoppolo/UIDefaultFont.git\")\n]\n```\n\n## Documentation\n\nFull documentation is available on [GitHub](https://gaelfoppolo.github.io/UIDefaultFont/). You can also install documentation locally using [jazzy](https://github.com/realm/jazzy).\n\n## Author\n\nGaël Foppolo, me@gaelfoppolo.com\n\n## Contribution and Maintenance \nSystem font available on iOS is surely subject to possible change,\nand when it does, this library should still work properly.\nIf you would like to help maintain or improve this library please feel free to do so. \n\n## License\n\nUIDefaultFont is free software, and may be redistributed under the terms specified in the [LICENSE] file.\n\n[LICENSE]: /LICENSE","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaelfoppolo%2Fuidefaultfont","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaelfoppolo%2Fuidefaultfont","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaelfoppolo%2Fuidefaultfont/lists"}