I'm trying to find a way to scale fonts linearly. As far as I can tell, the
way to do it is to use a freetype font and turn hinting off. Using the API,
I tried to pull some code together that would try to do that, but
unfortunately, the font is still scaling non-linearly.
On Thu, 2007-12-06 at 19:01 -0800, Karl Reis wrote:
I'm trying to find a way to scale fonts linearly. As far as I can tell, the
way to do it is to use a freetype font and turn hinting off. Using the API,
I tried to pull some code together that would try to do that, but
unfortunately, the
Thank you for your excellent reply! I modified the code per your
suggestions and it worked perfectly. Here is the full snippet of code for
anyone else who might find this useful:
cairo_font_options_t*options;
cairo_t *cr;
PangoFontMap*fm;
Great!
On Thu, 2007-12-06 at 22:38 -0800, Karl Reis wrote:
I also tried it with the TOY font and I got the same error.
The toy font backend is not a real backend. Pango doesn't recognize it
and can't use it. The available ones are FreeType, win32, and ATSUI.
You are using win32 obviously.
--
I see.
Yes, that's right as the error went away when I explicitly specified the
win32 font.
-Original Message-
From: Behdad Esfahbod [mailto:[EMAIL PROTECTED] On Behalf Of
Behdad Esfahbod
Sent: Thursday, December 06, 2007 2302 PM
To: Karl Reis
Cc: gtk-app-devel-list@gnome.org