Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, chrissierra), 1,306 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19057 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
set_fontsize ( fontpointer, fontsize); #89867
09/14/06 10:49
09/14/06 10:49
Joined: Nov 2004
Posts: 888
B
beegee Offline OP
User
beegee  Offline OP
User
B

Joined: Nov 2004
Posts: 888
Look at the title, this would be really great.
The reason why I want to have this command is, to scale truetype fonts proportional to the resolution.
Any chance?


Fratch - Newer statistics panel for GameStudio
Re: set_fontsize ( fontpointer, fontsize); [Re: beegee] #89868
09/14/06 20:09
09/14/06 20:09
Joined: Nov 2004
Posts: 888
B
beegee Offline OP
User
beegee  Offline OP
User
B

Joined: Nov 2004
Posts: 888
bump


Fratch - Newer statistics panel for GameStudio
Re: set_fontsize ( fontpointer, fontsize); [Re: beegee] #89869
09/14/06 20:10
09/14/06 20:10
Joined: Aug 2003
Posts: 7,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
yes awesome


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: set_fontsize ( fontpointer, fontsize); [Re: Michael_Schwarz] #89870
09/17/06 14:08
09/17/06 14:08
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Hm... I don't know. Is this really necessary? You could just define multiple TTF-fonts with different sizes...


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: set_fontsize ( fontpointer, fontsize); [Re: Thomas_Nitschke] #89871
09/17/06 16:13
09/17/06 16:13
Joined: Nov 2004
Posts: 888
B
beegee Offline OP
User
beegee  Offline OP
User
B

Joined: Nov 2004
Posts: 888
You're right, but it's really unhandy to set every text the other font, which has a different size. Well, with this suggestion you only need one line of code.


Edit: Sorry above doesn't operate. It's unpossible to change the font type of a text runtime. Read in the manual. So one possible would be to make for every text another texts with different font types. This means if you got many texts, it's very unhandy and take much time.

Last edited by beegee; 09/17/06 16:20.

Fratch - Newer statistics panel for GameStudio
Re: set_fontsize ( fontpointer, fontsize); [Re: beegee] #89872
09/17/06 16:55
09/17/06 16:55
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Beside that TTFs arent really resolution free. I tested it with different sizes but in comparison TTFs are everytime different on all resolutions. You can easily test it: write a text that starts at the left border of the screen and ends (nearly) directly on the right. Then change the resolution, try another size which fits the string so that it ends again at the right. Make snapshots. Than scale the lower resolution image to the size of the other one and make an overlay in your paint program: you will see that they are different in length/height or both.

TTFs are evil: they are not really resolution free and they are SLOW.

Last edited by HeelX; 09/17/06 16:56.
Re: set_fontsize ( fontpointer, fontsize); [Re: HeelX] #89873
09/17/06 21:49
09/17/06 21:49
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Agreed, that they are slow, but at least they don't look that ugly. Some days ago i started a thread, asking for bitmap font letters with different widths. That yould be good solution in my eyes.

To the topic: I don't think that something like that would be usefull. Defining several fonts is easy and fits the purpose totally from my püoint of view.


Always learn from history, to be sure you make the same mistakes again...
Re: set_fontsize ( fontpointer, fontsize); [Re: Uhrwerk] #89874
09/17/06 22:10
09/17/06 22:10
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Quote:

Some days ago i started a thread, asking for bitmap font letters with different widths. That yould be good solution in my eyes.




Yes, indeed. In the meanwhile you could write it on your own: just cut each letter out of a font bitmap, crop it left and right and stitch them together to render it on a bitmap.

Re: set_fontsize ( fontpointer, fontsize); [Re: HeelX] #89875
09/17/06 22:16
09/17/06 22:16
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Yes, I already spent some time thinking about writing this code for myself, but I guess in the end using ttf is the more efficient possibility.


Always learn from history, to be sure you make the same mistakes again...
Re: set_fontsize ( fontpointer, fontsize); [Re: Uhrwerk] #89876
09/18/06 07:58
09/18/06 07:58
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
This would indeed make sense for adapting many fonts at the same time to a different screen resolution. I'll put this on my list.

Page 1 of 2 1 2

Moderated by  aztec, Spirit 

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