[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: win32: use ms default fonts for menus and such... need a pangoexpert



On Wed, 14 Jan 2004, Ulf Lamping wrote:

> I'm interested, using the default win32 fonts for all menus and
> such, as this will look much more familiar to win32 users, than the
> GTK defaults.
>
> Allin Cottrell has written code to do exactly this, see:
>
> http://www.ecn.wfu.edu/~cottrell/gtk_win32/#winfont
>
> The code works fine in it's GTK1 version, but the GTK2 version fails
> (at least on my Win XP machine),

The Microsoft documentation of the mechanism for determining the
default font is quite opaque, but you might try using SYSTEM_FONT
or ANSI_VAR_FONT, rather than DEFAULT_GUI_FONT, as an argument to
the Windows API call, GetStockObject().  I'm not sure if these
alternatives will produce a font name that is known to pango, but it's
now clear to me that using DEFAULT_GUI_FONT, under Windows XP, will
not produce anything useable.

Allin Cottrell



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]