easytarget / microPyEZfonts

A font writer plus a collection of MicroPython fonts for small Mono displays and devices
Other
27 stars 1 forks source link

Project can support thai font ? #25

Open Witawat opened 5 days ago

Witawat commented 5 days ago

Hello

this project can support thai font ?

this simple :

สวัสดี ภาษาไทย น้ำมัน

this font.ttf THSarabunNew.zip

this list

abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!"#$%&'()*+,-./ก ข ฃ ค ฅ ฆ ง จ ฉ ช ซ ฌ ญ ฎ ฏ ฐ ฑ ฒ ณ ด ต ถ ท ธ น บ ป ผ ฝ พ ฟ ภ ม ย ร ฤ ล ฦ ว ศ ษ ส ห ฬ อ ฮ ฯ ะ ั า ำ ิ ี ึ ื ุ ู ฺ ฻ ฼ ฽ ฾ ฿ เ แ โ ใ ไ ๅ ๆ ็ ่ ้ ๊ ๋ ์ ํ ๎ ๏ ๐ ๑ ๒ ๓ ๔ ๕ ๖ ๗ ๘ ๙ ๚ ๛
easytarget commented 4 days ago

No, Sorry. Not that font.

The micropython 'font-to-py' tool from Peter Hinch can convert truetype fonts into compatible python font packs; requirements and useage is a bit more complex than my tool, but it is compatible with a wider range of fonts including TrueType ones. See: https://github.com/peterhinch/micropython-font-to-py

There are many Thai characters in the Unifont and Efont packs that I provide, but I cannot help further

Witawat commented 2 days ago

No, Sorry. Not that font.

  • The font converter only supports fonts in format (as described in the docs)..bdf
  • TrueType fonts such as the one in your zip file are not supported.

The micropython 'font-to-py' tool from Peter Hinch can convert truetype fonts into compatible python font packs; requirements and useage is a bit more complex than my tool, but it is compatible with a wider range of fonts including TrueType ones. See: https://github.com/peterhinch/micropython-font-to-py

There are many Thai characters in the Unifont and Efont packs that I provide, but I cannot help further

There are many Thai characters in the Unifont and Efont packs that I provide, but I cannot help further

have name ? and have simple code ?

easytarget commented 1 day ago

have name ? and have simple code ?

https://github.com/easytarget/microPyEZfonts/tree/main/Unicode#readme

As it says: the UniFont has every unicode character. That includes all the Thai unicode characters.

The instructions there are pretty simple to follow.. .. but I wont do it for you. You will have to read and follow the instructions yourself.