sixlabors - SixLabors.Fonts 1.0.0-beta0002

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

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

Copy to clipboard

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

Copy to clipboard

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

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

nuget SixLabors.Fonts  ~> 1.0.0-beta0002
Copy to clipboard

> choco install SixLabors.Fonts --version 1.0.0-beta0002 --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-beta0002" -Repository "sixlabors" -AllowPreRelease
Copy to clipboard

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 True type fonts
  • Loading WOFF fonts
  • Load all compatible fonts from local machine store (Windows only at the moment)

Limitations

We currently only support otf and woff 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.Install("./path/to/font1.ttf");
FontFamily font2 = fonts.Install("./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

  • .NETStandard 1.1
    • NETStandard.Library (>= 1.6.1)
    • SixLabors.Core (>= 1.0.0-beta0003)
    • System.Collections.Immutable (>= 1.4.0)
  • .NETStandard 1.3
    • NETStandard.Library (>= 1.6.1)
    • SixLabors.Core (>= 1.0.0-beta0003)
    • System.Collections.Immutable (>= 1.4.0)
  • .NETStandard 1.1: 1.1.0.0
  • .NETStandard 1.3: 1.3.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

Info

378 total downloads
10 downloads for version 1.0.0-beta0002
Download (90.12 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.0-beta15.5 358.35 KB Tue, 27 Jul 2021 13:55:15 GMT 0
1.0.0-beta15.4 353.49 KB Tue, 20 Jul 2021 13:09:34 GMT 0
1.0.0-beta15.3 353.5 KB Tue, 20 Jul 2021 08:05:41 GMT 0
1.0.0-beta15.2 346.71 KB Fri, 16 Jul 2021 08:25:19 GMT 0
1.0.0-beta15.1 346.71 KB Mon, 12 Jul 2021 08:17:22 GMT 0
1.0.0-beta15 346.45 KB Thu, 20 May 2021 20:10:05 GMT 6
1.0.0-beta14.1 346.47 KB Thu, 20 May 2021 20:04:43 GMT 0
1.0.0-beta14 346.39 KB Thu, 20 May 2021 13:32:56 GMT 1
1.0.0-beta13.5.11 346.43 KB Thu, 13 May 2021 09:38:53 GMT 0
1.0.0-beta13.5.10 346.33 KB Wed, 12 May 2021 09:42:05 GMT 0
1.0.0-beta13.5.9 346.17 KB Tue, 11 May 2021 21:51:07 GMT 0
1.0.0-beta13.5.8 250.18 KB Tue, 11 May 2021 21:32:30 GMT 0
1.0.0-beta13.5.7 249.25 KB Sat, 24 Apr 2021 14:06:52 GMT 1
1.0.0-beta13.5.6 249.27 KB Thu, 25 Mar 2021 15:57:32 GMT 3
1.0.0-beta13.5.5 249.22 KB Wed, 17 Mar 2021 20:57:03 GMT 2
1.0.0-beta13.5.4 248.91 KB Thu, 25 Feb 2021 11:02:59 GMT 1
1.0.0-beta13.5.3 248.66 KB Mon, 11 Jan 2021 15:04:22 GMT 8
1.0.0-beta13.5.2 248.51 KB Sun, 03 Jan 2021 12:37:38 GMT 4
1.0.0-beta13.5.1 248.08 KB Sat, 02 Jan 2021 18:23:16 GMT 10
1.0.0-beta13.5 200.65 KB Mon, 14 Dec 2020 12:07:53 GMT 4
1.0.0-beta0013 199.67 KB Thu, 18 Jun 2020 21:52:00 GMT 123
1.0.0-beta0012 199.68 KB Mon, 08 Jun 2020 17:31:21 GMT 5
1.0.0-beta0011 199.71 KB Wed, 13 May 2020 09:54:21 GMT 20
1.0.0-beta0010 199.75 KB Wed, 13 May 2020 09:29:15 GMT 5
1.0.0-beta0009 102.08 KB Sun, 01 Sep 2019 12:21:57 GMT 31
1.0.0-beta0008 89.89 KB Fri, 25 Jan 2019 01:18:56 GMT 54
1.0.0-beta0006 138.59 KB Thu, 07 Jun 2018 20:15:10 GMT 6
1.0.0-beta0005 138.96 KB Thu, 24 May 2018 20:34:08 GMT 21
1.0.0-beta0004 135.3 KB Tue, 27 Mar 2018 22:12:47 GMT 6
1.0.0-beta0003 135.13 KB Fri, 17 Nov 2017 10:56:10 GMT 29
1.0.0-beta0002 90.12 KB Sat, 16 Sep 2017 10:28:38 GMT 10
1.0.0-beta0001 91.5 KB Wed, 13 Sep 2017 19:44:00 GMT 8
1.0.0-beta.13.5 200.65 KB Mon, 14 Dec 2020 11:27:23 GMT 4
1.0.0-beta.13.4 200.4 KB Sat, 12 Dec 2020 21:10:01 GMT 4
1.0.0-beta.13.3 199.95 KB Wed, 12 Aug 2020 13:49:54 GMT 4
1.0.0-beta.13.2 199.94 KB Sat, 25 Jul 2020 18:28:30 GMT 4
1.0.0-beta.13.1 199.92 KB Fri, 17 Jul 2020 11:09:51 GMT 4