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
1 registered members (TipmyPip), 18,633 guests, and 5 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
Scale Fonts #315481
03/15/10 21:38
03/15/10 21:38
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Hello,

I was hoping that you could implement the scaling of Truetype fonts. I've been waiting for this feature for a few years now... as I am nearing release, I really need it. This is due to changing the resolution of the game, and it looks really weird when the fonts are either too small or way to big, and makes it hard to read and is very un-professional.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Scale Fonts [Re: William] #315485
03/15/10 22:08
03/15/10 22:08
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
you could ptr_delete(myfont) and myfont = font_create, or doesn't that work?

Re: Scale Fonts [Re: Joey] #315495
03/16/10 06:20
03/16/10 06:20
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
It is pretty Simple to scale fonts wink

calculate the size: font_Size = 24*screen_size.y/ your_default_y_size;

than put this with Str_cpy and str_Cat to Arial#24

but you have to create your Texts on the Run because the Font can't be overwritten ..

Hope i could help

Re: Scale Fonts [Re: Rei_Ayanami] #315499
03/16/10 06:53
03/16/10 06:53
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I guess I was looking for something that simply scaled texts like panels. But now I read that you can change fonts at runtime, so if this works I guess I can just list a few as a workaround. Thanks for the help guys, I really should have put more thought into the workarounds. wink


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Scale Fonts [Re: Rei_Ayanami] #315514
03/16/10 09:42
03/16/10 09:42
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Originally Posted By: Rei_Ayanami
It is pretty Simple to scale fonts wink

calculate the size: font_Size = 24*screen_size.y/ your_default_y_size;

than put this with Str_cpy and str_Cat to Arial#24

but you have to create your Texts on the Run because the Font can't be overwritten ..

Hope i could help


Oh that's a good hint. Haven't thought of that myself yet. I can really need that. Thanks.

Re: Scale Fonts [Re: FBL] #315537
03/16/10 14:33
03/16/10 14:33
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Hehe, no problem laugh

It was just a short example cause i was in the car and needed to write it with my iphone wink


Moderated by  aztec, Spirit 

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