xenia icon indicating copy to clipboard operation
xenia copied to clipboard

[UI] Changed default Windows font & Allow loading custom font

Open Gliniak opened this issue 2 years ago • 7 comments

  • Changed font on Windows to tahoma
  • Allowed loading Greek and Cyrillic glyphs
  • Unified font size to 12. This causes default UI to look a bit bigger
  • Set oversample to 2 to make font more readable (especially custom fonts)

Gliniak avatar Feb 25 '23 14:02 Gliniak

Hello! Can you add more glyph ranges - not only Latin?

gandalfthewhite19890404 avatar Feb 26 '23 03:02 gandalfthewhite19890404

Sure (at least on windows), do you know font that looks good and support these glyphs?

Gliniak avatar Feb 26 '23 15:02 Gliniak

SegoeUI, Arial, Times New Roman. There many of them, if some font does not have needed symbols - there will be a question marks. So adding glyphs to sources is safe change. If I talk wrong things - sorry, make edits.

gandalfthewhite19890404 avatar Feb 27 '23 06:02 gandalfthewhite19890404

Not sure what's a better idea there. To assume that custom font might include them or to always load another font that will contain them?

Gliniak avatar Feb 27 '23 09:02 Gliniak

What if bundle with emulator some free nice looking font as default, for example Koruri, it could be big - size is an issue? And let user to choose his own font if he wants?

gandalfthewhite19890404 avatar Feb 27 '23 13:02 gandalfthewhite19890404

I will suggest similar solution that is used in canary.

Priority of font loading:

  1. Custom font
  2. (on windows only) Tahoma from fonts directory

If no font is loaded then load default font.

  • at the end always load Japanese font

How Tahoma looks like (with font set to 16) obraz

Gliniak avatar Mar 15 '23 07:03 Gliniak

Brilliant! Thank you very much!!!

gandalfthewhite19890404 avatar Mar 21 '23 02:03 gandalfthewhite19890404