Skip to content

ryancheung/FreeTypeSharp

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

FreeTypeSharp

Nuget Nuget

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

FreeTypeSharp v2+ provides cross-platform bindings for:

  • netcoreapp3.1;net5.0;net6.0 (Windows, Linux, macOS)
  • net6.0-android
  • net6.0-ios
  • net6.0-tvos
  • netstandard2.0 (UWP)

README for release v1.X

FreeType Wrapped

FreeType 2.11.0

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