hi,when i want to display Chinese i have to add all character i use to fonts(just like this),
otherwise it can’t display on playcanvas.But when these information come from internet seem to it can’t support very well,is there any solution can help me?thanks a lot.
here is the effect what i want to achieved
FBplus
February 5, 2021, 6:55am
2
You can use the canvasfont provided by playcanvas engine,the example project can be found here:
https://playcanvas.com/project/608225/overview/tutorial-canvasfont
And I made a project to dynamic create canvans font when you change the text,you can found it here if you are interested:
https://playcanvas.com/project/747389/overview/test-font
2 Likes
thanks a lot ,i have cheked two projects。https://playcanvas.com/project/608225/overview/tutorial-canvasfont seem to deal with emoji or base64 fonts。
and i checked https://playcanvas.com/project/747389/overview/test-font,it seem to helpful but i don’t understand how it worked.
FBplus
February 5, 2021, 8:00am
4
@Hiccup_You I just hook the setText function and update the canvasfont every time the text content changes.