Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, TipmyPip, 1 invisible), 12,030 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Checking the type of a font. #416978
02/06/13 19:26
02/06/13 19:26
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline OP
Expert
Uhrwerk  Offline OP
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Hello Mr. Lotter,

acknex.h containes the following line in its definition of the FONT struct:
Code:
int cpl; // characters per bitmap line, or -1 for a TTF font


I'm wondering if it is safe to rely on the comment or if this is subject to future change? I'd like to write a macro or a function that checks the type of the font like:
Code:
#define FONT_IS_BITMAP_TYPE(f) (f->cpl >= 0)



Always learn from history, to be sure you make the same mistakes again...
Re: Checking the type of a font. [Re: Uhrwerk] #417027
02/07/13 13:34
02/07/13 13:34
Joined: Jul 2000
Posts: 28,145
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,145
Frankfurt
This is safe, the meaning of cpl won't change.

Re: Checking the type of a font. [Re: jcl] #417030
02/07/13 13:52
02/07/13 13:52
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline OP
Expert
Uhrwerk  Offline OP
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Thank you very much!


Always learn from history, to be sure you make the same mistakes again...

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