-
Notifications
You must be signed in to change notification settings - Fork 204
Closed
Description
What are you trying to do?
Set the plot.DefualtFont to a Chinese font and tick in x-axis should be displayed completely.
What did you do?
Set font to /System/Library/Fonts/STHeiti Light.ttc
fontData, err := ioutil.ReadFile(fontPath)
if err != nil {
panic(err)
}
font, err := truetype.Parse(fontData)
if err != nil {
panic(err)
}
fontName := "font"
vg.AddFont(fontName, font)
plot.DefaultFont = fontName
plotter.DefaultFont = fontName
What did you expect to happen?
Tick should be displayed completely.

What actually happened?
What version of Go and Gonum/plot are you using?
go version go1.13.5 darwin/amd64
gonum/plog version: ca91d9d
Does this issue reproduce with the current master?
Yes
Metadata
Metadata
Assignees
Labels
No labels
