MYR icon indicating copy to clipboard operation
MYR copied to clipboard

text() doesn't always render properly.

Open samuel-zuk opened this issue 3 years ago • 0 comments

I've ran into two issues with text() recently: non-ASCII characters passed to text() don't render, and if third party scripts/requests are disabled, text does not render at all (including the text used to display grid axis labels).

This bug is caused because the font used by default for text only contains ASCII characters-- this can be fixed by hosting a modified version of the default font (Roboto) ourselves. We'd need to include at least some basic Unicode symbols, such as accented vowels and the like. This will also fix the issue with third-party scripts and/or requests, since A-Frame loads the fonts used to render the text over their CDN.

See here: https://aframe.io/docs/1.2.0/components/text.html#stock-fonts.

ASCII text renders, non-ASCII text doesn't

samuel-zuk avatar Mar 28 '21 02:03 samuel-zuk