Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback font that supports scripts other than latin #2288

Closed
mneunomne opened this issue Feb 21, 2023 · 11 comments
Closed

Fallback font that supports scripts other than latin #2288

mneunomne opened this issue Feb 21, 2023 · 11 comments

Comments

@mneunomne
Copy link
Collaborator

Снимок экрана 2023-02-21 в 12 57 21

Besides the obvious layout issues with the different size of string #2246, would be also good to have a fallback font that has UTF-8 support for scripts other than latin that can match this same style (something like impact? i'm not sure). The issue here is with the 'bebas_neue' font that we are using.

@mneunomne
Copy link
Collaborator Author

Found this font "Yanone Kaffeesatz" with free lincense which is condensed and has support for cyrilic alphabets:

https://fonts.google.com/specimen/Yanone+Kaffeesatz?category=Sans+Serif&subset=cyrillic&width=2&noto.lang=bg_Cyrl&noto.script=Cyrl

@mneunomne
Copy link
Collaborator Author

Before:

Bildschirm­foto 2023-02-21 um 14 45 17

Bildschirm­foto 2023-02-21 um 14 45 14

After:

Bildschirm­foto 2023-02-21 um 14 42 45

Bildschirm­foto 2023-02-21 um 14 42 41

Снимок экрана 2023-02-21 в 14 39 21

@mneunomne
Copy link
Collaborator Author

@mushon let me know if this is ok, if you find another font maybe with wider support, let me know and I can substitute.

@mneunomne
Copy link
Collaborator Author

mneunomne commented Feb 21, 2023

Test fonts for other writing systems:

  • Arabic
  • Hebrew
  • Japanese
  • Chinese
  • Hindi

@mushon
Copy link
Collaborator

mushon commented Feb 21, 2023 via email

@mneunomne
Copy link
Collaborator Author

@mushon yes, makes sense. I just need to know what width (or other variable axes) should I use Roboto Flex and Noto Sans to match the shape of bebas neue, so it is condensed the same way.

@mushon
Copy link
Collaborator

mushon commented Feb 21, 2023 via email

@mneunomne
Copy link
Collaborator Author

Cool, tested now with multiple languges and looks good, they are following the font fallback order as you mentioned:

  1. Bebas Neue https://fonts.google.com/specimen/Bebas+Neue?preview.text=ADNAUSEAM&preview.text_type=custom&query=bebas
  2. Roboto Flex https://fonts.google.com/specimen/Roboto+Flex/tester?vfonly=true&preview.text=ADNAUSEAM&preview.text_type=custom
  3. Noto Sans Display https://fonts.google.com/noto/specimen/Noto+Sans+Display/tester?vfonly=true&query=noto+sans&preview.text=ADNAUSEAM&preview.text_type=custom

Chinese (Traditional)

截圖 2023-02-21 18 21 31

截圖 2023-02-21 18 21 26

Japanese

スクリーンショット 2023-02-21 18 20 15

スクリーンショット 2023-02-21 18 20 12

スクリーンショット 2023-02-21 18 20 01

Ukranian

Знімок екрана 2023-02-21 о 18 19 29

스크린샷 2023-02-21 18 17 36

Chinese (Simplified)

截屏2023-02-21 18 17 01

截屏2023-02-21 18 16 45

Russian

Снимок экрана 2023-02-21 в 18 16 12

Снимок экрана 2023-02-21 в 18 16 07

Снимок экрана 2023-02-21 в 18 16 03

@mneunomne
Copy link
Collaborator Author

Hindi

स्क्रीनशॉट 2023-02-21, 18 37 14 पर

Bengali

Screenshot 2023-02-21 at 18 36 42

Screenshot 2023-02-21 at 18 36 33

@mushon
Copy link
Collaborator

mushon commented Feb 22, 2023 via email

@mneunomne
Copy link
Collaborator Author

Implemented, closing.

@mneunomne mneunomne added this to the Version 3.16 milestone Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants