sixlabors - SixLabors.Fonts 1.0.0-beta17.16

A cross-platform library for loading and laying out fonts for processing and measuring; written in C#

PM> Install-Package SixLabors.Fonts -Version 1.0.0-beta17.16 -Source https://www.myget.org/F/sixlabors/api/v3/index.json

Copy to clipboard

> nuget.exe install SixLabors.Fonts -Version 1.0.0-beta17.16 -Source https://www.myget.org/F/sixlabors/api/v3/index.json

Copy to clipboard

> dotnet add package SixLabors.Fonts --version 1.0.0-beta17.16 --source https://www.myget.org/F/sixlabors/api/v3/index.json

Copy to clipboard
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta17.16" />
Copy to clipboard
source https://www.myget.org/F/sixlabors/api/v3/index.json

nuget SixLabors.Fonts  ~> 1.0.0-beta17.16
Copy to clipboard

> choco install SixLabors.Fonts --version 1.0.0-beta17.16 --source https://www.myget.org/F/sixlabors/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "sixlabors" -SourceLocation "https://www.myget.org/F/sixlabors/api/v2"
Install-Module -Name "SixLabors.Fonts" -RequiredVersion "1.0.0-beta17.16" -Repository "sixlabors" -AllowPreRelease
Copy to clipboard

Browse the sources in this package using Visual Studio or WinDbg by configuring the following symbol server URL: https://www.myget.org/F/sixlabors/api/v2/symbolpackage/


SixLabors.Fonts
SixLabors.Fonts

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.

License

Support Six Labors

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

Documentation

  • 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.

Questions

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.

Installation

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 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

Submodules

This repository contains git submodules. To add the submodules to the project, navigate to the repository root and type:

git submodule update --init --recursive

Features

  • Reading font description (name, family, subname etc plus other string metadata).
  • Loading OpenType fonts with with CFF1 and True Type outlines.
  • Loading True Type fonts.
  • Loading WOFF fonts.
  • Loading WOFF2 fonts.
  • Load all compatible fonts from local machine store.
  • Suppord for line breaking based on UAX 14
  • 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)

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

  • .NETCoreApp 3.1
  • .NETStandard 2.0
    • System.Buffers (>= 4.5.1)
    • System.IO.Compression (>= 4.3.0)
    • System.IO.UnmanagedMemoryStream (>= 4.3.0)
    • System.Memory (>= 4.5.4)
    • System.Numerics.Vectors (>= 4.5.0)
    • System.Runtime.CompilerServices.Unsafe (>= 4.7.0)
    • System.Threading.Tasks.Parallel (>= 4.3.0)
    • System.ValueTuple (>= 4.5.0)
  • .NETStandard 2.1
    • System.IO.Compression (>= 4.3.0)
    • System.IO.UnmanagedMemoryStream (>= 4.3.0)
    • System.Numerics.Vectors (>= 4.5.0)
    • System.Runtime.CompilerServices.Unsafe (>= 4.7.0)
    • System.Threading.Tasks.Parallel (>= 4.3.0)
    • System.ValueTuple (>= 4.5.0)
  • .NETCoreApp 3.1: 3.1.0.0
  • .NETStandard 2.0: 2.0.0.0
  • .NETStandard 2.1: 2.1.0.0

Owners

Six Labors Scott Williams

Authors

Six Labors and contributors

Project URL

https://github.com/SixLabors/Fonts

License

Apache-2.0

Tags

font truetype opentype woff woff2

Info

117 total downloads
1 downloads for version 1.0.0-beta17.16
Download (751.26 KB)
Download symbols (261.62 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.0-beta18.1 751.35 KB Tue, 26 Jul 2022 05:22:28 GMT 0
1.0.0-beta18 751.24 KB Fri, 22 Jul 2022 14:06:54 GMT 1
1.0.0-beta17.16 751.26 KB Sat, 02 Jul 2022 06:33:50 GMT 1
1.0.0-beta17.15 749.39 KB Sat, 02 Jul 2022 06:24:40 GMT 0
1.0.0-beta17.14 748.78 KB Thu, 30 Jun 2022 05:17:41 GMT 0
1.0.0-beta17.13 748.97 KB Wed, 29 Jun 2022 09:25:29 GMT 0
1.0.0-beta17.12 751.12 KB Mon, 27 Jun 2022 10:16:43 GMT 0
1.0.0-beta17.11 750.29 KB Sun, 19 Jun 2022 12:48:44 GMT 1
1.0.0-beta17.10 752.31 KB Tue, 14 Jun 2022 12:55:33 GMT 0
1.0.0-beta17.9 752.29 KB Tue, 14 Jun 2022 12:13:23 GMT 0
1.0.0-beta17.8 752.88 KB Fri, 10 Jun 2022 08:18:46 GMT 0
1.0.0-beta17.7 692.63 KB Sat, 04 Jun 2022 20:17:56 GMT 0
1.0.0-beta17.6 692.62 KB Sat, 04 Jun 2022 19:49:59 GMT 0
1.0.0-beta17.5 692.63 KB Sat, 04 Jun 2022 19:22:23 GMT 0
1.0.0-beta17.4 692.64 KB Sat, 04 Jun 2022 18:18:58 GMT 0
1.0.0-beta17.3 692.63 KB Sat, 04 Jun 2022 17:54:06 GMT 0
1.0.0-beta17.2 692.63 KB Sat, 04 Jun 2022 17:01:38 GMT 0
1.0.0-beta17.1 692.64 KB Wed, 25 May 2022 12:50:39 GMT 0
1.0.0-beta17 692.29 KB Wed, 18 May 2022 09:40:22 GMT 4
1.0.0-beta16.16 692.33 KB Tue, 17 May 2022 10:39:38 GMT 1
1.0.0-beta16.15 684.17 KB Mon, 16 May 2022 13:54:38 GMT 0
1.0.0-beta16.14 674.7 KB Thu, 21 Apr 2022 12:32:12 GMT 0
1.0.0-beta16.13 674.29 KB Mon, 28 Mar 2022 09:16:08 GMT 1
1.0.0-beta16.12 672.77 KB Sat, 26 Mar 2022 14:08:43 GMT 0
1.0.0-beta16.11 643.9 KB Wed, 02 Mar 2022 01:53:25 GMT 2
1.0.0-beta16.10 643.87 KB Tue, 01 Mar 2022 11:45:04 GMT 0
1.0.0-beta16.9 643.77 KB Tue, 01 Mar 2022 11:07:35 GMT 0
1.0.0-beta16.8 643.48 KB Sat, 26 Feb 2022 01:33:40 GMT 0
1.0.0-beta16.7 641.06 KB Sat, 26 Feb 2022 01:26:05 GMT 0
1.0.0-beta16.6 640.2 KB Thu, 24 Feb 2022 22:16:33 GMT 1
1.0.0-beta16.5 640.16 KB Thu, 24 Feb 2022 02:54:15 GMT 0
1.0.0-beta16.4 640.15 KB Thu, 24 Feb 2022 02:42:29 GMT 0
1.0.0-beta16 636.46 KB Wed, 09 Feb 2022 02:06:46 GMT 7
1.0.0-beta15.26 847.99 KB Sun, 06 Feb 2022 11:48:26 GMT 1
1.0.0-beta15.25 852.83 KB Mon, 24 Jan 2022 11:13:55 GMT 1
1.0.0-beta15.24 852.48 KB Mon, 06 Dec 2021 01:23:04 GMT 65
1.0.0-beta15.23 851.71 KB Thu, 02 Dec 2021 10:08:49 GMT 2
1.0.0-beta15.20 847.49 KB Wed, 17 Nov 2021 11:35:13 GMT 3
1.0.0-beta15.17 504.17 KB Mon, 27 Sep 2021 01:15:37 GMT 9
1.0.0-beta15.16 504.92 KB Sun, 26 Sep 2021 12:09:16 GMT 6
1.0.0-beta15.15 504.33 KB Wed, 15 Sep 2021 14:23:47 GMT 11