8000 GitHub - go-fonts/stix at v0.1.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

go-fonts/stix

Repository files navigation

stix

GitHub release GoDoc License

stix provides the STIX fonts as importable Go packages.

The fonts are released under the SIL Open Font license. The Go packages under the BSD-3 license.

Example

import (
	"fmt"
	"log"

	"github.com/go-fonts/stix/stix2math"
	"golang.org/x/image/font/sfnt"
)

func Example() {
	ttf, err := sfnt.Parse(stix2math.TTF)
	if err != nil {
		log.Fatalf("could not parse STIX2 Math font: %+v", err)
	}

	fmt.Printf("num glyphs: %d\n", ttf.NumGlyphs())

	// Output:
	// num glyphs: 5543
}

About

STIX fonts for Go

Resources

License

BSD-3-Clause, OFL-1.1 licenses found

Licenses found

BSD-3-Clause
LICENSE
OFL-1.1
SIL-LICENSE

Stars

Watchers

Forks

Packages

No packages published

Languages

0