SixLabors.Fonts 1.0.0-beta17 The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved

.NET Core 3.1 .NET Standard 2.0
This is a prerelease version of SixLabors.Fonts.
Install-Package SixLabors.Fonts -Version 1.0.0-beta17
dotnet add package SixLabors.Fonts --version 1.0.0-beta17
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SixLabors.Fonts --version 1.0.0-beta17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SixLabors.Fonts, 1.0.0-beta17"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install SixLabors.Fonts as a Cake Addin
#addin nuget:?package=SixLabors.Fonts&version=1.0.0-beta17&prerelease

// Install SixLabors.Fonts as a Cake Tool
#tool nuget:?package=SixLabors.Fonts&version=1.0.0-beta17&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

<h1 align="center">

<img src="" alt="SixLabors.Fonts" width="256"/> <br/> SixLabors.Fonts </h1>

<div align="center">

Build Status codecov License: Apache 2.0

GitHub issues GitHub stars GitHub forks


SixLabors.Fonts is a new cross-platform font loading and drawing library.


Support Six Labors

Support the efforts of the development of the Six Labors projects.


  • Detailed documentation for the Fonts API is available. This includes additional conceptual documentation to help you get started.
  • Our Samples Repository is also available containing buildable code samples demonstrating common activities.


Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.


Install stable releases via Nuget; development releases are available via MyGet.

Package Name Release (NuGet) Nightly (MyGet)
SixLabors.Fonts NuGet MyGet

Manual build

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

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


  • Reading font description (name, family, subname etc plus other string metadata).
  • Loading True type fonts.
  • Loading WOFF fonts.
  • Loading WOFF2 fonts.
  • Load all compatible fonts from local machine store.
  • Support for rendering left to right, right to left and bidirectional text.
  • Support for ligatures.
  • Support for advanced OpenType features glyph substitution (GSUB) and glyph positioning (GPOS)

We currently only support otf and woff/woff2 fonts with True Type outlines.

API Examples

Read font description

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");

How can you help?

Please... Spread the word, contribute algorithms, submit performance improvements, unit tests.

Projects using SixLabors.Fonts

The SixLabors.Fonts Team

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (40)

Showing the top 5 NuGet packages that depend on SixLabors.Fonts:

Package Downloads
SixLabors.ImageSharp.Drawing The ID prefix of this package has been reserved for one of the owners of this package by

An extension to ImageSharp that allows the drawing of images, paths, and text.


PdfSharp for .NET Core PdfSharpCore is a partial port of PdfSharp.Xamarin for .NET Core Additionally MigraDoc has been ported as well (from version 1.32). Images have been implemented with ImageSharp from

SixLabors.Shapes.Text The ID prefix of this package has been reserved for one of the owners of this package by

Allows generating glyphs for text and a fonts for manipulation using SixLabors.Shapes

Stimulsoft.Reports.Engine.NetCore The ID prefix of this package has been reserved for one of the owners of this package by

The native .NET Core report engine is a part of the reporting tool for .NET Standard, .NET Core and .NET, that renders reports from getting data from the source, building bands, calculating aggregate functions, charting, applying styles, conditions, filtering, sorting, and more. Also, the report engine has algorithms for exporting reports to various formats such as PDF, Rich Text, Excel, and others.


Peachpie PHP language library functions for image processing.

GitHub repositories (10)

Showing the top 5 popular GitHub repositories that depend on SixLabors.Fonts:

Repository Stars
PeachPie - the PHP compiler and runtime for .NET and .NET Core
Damselfly is a server-based Photograph Management app. The goal of Damselfly is to index an extremely large collection of images, and allow easy search and retrieval of those images, using metadata such as the IPTC keyword tags, as well as the folder and file names. Damselfly includes support for object/face detection, and face-recognition.
Resources for visualizing data using C# and the .NET platform
Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
The smallest useful BIM.
Version Downloads Last updated
1.0.0-beta17 51,906 5/18/2022
1.0.0-beta16 403,283 2/9/2022
1.0.0-beta15 542,532 5/20/2021
1.0.0-beta0013 2,868,174 6/18/2020
1.0.0-beta0012 40,373 6/8/2020
1.0.0-beta0011 152,077 5/13/2020
1.0.0-beta0009 1,115,177 9/1/2019
1.0.0-beta0008 762,950 1/25/2019
1.0.0-beta0007 566,261 8/5/2018
1.0.0-beta0006 7,504 6/7/2018
1.0.0-beta0005 1,875,913 5/24/2018
1.0.0-beta0004 3,066 3/27/2018
1.0.0-beta0003 120,852 11/17/2017
1.0.0-beta0002 15,409 9/16/2017
1.0.0-beta0001 21,849 9/13/2017
0.1.0-alpha0016 13,610 7/16/2017
0.1.0-alpha0015 689 6/22/2017
0.1.0-alpha0014 73,250 6/13/2017
0.1.0-alpha0013 664 6/6/2017
0.1.0-alpha0012 655 6/4/2017
0.1.0-alpha0011 243,384 5/30/2017
0.1.0-alpha0010 26,603 5/2/2017
0.1.0-alpha0009 666 4/21/2017
0.1.0-alpha0008 1,788 4/17/2017
0.1.0-alpha0007 659 4/16/2017
0.1.0-alpha0006 685 4/13/2017
0.1.0-alpha0005 762 4/12/2017
0.1.0-alpha0004 705 4/12/2017
0.1.0-alpha0003 672 4/12/2017
0.1.0-alpha0002 20,446 3/12/2017
0.1.0-alpha0001 738 3/5/2017