On Nov 11 at 09:06, Vaidotas Zemlys wrote:> I had this problem for a long time. Then one day I got really upset and > figured out which font fontconfig chooses instead of my beloved fixed font. > As it turns out it was 12x13ja.pcf. (The ugly font in the bottom) So I > manually removed it from my system. Here how it goes:In my situation it seems to be a different font that causes the ugly display as seen in my screenshot. At least deleting 12x13ja.pcf.gz didn''t solve it (yes, i updated fonts.dir and fc-cache :) Which brings me to another question, how do i see which font files are chosen by fontconfig after the matching has taken place? I would like to see if i can tweak fonts.local to actually get fontconfig to serve the correct fixed font without deleting font files, but that''s a bit complicated without a way to find out which files are chosen based on the matching system.. T.
On Tue, Nov 11, 2003 at 12:02:13PM +0100, zonk@ultraworld.xs4all.nl wrote:> > Which brings me to another question, how do i see which font files are > chosen by fontconfig after the matching has taken place?Yes, please! Is there a debugging howto document available? I often have some application that is showing the wrong font. It would be very helpful to be able to see what font the application is requesting, what fontconfig is returning and what X is finally rendering (if that''s how it works ;). -- Bill Moseley moseley@hank.org
Hi,> > Le lun 10/11/2003 ? 02:41, zonk@ultraworld.xs4all.nl a ?crit : > > > How do i get fontconfig to come up with the plain old ''fixed'' font? > > > > Run ''dpkg-reconfigure fontconfig'' and enable the bitmap fonts. > > Yeah, i had done that already, and i can choose the ''Fixed'' font from the > gnome(-terminal) fontselector, it just doesn''t look the same. > > To show what i mean i''ve made the following screenshot: > > http://www.xs4all.nl/~timo/fixedfonts.gif > > On the top left is a stock default xterm (using fixed by default). top > middle is gnome-terminal using fontconfig fixed size 9 (too small), top > right is gnome-terminal fixed size 11 (too big), and on the bottom it''s > fixed size 10.I had this problem for a long time. Then one day I got really upset and figured out which font fontconfig chooses instead of my beloved fixed font. As it turns out it was 12x13ja.pcf. (The ugly font in the bottom) So I manually removed it from my system. Here how it goes: cd /usr/lib/X11/fonts/misc rm 12x13ja.pcf.gz update-fonts-dir misc fc-cache And voila now there is no problem choosing fixed font in gnome. It is not nice solution, I have to do it everytime X window system is updated (or only fonts), yet not one of the solutions provided on this list (there were some) provided me with the same results. In my case I did not manage to force fontconfig to choose font: 7x13 or 7x13 -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-13 Mpiktas Mpiktas -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20031111/c3af4872/attachment.pgp
On Nov 10 at 14:32, Josselin Mouette wrote:> Le lun 10/11/2003 ? 02:41, zonk@ultraworld.xs4all.nl a ?crit : > > How do i get fontconfig to come up with the plain old ''fixed'' font? > > Run ''dpkg-reconfigure fontconfig'' and enable the bitmap fonts.Yeah, i had done that already, and i can choose the ''Fixed'' font from the gnome(-terminal) fontselector, it just doesn''t look the same. To show what i mean i''ve made the following screenshot: http://www.xs4all.nl/~timo/fixedfonts.gif On the top left is a stock default xterm (using fixed by default). top middle is gnome-terminal using fontconfig fixed size 9 (too small), top right is gnome-terminal fixed size 11 (too big), and on the bottom it''s fixed size 10. So how do i get fontconfig to dish out something that is identical to the section on the top left? T.
Le mar 11/11/2003 ? 00:19, zonk@ultraworld.xs4all.nl a ?crit :> To show what i mean i''ve made the following screenshot: > > http://www.xs4all.nl/~timo/fixedfonts.gif > > On the top left is a stock default xterm (using fixed by default). top > middle is gnome-terminal using fontconfig fixed size 9 (too small), top > right is gnome-terminal fixed size 11 (too big), and on the bottom it''s > fixed size 10.This looks pretty much like http://bugs.debian.org/190244. I haven''t got time to investigate on that one yet, but maybe Keith will have an idea. It turns out that fontconfig returns an incorrect size list for most bitmap fonts. -- .''''`. Josselin Mouette /\./\ : :'' : josselin.mouette@ens-lyon.org `. `'' joss@debian.org `- Debian GNU/Linux -- The power of freedom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20031111/58f29912/attachment.pgp
Hi, For a good while, i''ve been using gnome-terminal (on debian unstable), which recently switched to using fontconfig. I''ve always used the stock ''fixed'' font in gnome-terminal, so that it basically looks like a regular xterm. However since switching to fontconfig, i can''t find a way to have the ''fixed'' font looking like it does in an xterm, it''s either too big, too small, or chunky. I''ve been looking through the mail archives for hints, and playing with AA, but to no avail. How do i get fontconfig to come up with the plain old ''fixed'' font? T.
Le lun 10/11/2003 ? 02:41, zonk@ultraworld.xs4all.nl a ?crit :> How do i get fontconfig to come up with the plain old ''fixed'' font?Run ''dpkg-reconfigure fontconfig'' and enable the bitmap fonts. Regards, -- .''''`. Josselin Mouette /\./\ : :'' : josselin.mouette@ens-lyon.org `. `'' joss@debian.org `- Debian GNU/Linux -- The power of freedom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20031110/564070f5/attachment.pgp
Around 17 o''clock on Jan 22, "John A. Boyd Jr." wrote:> The more general problem is that particular XLFD attributes, notably > ''set width'', are not preserved.Current fontconfig CVS includes a ''width'' attribute which can be set to any of: #define FC_WIDTH_ULTRACONDENSED 50 #define FC_WIDTH_EXTRACONDENSED 63 #define FC_WIDTH_CONDENSED 75 #define FC_WIDTH_SEMICONDENSED 87 #define FC_WIDTH_NORMAL 100 #define FC_WIDTH_SEMIEXPANDED 113 #define FC_WIDTH_EXPANDED 125 #define FC_WIDTH_EXTRAEXPANDED 150 #define FC_WIDTH_ULTRAEXPANDED 200 -keith
On Tuesday 11 November 2003 8:06, Vaidotas Zemlys wrote:> I had this problem for a long time. Then one day I got really upset and > figured out which font fontconfig chooses instead of my beloved fixed font. > As it turns out it was 12x13ja.pcf. (The ugly font in the bottom) So I > manually removed it from my system. Here how it goes: > > cd /usr/lib/X11/fonts/misc > rm 12x13ja.pcf.gz > update-fonts-dir misc > fc-cache > > And voila now there is no problem choosing fixed font in gnome. It is not > nice solution, I have to do it everytime X window system is updated (or > only fonts), yet not one of the solutions provided on this list (there were > some) provided me with the same results. In my case I did not manage to > force fontconfig to choose font: > 7x13 or > 7x13 -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-13Thank you for this! I''ve been frustrated by getting this big, ugly font for fixed in KDE''s konsole for a long time as well. While your workaround is not perfect, it does fix the problem for me. Thanks! Have you filed a bug on this in Debian? And how did you track down which font was the problem? Frank
The specific fix is to delete the unwanted font; there is a more general problem, however, with a more general fix. See my message of 11/24/03 to this list, and the attached patches (which may be out of date by now; I never got a single response). I''ll attach an excerpt below, for your convenience. The more general problem is that particular XLFD attributes, notably ''set width'', are not preserved. Fonts that differ only in this attribute are thus selected arbitrarily. The patches I submited to this list and elsewhere resolve these ambiquities by preserving the set-width attribute in a flexible way (look at the patches for more details; I did this a few months ago now). Consider the fonts in question. 7x13 and 6x13 have the following XLFDs: 7x13: -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-13 6x13: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-70-iso8859-13 They differ only in the "set width" attribute. If it is not preserved in some way by fontconfig and other font-processing utilities, the choice becomes ambiguous (or impossible, if "normal" is forced and, e.g., semicondensed was desired). Which is highly unfortunate, since 6x13 is the longstanding X ''fixed'' font via alias, which people like myself have come to love. Where ''fontconfig'' is concerned, these patches carry non-''normal'' ''set width'' in the ''style'' element of a pattern. They coordinate this usage with the other packages used by GNOME (Pango, Freetype, ...), which are patched to do similarly flexible things with the information. (Werner Lemberg, a Freetype maintainer, patched Freetype''s CVS some time ago now.) I would hope that someone involved in maintaining fontconfig and the related packages, would look into this issue, and specifically into adopting the patches I submitted. I''ve only read this list once month or so; maybe the maintainers only read it infrequently as well. I should emphasize that these patches do resolve the problem, for those libraries and applications patched. Other apps or libraries that I''m not using may require similar patching (to take advantage of the information not otherwise available). An excerpt from my original post follows: John A. Boyd Jr. wrote: > ... > In the process of upgrading to Gnome 2.4 from sources, I encountered a > problem I had dealt with before that had not yet been addressed. These > patches collectively address it. The problem is that the standard X > font aliased as "fixed", i.e., 6x13.[pcf,bdf], would not be visible to > all the newer font-handling utilities if 7x13 was also available - the > two fonts look the same because the "SemiCondensed" set-width was not > at all being handled. > > The solution these patches implement is to pass the PCF/BDF set-width > name (and optionally the add-style name) field(s) as part of the style > strings used by various other packages (i.e., FreeType, fontconfig, > Xft, and Pango), and to deal with this additional information > appropriately, and as generally as I could imagine and achieve in short > order. > > Also included here are patches for vte and gtk, which make use of the > other patches. I suspect, however, that none of these patches depend > on the others, in the respect that a supporting package must be patched > before a using package. E.g., Gnome''s font-picker dialog also makes > use of the changes, but requires no patching to do so. > ... > If anyone reading this message could be of assistance in forwarding > the remaining patches to the appropriate maintainers, I would appreciate > it, by the way... 8^) Frank Murphy wrote:> On Tuesday 11 November 2003 8:06, Vaidotas Zemlys wrote: > >>I had this problem for a long time. Then one day I got really upset and >>figured out which font fontconfig chooses instead of my beloved fixed font. >>As it turns out it was 12x13ja.pcf. (The ugly font in the bottom) So I >>manually removed it from my system. Here how it goes: >> >>cd /usr/lib/X11/fonts/misc >>rm 12x13ja.pcf.gz >>update-fonts-dir misc >>fc-cache >> >>And voila now there is no problem choosing fixed font in gnome. It is not >>nice solution, I have to do it everytime X window system is updated (or >>only fonts), yet not one of the solutions provided on this list (there were >>some) provided me with the same results. In my case I did not manage to >>force fontconfig to choose font: >>7x13 or >>w>>7x13 -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-13 > > > Thank you for this! I''ve been frustrated by getting this big, ugly font for > fixed in KDE''s konsole for a long time as well. While your workaround is not > perfect, it does fix the problem for me. Thanks! > > Have you filed a bug on this in Debian? And how did you track down which font > was the problem? > > Frank > > > _______________________________________________ > Fontconfig mailing list > Fontconfig@fontconfig.org > http://fontconfig.org/mailman/listinfo/fontconfig > >-------------- next part -------------- A non-text attachment was scrubbed... Name: addstyle-patches.tar.gz Type: application/x-gzip Size: 12763 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20040122/c950e0ac/addstyle-patches.tar.bin