Scaling fonts

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
O.P.
In need of some credit
In need of some credit
Posts: 9
Joined: Tue Feb 21, 2006 2:41 pm

Scaling fonts

Post by O.P. » Wed Mar 01, 2006 9:43 am

I need to have tight control of font sizes. That is, I need to be able to set font sizes to fractions, like 11.5 and similar. Does anyone have any idea how to do this?

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Wed Mar 01, 2006 11:00 am

I think your best guess is tapping directly into Cairo as I know it supports fractional fonts from GTK2.8.x .. if you are not on linux, I am not sure if Cairo also runs on other platforms or if there are alternatives.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

O.P.
In need of some credit
In need of some credit
Posts: 9
Joined: Tue Feb 21, 2006 2:41 pm

Post by O.P. » Wed Mar 01, 2006 11:52 am

OK, what is Cairo and where do I find it?

I'm using WinXP right now, but the program is supposed to become platform independent eventually.

Edit: I found the cairographics.org website. I presume that's what you meant.

Edit 2: There's a beta of sorts for win32. I think I'll wait for a more official release. Thanks anyway.

eco
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 203
Joined: Tue Aug 31, 2004 7:06 pm
Location: Behind a can of Mountain Dew
Contact:

Post by eco » Wed Mar 01, 2006 8:39 pm

GDI+ supports fractional fonts as well and isn't difficult to get working with wxWidgets. I'd abstract it so you can use GDI+ on Windows and Cairo (or whatever) on other platforms.

Post Reply