imagesharp-latency - SixLabors.Fonts 1.0.1

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

PM> Install-Package SixLabors.Fonts -Version 1.0.1 -Source https://www.myget.org/F/imagesharp-latency/api/v3/index.json

Copy to clipboard

> nuget.exe install SixLabors.Fonts -Version 1.0.1 -Source https://www.myget.org/F/imagesharp-latency/api/v3/index.json

Copy to clipboard

> dotnet add package SixLabors.Fonts --version 1.0.1 --source https://www.myget.org/F/imagesharp-latency/api/v3/index.json

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

nuget SixLabors.Fonts  ~> 1.0.1
Copy to clipboard

> choco install SixLabors.Fonts --version 1.0.1 --source https://www.myget.org/F/imagesharp-latency/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "imagesharp-latency" -SourceLocation "https://www.myget.org/F/imagesharp-latency/api/v2"
Install-Module -Name "SixLabors.Fonts" -RequiredVersion "1.0.1" -Repository "imagesharp-latency" 
Copy to clipboard

SixLabors.Fonts

SixLabors.Fonts is a new cross-platform font loadings and drawing library.

Packages

Name Release (NuGet) Build Status License Chat
SixLabors.Fonts Download imagesharp-latency MyGet Build Status License Chat

Manual build

If you prefer, you can compile SixLabors.Shapes yourself (please do and help!), you'll need:

To clone it locally click the "Clone in Windows" button above or run the following git commands.

git clone https://github.com/SixLabors/Fonts.git

Features

  • Reading font description (name, family, subname etc plus other string metadata)
  • Loading True type fonts
  • Loading WOFF fonts
  • Load all compatable fornts from local machine store (windows only at the moment)

Limitations

Only support for 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 off
}

string name = description.FontName;

Popluating 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

  • ImageSharp - cross platform, fully manged, image manipultion and drawing library.
  • .NETFramework 4.5
    • SixLabors.Core (>= 1.0.1)
    • System.Collections.Immutable (>= 1.4.0)
  • .NETFramework 4.7.1
    • SixLabors.Core (>= 1.0.1)
    • System.Collections.Immutable (>= 1.4.0)
  • .NETStandard 1.1
    • NETStandard.Library (>= 1.6.1)
    • SixLabors.Core (>= 1.0.1)
    • System.Collections.Immutable (>= 1.4.0)
  • .NETStandard 1.3
    • NETStandard.Library (>= 1.6.1)
    • SixLabors.Core (>= 1.0.1)
    • System.Collections.Immutable (>= 1.4.0)
  • .NETStandard 1.6
    • NETStandard.Library (>= 1.6.1)
    • SixLabors.Core (>= 1.0.1)
    • System.Collections.Immutable (>= 1.4.0)
  • .NETCoreApp 2.0
    • SixLabors.Core (>= 1.0.1)
    • System.Collections.Immutable (>= 1.4.0)
  • .NETStandard 2.0
    • SixLabors.Core (>= 1.0.1)
    • System.Collections.Immutable (>= 1.4.0)
  • .NETCoreApp 2.0: 2.0.0.0
  • .NETFramework 4.5: 4.5.0.0
  • .NETFramework 4.7.1: 4.7.1.0
  • .NETStandard 1.1: 1.1.0.0
  • .NETStandard 1.3: 1.3.0.0
  • .NETStandard 1.6: 1.6.0.0
  • .NETStandard 2.0: 2.0.0.0

Owners

Latency

Authors

SixLabors and contributors

Project URL

https://github.com/Latency/ImageSharp.Fonts

License

Apache-2.0

Tags

Font TrueType OpenType WOFF

Info

113 total downloads
113 downloads for version 1.0.1
Download (303.01 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
1.0.1 303.01 KB Sat, 03 Feb 2018 20:07:26 GMT 113