Re: Problem with hard-coded fonts in applications
- From: Pablo Saratxaga <pablo mandrakesoft com>
- To: gnome-i18n gnome org
- Subject: Re: Problem with hard-coded fonts in applications
- Date: Fri, 16 Feb 2001 00:10:00 +0100
Kaixo!
On Tue, Feb 13, 2001 at 10:44:16PM +0000, simos@pc96.ma.rhbnc.ac.uk wrote:
> 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-*-*-*-*-*-*-*"
...
> What should be the resolution of this?
>From my experience the solution is to add ",*-r-*" to the end
(that is making it a "match all" fontset in practice), and
then in the programs replace all gdk_font_load by gdk_fontset_load
> 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?
Try
#define FIXED_12_FONT "-b&h-lucidatypewriter-medium-r-normal-*-12-*-*-*-*-*-*-*,*-r-*"
etc. and see if that doesn't solve the problem.
PS: note that for applications needing charcell output (typically an xterm) it
is more complex.
>
> Thanks,
> simos
>
>
> _______________________________________________
> gnome-i18n mailing list
> gnome-i18n@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-i18n
--
Ki ça vos våye bén,
Pablo Saratxaga
http://www.srtxg.easynet.be/ PGP Key available, key ID: 0x8F0E4975
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]