Page 1 of 1

assign Font from file

Posted: 11 Aug 2021, 11:38
by Naggar
Hi guys,

I was wondering if there is a way to set the font of a text provider to a font file on the computer (OTF/TTF files) directly.
The objective would be to be able to change the font without having to open Ventuz designer and instead of setting the Font (VFontPropertyRef) input, we could just read from a directory.

Best Regards :)

Re: assign Font from file

Posted: 12 Aug 2021, 09:13
by Karol
Hi Naggar,

check oout the help:
https://www.ventuz.com/support/help/lat ... #BlockText

Here the top Info box is your friend.

Best Regards
Karol

Re: assign Font from file

Posted: 12 Aug 2021, 09:14
by Dennis
Will not be possible:

If you take a look what happens if you load a font in ventuz, you will notice the font needs to generate the glyphs everytime - this is where the font gets build in 2D/3D for ventuz. This may take some seconds... meanwhile the world could go suffer and the font will be prepared and ready - ventuz wakes up and everything is over already... :P

This causes a hell lot of renderstalls!

Would make more sense to prepare the fonts and load them in the project during startup - switch the prepared fonts simply later

Regards
Dee

:ugeek:

Re: assign Font from file

Posted: 12 Aug 2021, 15:36
by Naggar
Karol wrote:
12 Aug 2021, 09:13
Hi Naggar,

check oout the help:
https://www.ventuz.com/support/help/lat ... #BlockText

Here the top Info box is your friend.

Best Regards
Karol

Thanks i did that and i thought I deleted this post aftrr I figured it out 😅

Best