Problem with hard-coded fonts in applications



Dear All,
	In some gnome applications fonts are specified
that do not have the corresponding set of characters for
other than -8859-1.
	For example, in logview (gnome-utils/logview/config.c),
the following are defined:

===>
#define FIXED_12_FONT
"-b&h-lucidatypewriter-medium-r-normal-*-12-*-*-*-*-*-*-*"
#define FIXED_12_BFONT
"-b&h-lucidatypewriter-bold-r-normal-*-12-*-*-*-*-*-*-*"
#define FIXED_10_FONT
"-b&h-lucidatypewriter-medium-r-normal-sans-10-*-*-*-*-*-*-*"
#define FIXED_10_BFONT
"-b&h-lucidatypewriter-bold-r-normal-sans-10-*-*-*-*-*-*-*"

#define HELVETICA_14_FONT
"-adobe-helvetica-medium-r-normal-*-14-*-*-*-*-*-*-*"
#define HELVETICA_14_BFONT
"-adobe-helvetica-bold-r-normal-*-14-*-*-*-*-*-*-*"
#define HELVETICA_12_FONT
"-adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*"
#define HELVETICA_12_BFONT
"-adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-*-*"
#define HELVETICA_10_FONT
"-adobe-helvetica-medium-r-normal-*-10-*-*-*-*-*-*-*"
#define HELVETICA_10_BFONT
"-adobe-helvetica-bold-r-normal-*-10-*-*-*-*-*-*-*"
<===

What should be the resolution of this?

The best looks to be (and it is mentioned in control-center)
is to get the fixed/varied fonts from the GTK configuration.
Since this looks to be a common problem, has an application solved
it in a nice way so that logview & others can use the code?

Thanks,
simos





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