[Top][All Lists]

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

Re: [XForms] Help with fonts

From: Serge Bromow
Subject: Re: [XForms] Help with fonts
Date: Sun, 19 Aug 2018 23:20:41 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 08/19/2018 01:59 PM, Frank Cox wrote:
On Sun, 19 Aug 2018 06:32:11 -0700
Marisa Giancarla wrote:

I am trying to update a app I wrote with xforms years ago, and on moden
ubuntu I am seeing this issue where the fonts dont look right. Any ideas
on what is going on?
I have seen an issue similar to this before with Mate on Centos 7.

In that situation it turned out to be a problem with the desktop theme.

Try different themes and see if that fixes it.

I had the same problem after loading my software onto a new OS distribution.  The fonts appeared as they do in your example. It would appear older distributions favoured 75dpi as the first font resolution of choice. Unaware of this choice, I created my forms to match this dpi setting. I assume they choose 75 over 100 since it is first in line, dpi wise. Later distributions chose 100 first.  To preserve my work I force the use of 75dpi fonts by calling the following routine before calling fl_initialize().

void    xsetmyfonts()
fl_set_font_name(FL_NORMAL_STYLE, "-*-helvetica-medium-r-*-*-*-?-*-75-*-*-*-*");

fl_set_font_name(FL_BOLD_STYLE, "-*-helvetica-bold-r-*-*-*-?-*-75-p-*-*-*");
fl_set_font_name(FL_ITALIC_STYLE, "-*-helvetica-medium-o-*-*-*-?-*-75-p-*-*-*"); fl_set_font_name(FL_BOLDITALIC_STYLE, "-*-helvetica-bold-o-no*-*-*-?-*-75-p-*-*-*");

fl_set_font_name(FL_FIXED_STYLE, "-adobe-courier-medium-r-*-*-*-?-*-75-m-*-*-*"); fl_set_font_name(FL_FIXEDBOLD_STYLE, "-adobe-courier-bold-r-*-*-*-?-*-75-m-*-*-*"); fl_set_font_name(FL_FIXEDITALIC_STYLE, "-adobe-courier-medium-o-*-*-*-?-*-75-m-*-*-*"); fl_set_font_name(FL_FIXEDBOLDITALIC_STYLE, "-adobe-courier-bold-o-*-*-*-?-*-75-m-*-*-*");

fl_set_font_name(FL_TIMES_STYLE, "-*-times-medium-r-*-*-*-?-*-75-p-*-*-*");
fl_set_font_name(FL_TIMESBOLD_STYLE, "-*-times-bold-r-*-*-*-?-*-75-p-*-*-*"); fl_set_font_name(FL_TIMESITALIC_STYLE, "-*-times-medium-i-*-*-*-?-*-75-p-*-*-*"); fl_set_font_name(FL_TIMESBOLDITALIC_STYLE, "-*-times-bold-i-*-*-*-?-*-75-p-*-*-*");

fl_set_font_name(FL_MISC_STYLE, "-*-charter-medium-r-*-*-*-?-*-75-*-*-*-*");
fl_set_font_name(FL_MISCBOLD_STYLE, "-*-charter-bold-r-*-*-*-?-*-75-*-*-*-*"); fl_set_font_name(FL_MISCITALIC_STYLE, "-*-charter-medium-i-*-*-*-?-*-75-*-*-*-*"); fl_set_font_name(FL_SYMBOL_STYLE, "-*-symbol-medium-r-*-*-*-?-*-75-*-*-*-*");

Hope this helps,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]