diff --git a/docs/components/text.md b/docs/components/text.md index 19cbdb27141..181ed8e7a42 100644 --- a/docs/components/text.md +++ b/docs/components/text.md @@ -166,6 +166,29 @@ the SDF font, DejaVu: [fontexampleimage]: http://i.imgur.com/iWtXHm5.png ![Arial Black vs. Deja Vu][fontexampleimage] +### Non-ASCII Characters + +To use non-ascii characters, you need to create your own custom font. The easiest way is to use [a web-based MSDF tool][msdf-bmfont-web]. Select your required character set and generate your own custom msdf font zip file. + +Once you download your custom msdf font zip file, extract it and rename `*.png` to `*-msdf.png`, then put both png and json files to your A-Frame directory. + +Lastly, you should specify the character set used in your HTML by using `` tag to avoid text to be garbled. If your text is garbled, it is not rendered. + +```html + + + + + + + + + + + + +``` + ## Sizing [position]: ./position.md