matsuyoshi30 / germanium

Generate image from source code
MIT License
195 stars 21 forks source link

Any plan to support chinese chars ? #3

Closed Purelightme closed 3 years ago

Purelightme commented 3 years ago

chinese chars can not be rendered normally.

test.go:

package main

import "fmt"

func main()  {
    fmt.Println("hello你好")
}

test.png: test

matsuyoshi30 commented 3 years ago

Thanks for reporting. I'll update for supporting CJK, so wait for a while please.

matsuyoshi30 commented 3 years ago

@Purelightme HI. Now, you can generate an image from code by specifying the font that supports Chinese characters from your system.

germanium --font 'Ricty-Regular' testdata/main.go

output

Purelightme commented 3 years ago

@matsuyoshi30 Great.Very Thankful.