convert

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAFM

func ToAFM(info *sfnt.Font) (*afm.Metrics, error)

func ToCFF

func ToCFF(info *sfnt.Font) (*sfnt.Font, error)

ToCFF converts "glyf" outlines to "CFF" outlines.

The result is inefficient, since we we are using the naive way to convert quadratic bezier curves to cubic bezier curves. Do not use this function in production code.

func ToCFFCID

func ToCFFCID(info *sfnt.Font) (*sfnt.Font, error)

ToCFFCID modifies a font to use CFF CIDFont operators.

func ToCFFCID2

func ToCFFCID2(info *sfnt.Font) (*sfnt.Font, error)

ToCFFCID2 modifies a font to use CFF CIDFont operators with multiple private dictionaries.

func ToType1

func ToType1(info *sfnt.Font) (*type1.Font, error)

ToType1 constructs a Type1 font from an sfnt.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL