An open API service indexing awesome lists of open source software.

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

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.