jiro

Results 73 comments of jiro

If you want to draw Japanese, set `TEXTIMG_FONT_FILE` to a font that supports Japanese. `TEXTIMG_FONT_FILE` is used for drawing non-emoticons. See: https://github.com/jiro4989/textimg#fonts > I don't think it's related to the...

See WARN message. > 2023/02/11 04:07:42 textimg [WARN] /home/runner/work/textimg/textimg/config/face.go:42 /usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc is not found. please set font path with `-f` option

This is what happens when I run ```bash $ textimg あいうえお😀 -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc -o /images/z.png ``` ![image](https://user-images.githubusercontent.com/13825004/218272918-861c5994-dc1a-472b-ad67-7bb8cc67eb53.png) ```bash $ export TEXTIMG_FONT_FILE='/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc' $ textimg あいうえお😀 -o /images/z.png ``` ![image](https://user-images.githubusercontent.com/13825004/218272918-861c5994-dc1a-472b-ad67-7bb8cc67eb53.png) ```bash export...

textimg uses two fonts to draw characters. 1. `TEXTIMG_FONT_FILE` 2. `TEXTIMG_EMOJI_FONT_FILE` In your environment, the font specified by default in TEXTIMG_FONT_FILE does not exist, so Japanese cannot be drawn.

The default font used by textimg is based on the path installed in Ubuntu. https://github.com/jiro4989/textimg/issues/199#issuecomment-1421696162 Rendering Japanese has failed because a font (`TEXTIMG_FONT_FILE`) that does not exist in your environment...

textimg doesn't support every font path on every OS. Set a font that can draw Japanese in `TEXTIMG_FONT_FILE`.

No, no. I didn't understand the issues.

I finally understand. Indeed, `TEXTIMG_EMOJI_FONT_FILE` is not working as you said. ```bash textimg あいうえお😀 -o /images/a.png export TEXTIMG_EMOJI_FONT_FILE='sushi.ttf' textimg あいうえお😀 -o /images/b.png ``` > 2023/02/11 06:15:30 textimg [WARN] /root/go/pkg/mod/github.com/jiro4989/textimg/[email protected]/config/face.go:42 sushi.ttf...

Please forgive me for my untruthful reading of the issues.🙇 I will investigate the cause of the bug.

hmm? The `-e` option is working. ``` textimg -e /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf あいうえお😀 -io /images/a.png textimg -e /usr/share/fonts/truetype/ancient-scripts/Symbola_hint.ttf あいうえお😀 -io /images/b.png ``` a.png: ![image](https://user-images.githubusercontent.com/13825004/218276341-d029fba9-02c6-4866-8100-71cba8a7c77e.png) b.png: ![image](https://user-images.githubusercontent.com/13825004/218276346-bc85e948-a227-45cc-901c-9bcccc643af3.png) ``` textimg -e a.ttf あいうえお😀 -io...