Skip to content

ryancheung/FreeTypeSharp

 
 

Repository files navigation

FreeTypeSharp

Build status Nuget

A moden managed FreeType2 library based on the freetype2 code in the ultraviolet project.

FreeTypeSharp intends to provides cross-platform bindings for:

  • NET Standard 2.0
  • Xamarin.Android
  • Xamarin.iOS
  • Windows Universal

FreeType Wrapped

FreeType 2.10.1

Installation

dotnet add package FreeTypeSharp

Usage

There's no magic(abstraction) based on the original C freetype API. All managed API are almost identical with the original freetype C API. Import the namespaces like using FreeTypeSharp.Native; and using static FreeTypeSharp.Native.FT;, then you can play the font rendering as what you do in C.

Optionally, a facade FreeTypeFaceFacade was provided to handle some basic job. Feel free to use it.

Credits