https://github.com/tomasf/findfont
Cross-platform Swift package for finding fonts by name
https://github.com/tomasf/findfont
Last synced: 9 months ago
JSON representation
Cross-platform Swift package for finding fonts by name
- Host: GitHub
- URL: https://github.com/tomasf/findfont
- Owner: tomasf
- License: mit
- Created: 2025-05-19T10:02:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-14T11:16:14.000Z (11 months ago)
- Last Synced: 2025-09-07T16:06:45.939Z (9 months ago)
- Language: Swift
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FindFont
**FindFont** is a cross-platform Swift library for locating and reading system-installed font data by family name and style. It supports Apple platforms (CoreText), Windows (GDI), and Linux (Fontconfig), and provides accurate font resolution and binary data suitable for use with FreeType or other rendering libraries.
For Linux, FindFont requires Fontconfig (`libfontconfig1-dev`). There are no dependencies for other platforms.
## Usage
```swift
import FindFont
let match = try FontRepository.matchForFont(family: "Arial", style: "Bold")
```
## Contributions
Contributions are welcome! If you have ideas, suggestions, or improvements, feel free to open an issue or submit a pull request.
## License
This project is licensed under the MIT License. See the LICENSE file for details.