Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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