SixLabors.Fonts is a new cross-platform font loading and drawing library.
Support the efforts of the development of the Six Labors projects.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.
Install stable releases via Nuget; development releases are available via Feedz.io.
If you prefer, you can compile Fonts yourself (please do and help!)
Alternatively, you can work from command line and/or with a lightweight editor on both Linux/Unix and Windows:
To clone Fonts locally, click the "Clone in [YOUR_OS]" button above or run the following git commands:
git clone https://github.com/SixLabors/Fonts
If working with Windows please ensure that you have enabled log file paths in git (run as Administrator).
git config --system core.longpaths true
This repository contains git submodules. To add the submodules to the project, navigate to the repository root and type:
git submodule update --init --recursive
FontDescription description = null; using(var fs = File.OpenRead("Font.ttf")){ description = FontDescription.Load(fs); // once it has loaded the data the stream is no longer required and can be disposed of } string name = description.FontName(CultureInfo.InvariantCulture);Populating a font collection
FontCollection fonts = new FontCollection(); FontFamily font1 = fonts.Add("./path/to/font1.ttf"); FontFamily font2 = fonts.Add("./path/to/font2.woff");
Please... Spread the word, contribute algorithms, submit performance improvements, unit tests.
Projects using SixLabors.FontsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4