fralonra / wgshadertoy

A WGSL playground inspired by Shadertoy.
MIT License
91 stars 6 forks source link

Missing Fonts #7

Open fralonra opened 8 months ago

fralonra commented 8 months ago

wgshadertoy uses egui as UI framework, which by default can only use a limited number of fonts. This leads to the need to load additional fonts in order to properly display text in certain languages (such as Chinese, Arabic, etc.) in a multilingual environment.

To solve this problem, the current solution adopted by wgshadertoy is to pre-collect common fonts corresponding to the writing systems of various languages and load them at runtime. Since the font list cannot cover all fonts, it may cause characters to not display properly on some devices. If this happens, please provide feedback here, listing the language you use and the fonts available on your system. And a PR is always welcome.