Need Fallback Font Support (e.g: for multi/cross language text that contains Chinese AND English)

1
open
kokoskiwi
kokoskiwi
Posted 3 months ago

Need Fallback Font Support (e.g: for multi/cross language text that contains Chinese AND English) #32396

Steps To Reproduce

  1. equivalent of font-family: 'afont, bfont, ...' is not available
  2. fontFamily: 'afont, bfont, ...' doesn't work in RN

Expected Results

For RN, there is not a css equivalent of fallback fonts. This make cross-language custom font very difficult as chinese-character-font.otf can't be used at the same time as 'korean-character-font.otf'. If there is a sentence composed by App user containing both Chinese, Korean, Japanese, ... characters, there's just not a way to deal with those within a single

Snack, code example, screenshot, or link to a repository:

Is there any potential update to support this function? It would be very helpful if there is an existing workaround though.

https://github.com/facebook/react-native/issues/25798

edit: we also need character fallback. not a all-or-nothing fallback: https://css-tricks.com/css-basics-fallback-font-stacks-robust-web-typography/

github-actions[bot]
github-actions[bot]
Created 3 months ago
:warning: Missing Environment Information
:information_source: Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.