Documentation
¶
Overview ¶
Package stix holds TTF data of the STIX2 fonts.
Example ¶
package main
import (
"fmt"
"log"
"github.com/go-fonts/stix/stix2math"
"golang.org/x/image/font/sfnt"
)
func main() {
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
Directories
¶
| Path | Synopsis |
|---|---|
|
Package stix2math provides the "STIX2Math" TrueType font from the STIX2 font family.
|
Package stix2math provides the "STIX2Math" TrueType font from the STIX2 font family. |
|
Package stix2textbold provides the "STIX2Text Bold" TrueType font from the STIX2 font family.
|
Package stix2textbold provides the "STIX2Text Bold" TrueType font from the STIX2 font family. |
|
Package stix2textbolditalic provides the "STIX2Text BoldItalic" TrueType font from the STIX2 font family.
|
Package stix2textbolditalic provides the "STIX2Text BoldItalic" TrueType font from the STIX2 font family. |
|
Package stix2textitalic provides the "STIX2Text Italic" TrueType font from the STIX2 font family.
|
Package stix2textitalic provides the "STIX2Text Italic" TrueType font from the STIX2 font family. |
|
Package stix2textregular provides the "STIX2Text Regular" TrueType font from the STIX2 font family.
|
Package stix2textregular provides the "STIX2Text Regular" TrueType font from the STIX2 font family. |
Click to show internal directories.
Click to hide internal directories.