SharpAstro.Fonts
0.2.61
See the version list below for details.
dotnet add package SharpAstro.Fonts --version 0.2.61
NuGet\Install-Package SharpAstro.Fonts -Version 0.2.61
<PackageReference Include="SharpAstro.Fonts" Version="0.2.61" />
<PackageVersion Include="SharpAstro.Fonts" Version="0.2.61" />
<PackageReference Include="SharpAstro.Fonts" />
paket add SharpAstro.Fonts --version 0.2.61
#r "nuget: SharpAstro.Fonts, 0.2.61"
#:package SharpAstro.Fonts@0.2.61
#addin nuget:?package=SharpAstro.Fonts&version=0.2.61
#tool nuget:?package=SharpAstro.Fonts&version=0.2.61
SharpAstro.Fonts
A pure-managed, MIT-licensed C# library for loading and rendering OpenType / TrueType fonts. Designed to replace the native FreeType2 dependency for DIR.Lib and related projects.
Status
Pre-alpha. Phase 1 only (SFNT directory + cmap + head/maxp). Not yet suitable for any production use. See ROADMAP.md for the full phase plan.
Until parity is reached, DIR.Lib continues to use SharpAstro.FreeTypeBindings.
Goals
- 100% managed C#, AOT-compatible, no native dependencies.
- Thread-safe by construction (immutable font records, per-call rasterizer state, no global mutable state).
- MIT-licensed end to end. No code is copied from FreeType, SixLabors.Fonts, HarfBuzz, or other non-MIT sources.
- Feature parity with the FreeType subset that DIR.Lib actually exercises: TrueType + CFF/CFF2 outlines, hinting, COLR v0/v1, CBDT/sbix, variable fonts, PostScript Type 1 / CID Type 0 (for embedded PDF subset fonts).
License
MIT — see LICENSE.
Specifications used as reference
All public, freely-implementable specs:
- OpenType (Microsoft)
- CFF / Type 2 charstrings (Adobe)
- WOFF / WOFF2 (W3C)
- COLR (Microsoft / Google)
- Unicode UAX (Unicode Consortium)
Layout
src/SharpAstro.Fonts/ pure library
tests/SharpAstro.Fonts.Tests/ xUnit v3 tests + font fixtures
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- StbImageSharp (>= 2.30.15)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SharpAstro.Fonts:
| Package | Downloads |
|---|---|
|
DIR.Lib
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.