Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
scaling truetype fonts #227219
09/13/08 10:09
09/13/08 10:09
Joined: Oct 2003
Posts: 702
Z
zazang Offline OP
User
zazang  Offline OP
User
Z

Joined: Oct 2003
Posts: 702
Hello,

I think this is a very important feature missing.
ttf fonts make the gui very easy to code but without
scaling support,they make it hard for us to have multiple
resolutions for our game frown

-zazang


I like good 'views' because they have no 'strings' attached..
Re: scaling truetype fonts [Re: zazang] #227442
09/14/08 13:45
09/14/08 13:45
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
I have a font for each resolution, like this:

FONT* font_for_1024 = "Arial#20";
FONT* font_for_800 = "Arial#16";

and then I change the font for the texts when the resolution is switched.

Re: scaling truetype fonts [Re: Spirit] #227463
09/14/08 15:23
09/14/08 15:23
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
With lite-c you can create fonts in realtime -> You don't need to define so much fonts wink

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: scaling truetype fonts [Re: Dark_samurai] #227476
09/14/08 16:02
09/14/08 16:02
Joined: Oct 2003
Posts: 702
Z
zazang Offline OP
User
zazang  Offline OP
User
Z

Joined: Oct 2003
Posts: 702
ok I think I should try this out but then scaling of text by the engine would be so much cooler I feel smile

Btw...can the font of a text be changed dynamically ?

regards
zazang


I like good 'views' because they have no 'strings' attached..
Re: scaling truetype fonts [Re: zazang] #227495
09/14/08 17:34
09/14/08 17:34
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
I think it should work like this:

text.font = font_create(...);

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: scaling truetype fonts [Re: Dark_samurai] #227567
09/15/08 05:14
09/15/08 05:14
Joined: Oct 2003
Posts: 702
Z
zazang Offline OP
User
zazang  Offline OP
User
Z

Joined: Oct 2003
Posts: 702
Thanks I'll try it out !


I like good 'views' because they have no 'strings' attached..

Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1