sixlabors - SixLabors.Fonts 1.0.0-dev000156

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-dev000156 -Source https://www.myget.org/F/sixlabors/api/v3/index.json

Copy to clipboard

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

Copy to clipboard

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

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

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

> choco install SixLabors.Fonts --version 1.0.0-dev000156 --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-dev000156" -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

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.OpenReader("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;

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

Sponsor Six Labors

Support the efforts of the development of the Six Labors projects. [Become a sponsor :heart:]

Platinum Sponsors

Become a platinum sponsor with a monthly donation of $2000 (providing 32 hours of maintenance and development) and get 2 hours of dedicated support (remote support available through chat or screen-sharing) per month.

In addition you get your logo (large) on our README on GitHub and the home page (large) of sixlabors.com

Gold Sponsors

Become a gold sponsor with a monthly donation of $1000 (providing 16 hours of maintenance and development) and get 1 hour of dedicated support (remote support available through chat or screen-sharing) per month.

In addition you get your logo (large) on our README on GitHub and the home page (medium) of sixlabors.com

Silver Sponsors

Become a silver sponsor with a monthly donation of $500 (providing 8 hours of maintenance and development) and get your logo (medium) on our README on GitHub and the product pages of sixlabors.com

Bronze Sponsors

Become a bronze sponsor with a monthly donation of $100 and get your logo (small) on our README on GitHub.

  • .NETStandard 1.3
    • NETStandard.Library (>= 1.6.1)
    • SixLabors.Core (>= 1.0.0-beta0008)
  • .NETStandard 2.0
    • SixLabors.Core (>= 1.0.0-beta0008)
  • .NETStandard 1.3: 1.3.0.0
  • .NETStandard 2.0: 2.0.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

517 total downloads
18 downloads for version 1.0.0-dev000156
Download (102.09 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.0-unstable0058 199.75 KB Fri, 08 May 2020 19:09:53 GMT 4
1.0.0-unstable0056 199.76 KB Mon, 27 Apr 2020 17:10:02 GMT 3
1.0.0-unstable0053 198.89 KB Sun, 19 Apr 2020 09:01:32 GMT 1
1.0.0-unstable0045 188.36 KB Thu, 16 Apr 2020 18:07:08 GMT 1
1.0.0-unstable0038 182.93 KB Wed, 08 Apr 2020 16:48:33 GMT 0
1.0.0-unstable0032 180.4 KB Sun, 05 Apr 2020 17:01:08 GMT 4
1.0.0-unstable0028 172.27 KB Tue, 17 Mar 2020 02:14:45 GMT 1
1.0.0-unstable0026 172.17 KB Fri, 28 Feb 2020 07:41:10 GMT 2
1.0.0-unstable0024 170.54 KB Sun, 19 Jan 2020 12:58:23 GMT 53
1.0.0-unstable0005 199.7 KB Wed, 17 Jun 2020 09:46:47 GMT 0
1.0.0-unstable0004 199.7 KB Mon, 08 Jun 2020 15:28:06 GMT 0
1.0.0-unstable0002 200.09 KB Wed, 13 May 2020 11:25:45 GMT 0
1.0.0-unstable0001 199.7 KB Tue, 09 Jun 2020 19:25:43 GMT 2
1.0.0-dev000161 107.02 KB Tue, 05 Nov 2019 11:42:26 GMT 34
1.0.0-dev000156 102.09 KB Sun, 01 Sep 2019 12:18:15 GMT 18
1.0.0-dev000153 102.08 KB Sun, 01 Sep 2019 10:06:51 GMT 2
1.0.0-dev000149 89.9 KB Thu, 04 Apr 2019 14:57:32 GMT 8
1.0.0-dev000147 89.9 KB Mon, 04 Mar 2019 03:48:01 GMT 5
1.0.0-dev000144 89.9 KB Fri, 25 Jan 2019 01:12:14 GMT 6
1.0.0-dev000139 89.89 KB Tue, 15 Jan 2019 09:43:08 GMT 3
1.0.0-dev000137 89.89 KB Tue, 08 Jan 2019 02:38:00 GMT 3
1.0.0-dev000136 89.32 KB Mon, 07 Jan 2019 22:46:14 GMT 3
1.0.0-dev000129 89.22 KB Sat, 05 Jan 2019 03:07:05 GMT 3
1.0.0-dev000125 89.23 KB Wed, 26 Dec 2018 12:50:17 GMT 3
1.0.0-dev000121 89.22 KB Thu, 13 Dec 2018 05:18:55 GMT 5
1.0.0-dev000119 89.27 KB Mon, 26 Nov 2018 22:44:39 GMT 16
1.0.0-dev000116 89.27 KB Sat, 10 Nov 2018 13:52:27 GMT 4
1.0.0-dev000114 89.27 KB Sat, 27 Oct 2018 14:54:49 GMT 3
1.0.0-dev000113 89.28 KB Mon, 15 Oct 2018 22:24:32 GMT 3
1.0.0-dev000111 131.07 KB Mon, 27 Aug 2018 15:37:50 GMT 4
1.0.0-dev000106 131.38 KB Sat, 25 Aug 2018 13:29:05 GMT 3
1.0.0-dev000097 142.6 KB Mon, 02 Jul 2018 18:02:33 GMT 3
1.0.0-dev000093 142.2 KB Fri, 22 Jun 2018 19:14:14 GMT 3
1.0.0-dev000091 142.21 KB Wed, 20 Jun 2018 17:31:25 GMT 3
1.0.0-dev000087 142.15 KB Mon, 18 Jun 2018 17:40:04 GMT 65
1.0.0-dev000086 139.45 KB Sun, 10 Jun 2018 12:39:38 GMT 3
1.0.0-dev000083 138.6 KB Wed, 30 May 2018 20:28:47 GMT 3
1.0.0-dev000079 138.97 KB Thu, 24 May 2018 20:30:37 GMT 3
1.0.0-dev000001 147.32 KB Sun, 05 Aug 2018 16:36:05 GMT 3
1.0.0-ci0022 135.14 KB Fri, 17 Nov 2017 10:51:08 GMT 9
1.0.0-ci0019 90.27 KB Sun, 12 Nov 2017 11:31:27 GMT 3
1.0.0-ci0016 138.96 KB Thu, 24 May 2018 20:15:48 GMT 4
1.0.0-ci0010 138.57 KB Thu, 26 Apr 2018 19:04:40 GMT 3
1.0.0-ci0005 90.12 KB Sun, 12 Nov 2017 10:57:30 GMT 3
1.0.0-ci0004 136.26 KB Thu, 26 Apr 2018 12:17:26 GMT 3
1.0.0-ci0003 90.12 KB Mon, 09 Oct 2017 10:17:17 GMT 3
1.0.0-ci0002 135.3 KB Wed, 03 Jan 2018 07:43:20 GMT 6
1.0.0-beta0013 199.67 KB Thu, 18 Jun 2020 21:52:00 GMT 6
1.0.0-beta0012 199.68 KB Mon, 08 Jun 2020 17:31:21 GMT 1
1.0.0-beta0011 199.71 KB Wed, 13 May 2020 09:54:21 GMT 14
1.0.0-beta0010 199.75 KB Wed, 13 May 2020 09:29:15 GMT 1
1.0.0-beta0009 102.08 KB Sun, 01 Sep 2019 12:21:57 GMT 24
1.0.0-beta0008 89.89 KB Fri, 25 Jan 2019 01:18:56 GMT 51
1.0.0-beta0006 138.59 KB Thu, 07 Jun 2018 20:15:10 GMT 3
1.0.0-beta0005 138.96 KB Thu, 24 May 2018 20:34:08 GMT 18
1.0.0-beta0004 135.3 KB Tue, 27 Mar 2018 22:12:47 GMT 3
1.0.0-beta0003 135.13 KB Fri, 17 Nov 2017 10:56:10 GMT 26
1.0.0-beta0002 90.12 KB Sat, 16 Sep 2017 10:28:38 GMT 6
1.0.0-beta0001 91.5 KB Wed, 13 Sep 2017 19:44:00 GMT 5
1.0.0-beta.13.3 199.95 KB Wed, 12 Aug 2020 13:49:54 GMT 0
1.0.0-beta.13.2 199.94 KB Sat, 25 Jul 2020 18:28:30 GMT 0
1.0.0-beta.13.1 199.92 KB Fri, 17 Jul 2020 11:09:51 GMT 0
0.1.0-ci0101 91.5 KB Wed, 13 Sep 2017 19:38:32 GMT 3
0.1.0-ci0100 91.5 KB Thu, 17 Aug 2017 17:42:40 GMT 5
0.1.0-ci0098 91.59 KB Sun, 16 Jul 2017 11:55:21 GMT 3
0.1.0-ci0097 91.59 KB Sun, 16 Jul 2017 11:53:36 GMT 3
0.1.0-ci0090 89.39 KB Tue, 27 Jun 2017 13:56:27 GMT 4
0.1.0-ci0088 89.39 KB Sun, 25 Jun 2017 18:55:06 GMT 3
0.1.0-ci0087 88.85 KB Sat, 24 Jun 2017 14:46:35 GMT 3
0.1.0-ci0086 88.85 KB Thu, 22 Jun 2017 05:29:11 GMT 3
0.1.0-ci0085 88.86 KB Tue, 13 Jun 2017 06:27:46 GMT 3
0.1.0-ci0072 86.22 KB Thu, 08 Jun 2017 17:21:15 GMT 3
0.1.0-alpha0016 91.59 KB Sun, 16 Jul 2017 11:58:14 GMT 3
0.1.0-alpha0015 88.85 KB Thu, 22 Jun 2017 05:38:46 GMT 3
0.1.0-alpha0014 88.85 KB Tue, 13 Jun 2017 06:29:35 GMT 3