Universal.Common.Formats.Sfnt 1.0.0

.NET Standard 2.1
Install-Package Universal.Common.Formats.Sfnt -Version 1.0.0
dotnet add package Universal.Common.Formats.Sfnt --version 1.0.0
<PackageReference Include="Universal.Common.Formats.Sfnt" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Universal.Common.Formats.Sfnt --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Universal.Common.Formats.Sfnt, 1.0.0"
#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 Universal.Common.Formats.Sfnt as a Cake Addin
#addin nuget:?package=Universal.Common.Formats.Sfnt&version=1.0.0

// Install Universal.Common.Formats.Sfnt as a Cake Tool
#tool nuget:?package=Universal.Common.Formats.Sfnt&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


Library for reading and parsing SFNT-packaged fonts.


Use the SfntStreamReader class to get started with reading the font directory. This will allow the parsing of TrueType and other SFNT-packaged fonts by extracting tables with known semantic meaning (as defined by those other formats).

using (Stream stream = FileStream.OpenRead("Arial.ttf")) 
	using (SfntStreamReader sfntStreamReader = new SfntStreamReader(stream)) 
		FontDirectory fontDirectory = sfntStreamReader.ReadFontDirectory(); // Contains the font directory at the start of the file, and advances the stream to the end of that segment.
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 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen 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 (1)

Showing the top 1 NuGet packages that depend on Universal.Common.Formats.Sfnt:

Package Downloads

Class library for parsing TrueType font files.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 189 10/29/2021

Initial release.