Documentation
¶
Index ¶
- Variables
- func NKZhgjt() error
- type Face
- type Feature
- func ContextualAlternatives() Feature
- func DiscretionaryLigatures() Feature
- func Fractions() Feature
- func JustificationAlternatives() Feature
- func OldStyle() Feature
- func Ordinals() Feature
- func Ornaments() Feature
- func StandardLigatures() Feature
- func StylisticAlternatives() Feature
- func Swash() Feature
- func TitlingAlternatives() Feature
- type Font
- type FontExtents
- type Options
- type Writer
Constants ¶
This section is empty.
Variables ¶
var DefaultFeatures = []Feature{ StandardLigatures(), ContextualAlternatives(), Ornaments(), JustificationAlternatives(), }
DefaultFeatures contains “enabled by default” features.
var DefaultOptions = Options{ Bidi: true, Features: DefaultFeatures, }
DefaultOptions contains the recommended default options
Functions ¶
Types ¶
type Face ¶
Face holds a harfbuzz Face object.
func NewFaceFromFile ¶
NewFaceFromFile returns a newly initialized harfbuzz Face object from “filename” file.
type Feature ¶
Feature is just an alias to harfbuzz's Feature type.
func ContextualAlternatives ¶
func ContextualAlternatives() Feature
Learn more: https://learn.microsoft.com/en-us/typography/opentype/spec/features_ae#tag-calt
func DiscretionaryLigatures ¶
func DiscretionaryLigatures() Feature
Learn more: https://learn.microsoft.com/en-us/typography/opentype/spec/features_ae#tag-dlig
func Fractions ¶
func Fractions() Feature
Learn More: https://learn.microsoft.com/en-us/typography/opentype/spec/features_fj#tag-frac
func JustificationAlternatives ¶
func JustificationAlternatives() Feature
Learn More: https://learn.microsoft.com/en-us/typography/opentype/spec/features_fj#tag-jalt
func OldStyle ¶
func OldStyle() Feature
Learn more: https://learn.microsoft.com/en-us/typography/opentype/spec/features_ko#tag-onum
func Ordinals ¶
func Ordinals() Feature
Learn More: https://learn.microsoft.com/en-us/typography/opentype/spec/features_ko#tag-ordn
func Ornaments ¶
func Ornaments() Feature
Learn More: https://learn.microsoft.com/en-us/typography/opentype/spec/features_ko#tag-ornm
func StandardLigatures ¶
func StandardLigatures() Feature
Learn more: https://learn.microsoft.com/en-us/typography/opentype/spec/features_ko#tag-liga
func StylisticAlternatives ¶
func StylisticAlternatives() Feature
Learn More: https://learn.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-salt
func Swash ¶
func Swash() Feature
Learn More: https://learn.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-swsh
func TitlingAlternatives ¶
func TitlingAlternatives() Feature
Learn More: https://learn.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-titl
type Font ¶
Font holds a harfbuzz Font object.
func (*Font) Extents ¶
func (f *Font) Extents() (FontExtents, bool)
Extents returns the FontExtents of the Font.
type FontExtents ¶
type FontExtents = hb.FontExtents
FontExtents is just an alias to harfbuzz's FontExtents type.
type Options ¶
type Options struct { Bidi bool Features []Feature // Feature are the OpenType feature you want to enable. }
Options holds the features used to modify, shape, and write the text.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}