Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

assign Font from file

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
User avatar
Naggar
Posts: 178
Joined: 22 Dec 2016, 14:02
Location: Dubai, United Arab Emirates

assign Font from file

Post by Naggar » 11 Aug 2021, 11:38

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 :)

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: assign Font from file

Post by Karol » 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

User avatar
Dennis
Posts: 384
Joined: 08 Jun 2015, 11:29

Re: assign Font from file

Post by Dennis » 12 Aug 2021, 09:14

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:

User avatar
Naggar
Posts: 178
Joined: 22 Dec 2016, 14:02
Location: Dubai, United Arab Emirates

Re: assign Font from file

Post by Naggar » 12 Aug 2021, 15:36

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

Post Reply