Skip to content

tomasf/FindFont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

Cross-platform Swift package for finding fonts by name

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages