-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Question] How can I use UTF-8? #52
Comments
We haven't done much testing with UTF-8 thanks for bringing it to our attention, will take a look. |
The way React VR renders text is through a technique known as Signed Distance Function fonts. It allows us to smoothly render text at any size, without pixelation. One downside is that the technique requires us to pre-render font glyphs before shipping them. The default glyphs set contains Roman and Cyrillic characters, but nothing beyond that. From Oculus's work with Samsung, we do do have SDF fonts for Korean glyphs. I'll add documentation for how to use custom font sets, and see if we can include those fonts in the next release of the |
FYI documentation on how fonts are handled has been updated here: https://facebook.github.io/react-vr/docs/fonts.html |
The same to me ,I can't use chinese in Text node. |
Maybe it's considerable to exclude the font from the package and provide it as external dependency. So you could use individual or reduced charsets to improve the app size.
…--
Daniel Große
Am 1. April 2017 um 04:24:55, LiuC520 (notifications@github.com(mailto:notifications@github.com)) schrieb:
The same to me ,I can't use chinese
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub(#52 (comment)), or mute the thread(https://github.com/notifications/unsubscribe-auth/AAHMfUeEMUWCo_GGRPpcBzfgKN8NM3Rpks5rrbV3gaJpZM4L7roz).
|
Again, here's a link to the documentation describing how to use the included Japanese and Korean font sets, and how to make your own custom fonts: https://facebook.github.io/react-vr/docs/fonts.html |
Fallback font sets have been added to react vr and the docs have been updated again. Fallback fonts allow to support the full font set and the cost of extra download. There is no reason why mono emoji characters can't be supported with this. the fonts can't be found in the OVRUI repo |
Hey, I kind of understand how this came about, but couldn't we generate the SDFs dynamically when the user needs them based on the fonts they have installed? In my mind it's pretty regressive to think that users only communicate in one character set or another per-user or per-app. In my facebook feed I have english, arabic, icelandic, turkish, chinese, and japanese characters regularly. Not to mention that real communication in 2017 has tons of emoji. |
@darknoon It would be great if we could achieve that, but there are a few technical limitations standing in our way:
As Mike mentions above, we're now capable of chaining fallback fonts together, so you can support EFIGS + JK out of the box, as well as any other font faces you wish to generate on your own. We think that's a good step in i18n support while we actively explore other generation techniques. I do look forward to being able to support emoji myself! |
Could the fonts be published as part of the OVRUI.loadFont(
'../node_modules/ovrui/fonts/japanese.fnt',
'../node_modules/ovrui/fonts/japanese.png'
); |
@RadValentin we used to do that, but intentionally removed them. |
Hi, |
@genievn the text rendering pipeline is currently being overhauled to allow use of all system fonts |
any solutions yet? I would like to use Chinese text words. |
Hello @andrewimm The link provided to use custom fonts is not working anymore (legacy react vr doc). I can't find anything in the react 360 documentation. Is there still a way to use custom fonts in react 360 ? |
I added at my index.html
but i can not see Korean character set.
how can i use UTF-8?
The text was updated successfully, but these errors were encountered: