hiroshiyui / GuilelessBopomofo

Guileless Bopomofo(樸實注音鍵盤)- A Bopomofo(注音符號)software keyboard (aka input method editor) on Android, which is utilizing libchewing for intelligent phonetic processing.
Other
94 stars 6 forks source link

Use font to replace vector image of keycaps #34

Open hiroshiyui opened 6 months ago

hiroshiyui commented 6 months ago

Is your feature request related to a problem? Please describe.

In practice, loading large amounts of vector image resources cause OOM (out of memory) when in Android Studio. I consider font instead of vector images.

Describe the solution you'd like

A custom font (supported font format list is here) to present each Bopomofo keycap.

Describe alternatives you've considered

Just keep the current implementation. :-)

Additional context

hiroshiyui commented 6 months ago

BTW, maybe I should switch from 教育部標準楷書 to 全字庫楷體 in order to avoid the licensing issue.

hiroshiyui commented 5 months ago

Perhaps I should make my own Key view-group view, extends from ConstraintLayout and put each symbol in it as TextView, then I won't worry about making keycaps from SVG, which is a heavy duty.