sixlabors - SixLabors.Fonts 1.0.0-beta.13.1
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-beta.13.1 -Source https://www.myget.org/F/sixlabors/api/v3/index.json
> nuget.exe install SixLabors.Fonts -Version 1.0.0-beta.13.1 -Source https://www.myget.org/F/sixlabors/api/v3/index.json
> dotnet add package SixLabors.Fonts --version 1.0.0-beta.13.1 --source https://www.myget.org/F/sixlabors/api/v3/index.json
source https://www.myget.org/F/sixlabors/api/v3/index.json
nuget SixLabors.Fonts ~> 1.0.0-beta.13.1
Copy to clipboard
> choco install SixLabors.Fonts --version 1.0.0-beta.13.1 --source https://www.myget.org/F/sixlabors/api/v2
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-beta.13.1" -Repository "sixlabors" -AllowPreRelease
Copy to clipboard
SixLabors.Fonts
SixLabors.Fonts is a new cross-platform font loading and drawing library.
License
- Fonts is licensed under the Apache License, Version 2.0
- An alternative Commercial License can be purchased for projects and applications requiring support. Please visit https://sixlabors.com/pricing for details.
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
- Do you have questions? We are happy to help! Please join our Discussions Forum.
- Please read our Contribution Guide before opening issues or pull requests!
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 |
Manual build
If you prefer, you can compile Fonts yourself (please do and help!)
- Using Visual Studio 2019
- Make sure you have the latest version installed
- Make sure you have the .NET Core 3.1 SDK installed
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
- SixLabors.ImageSharp - cross platform, fully managed, image manipulation and drawing library.
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)
- System.Buffers (>= 4.5.0)
- System.Memory (>= 4.5.3)
- System.Numerics.Vectors (>= 4.5.0)
- System.Runtime.CompilerServices.Unsafe (>= 4.7.0)
-
.NETStandard 2.0
- System.Buffers (>= 4.5.0)
- System.Memory (>= 4.5.3)
- System.Numerics.Vectors (>= 4.5.0)
- System.Runtime.CompilerServices.Unsafe (>= 4.7.0)
-
.NETStandard 2.1
- System.Numerics.Vectors (>= 4.5.0)
- System.Runtime.CompilerServices.Unsafe (>= 4.7.0)
- .NETStandard 1.3: 1.3.0.0
- .NETStandard 2.0: 2.0.0.0
- .NETStandard 2.1: 2.1.0.0
OwnersSix Labors Scott Williams |
AuthorsSix Labors and contributors |
Project URLhttps://github.com/SixLabors/Fonts |
LicenseApache-2.0 |
Tagsfont truetype opentype woff |
Info201 total downloads |
1 downloads for version 1.0.0-beta.13.1 |
Download (199.92 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
![]() |
1.0.0-beta13.5.3 | 248.66 KB | Mon, 11 Jan 2021 15:04:22 GMT | 3 |
|
||
![]() |
1.0.0-beta13.5.2 | 248.51 KB | Sun, 03 Jan 2021 12:37:38 GMT | 0 |
|
||
![]() |
1.0.0-beta13.5.1 | 248.08 KB | Sat, 02 Jan 2021 18:23:16 GMT | 1 |
|
||
![]() |
1.0.0-beta13.5 | 200.65 KB | Mon, 14 Dec 2020 12:07:53 GMT | 0 |
|
||
![]() |
1.0.0-beta0013 | 199.67 KB | Thu, 18 Jun 2020 21:52:00 GMT | 35 |
|
||
![]() |
1.0.0-beta0012 | 199.68 KB | Mon, 08 Jun 2020 17:31:21 GMT | 2 |
|
||
![]() |
1.0.0-beta0011 | 199.71 KB | Wed, 13 May 2020 09:54:21 GMT | 17 |
|
||
![]() |
1.0.0-beta0010 | 199.75 KB | Wed, 13 May 2020 09:29:15 GMT | 2 |
|
||
![]() |
1.0.0-beta0009 | 102.08 KB | Sun, 01 Sep 2019 12:21:57 GMT | 26 |
|
||
![]() |
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.5 | 200.65 KB | Mon, 14 Dec 2020 11:27:23 GMT | 0 |
|
||
![]() |
1.0.0-beta.13.4 | 200.4 KB | Sat, 12 Dec 2020 21:10:01 GMT | 0 |
|
||
![]() |
1.0.0-beta.13.3 | 199.95 KB | Wed, 12 Aug 2020 13:49:54 GMT | 1 |
|
||
![]() |
1.0.0-beta.13.2 | 199.94 KB | Sat, 25 Jul 2020 18:28:30 GMT | 1 |
|
||
![]() |
1.0.0-beta.13.1 | 199.92 KB | Fri, 17 Jul 2020 11:09:51 GMT | 1 |
|