tentone / nunuStudio

Web powered cross-platform 3D, WebXR game engine.
https://nunustudio.org
MIT License
2.11k stars 316 forks source link

assign custom font on the editor does not work #251

Closed jfa257 closed 5 years ago

jfa257 commented 5 years ago

Hi,

Working with text objects right now, noticed I can't assign custom fonts to the text objects on the editor, so now have to initialize the texts and setup fonts by script, can't we have a field to either type the font name as a string or drop the resource font there from the assets tab, like with textures for example?

Version: Desktop 0.95 OS: Windows 10 x64 bit

thanks!

tentone commented 5 years ago

Hi

Its possible to drag and drop ttf, otf fonts into the editor already and apply them to the text elements by drag and drop.

Thanks a lot

Cheers

jfa257 commented 5 years ago

Yes, I tried that and it does not work for me, maybe its the desktop version. I have a ccs file where I declare fontface properties, but I wanted to use more than one font, one for certain text objects. Can this be related to the issue?

tentone commented 5 years ago

You cannot use the fonts imported to the editor with CSS. I really need to improve the flux with HTML/CSS im currently working on a HTML layer with CSS3D for nunuStudio but still needs a lot of work.