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.
import FindFont
let match = try FontRepository.matchForFont(family: "Arial", style: "Bold")
Contributions are welcome! If you have ideas, suggestions, or improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.