-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multi-byte fonts #25
Comments
Thank you for the reporting !! |
THANK YOU!!!! 🤩 |
Currently, multibyte characters can already be used in the following way .
ftBinary, _ := ioutil.ReadFile("/path/to/Japanese-Font.ttf")
ft, _ := truetype.Parse(ftBinary)
g := graphviz.New()
g.SetFontFace(func(size float64) (font.Face, error) {
opt := &truetype.Options{
Size: size,
DPI: 0,
Hinting: 0,
GlyphCacheEntries: 0,
SubPixelsX: 0,
SubPixelsY: 0,
}
return truetype.NewFace(ft, opt), nil
}) |
On the other hand, I try to set a |
@goccy Thank you for your support !
I'm looking forward to the automatic font settings ! |
Hi @goccy !
This is feature request.
I want to use go-graphviz with multi-byte fonts.
Example DOT and current render results
Example DOT
Render results
Best Regards.
The text was updated successfully, but these errors were encountered: