Where is the font class defined?

General help with the Ecere Cross Platform GUI toolkit: Window, common controls, events, etc.
Help with the 2D Graphics library: Surface, Display, Bitmap, Font and others.
Post Reply
jfbilodeau
Posts: 19
Joined: Wed Feb 09, 2011 11:47 am

Where is the font class defined?

Post by jfbilodeau »

Subject says it all. I can't find the definition of the Font class :(

J-F
jfbilodeau
Posts: 19
Joined: Wed Feb 09, 2011 11:47 am

Re: Where is the font class defined?

Post by jfbilodeau »

Found it. Forget about it ;)
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Where is the font class defined?

Post by jerome »

Yeah, Ctrl-Shift-F / "class Font" (Whole word only / Match case) in ecere.epj gives:

src/gfx/drivers/LFBDisplayDriver.ec:588:8 > public class Font : struct.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Where is the font class defined?

Post by jerome »

Should be careful though, because sometimes the driver (e.g. the GDI driver) will use its own font class, and cast it to a Font (but it really isn't that LFBDisplayDriver font).

So Font is technically an obscure type specific to the driver. (And shouldn't be used across multiple drivers -- Ecere supports multiple windows using different display drivers)
Post Reply