If you want to see what font is being used by fontconfig/xft for any given name (at least on linux; I don''t have access to a bsd box that runs X to test) try using xfd to show the font; /proc/$pid/maps will list the font file xfd is using. lsof -p $pid is an easy way to see that info. At 133 dpi, I get this mapping for fixed-9, 10, 11: fixed-9 == /usr/X11R6/lib/X11/fonts/misc/lt1-16-etl.pcf.gz fixed-10 == /usr/X11R6/lib/X11/fonts/misc/18x18ko.pcf.gz fixed-11 == /usr/X11R6/lib/X11/fonts/misc/10x20.pcf.gz The font you see for fixed-10 is probably one of the -sony-fixed-medium-r-normal-* fonts. -JimC
Around 16 o''clock on Aug 31, "James H. Cloos Jr." wrote:> If you want to see what font is being used by fontconfig/xft for any given > name (at least on linux; I don''t have access to a bsd box that runs X to > test) try using xfd to show the font; /proc/$pid/maps will list the font > file xfd is using. lsof -p $pid is an easy way to see that info.Current fontconfig CVS also includes the new ''fc-match'' utility for the same purpose. -keith
On Sun, 2003-08-31 at 22:29, James H. Cloos Jr. wrote:> If you want to see what font is being used by fontconfig/xft for any > given name (at least on linux; I don''t have access to a bsd box that > runs X to test) try using xfd to show the font; /proc/$pid/maps will > list the font file xfd is using. lsof -p $pid is an easy way to see > that info.But how do I tell xfd to display a font using a fontconfig sytle name? xfd -fn "Fixed 10" gives me: Warning: Cannot convert string "Fixed 10" to type FontStruct xfd: no font to display Doing a lsof doesn''t show any font files (I am using xfs - maybe that is why). If I do a xlsfonts, I only see the old style font names and one called ''fixed'', probably from the font alias files. ''xfd -fn fixed'' displays the font I want to use for ''Fixed 10''. It is -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO8859-1 Any other tips?> > At 133 dpi, I get this mapping for fixed-9, 10, 11: > > fixed-9 == /usr/X11R6/lib/X11/fonts/misc/lt1-16-etl.pcf.gz > fixed-10 == /usr/X11R6/lib/X11/fonts/misc/18x18ko.pcf.gz > fixed-11 == /usr/X11R6/lib/X11/fonts/misc/10x20.pcf.gz > > The font you see for fixed-10 is probably one of > the -sony-fixed-medium-r-normal-* fonts. > > -JimC > > > _______________________________________________ > Fontconfig mailing list > Fontconfig@fontconfig.org > http://mail.fontconfig.org/mailman/listinfo/fontconfig-- ---------------------+-------------------------------------------------- Chris Picton | PGP Key ID: 9D28A988 (wwwkeys.pgp.net) Solutions Developer | PGP Key Fingerprint: Tangent Systems | 2B46 29EA D530 79EC D9EA 3ED0 229D 6DD6 9D28 A988 chrisp@tangent.co.za | http://www.tangent.co.za/keys/chrisp.asc ---------------------+-------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20030901/b2122ec9/attachment.pgp
Around 9 o''clock on Sep 1, Chris Picton wrote:> But how do I tell xfd to display a font using a fontconfig sytle name?The fontconfig manual describes the syntax for fontconfig names. http://fontconfig.org/fontconfig-user.html> xfd -fn "Fixed 10" gives me:Ah, you need to tell xfd that you''re using a fontconfig name rather than a core font name. Try: $ xfd -fa ''fixed-10'' If you want to see the 6x13 font (''fixed'' in the default core font list): $ xfd -fa fixed:pixelsize=13:width=semicondensed -keith
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20030829/4a15e5ba/attachment.pgp
On Mon, 2003-09-01 at 09:19, Keith Packard wrote:> Ah, you need to tell xfd that you''re using a fontconfig name rather than a > core font name. Try: > > $ xfd -fa ''fixed-10''Not yet in the man page for xfd :( Now. back to the original problem. I have found out that fixed-10 is using /usr/X11R6/lib/X11/fonts/misc/12x13ja.pcf.gz How to I force it to use a different font for fixed-10 (without deleting that file?) Thanks for the help so far Chris -- ---------------------+-------------------------------------------------- Chris Picton | PGP Key ID: 9D28A988 (wwwkeys.pgp.net) Solutions Developer | PGP Key Fingerprint: Tangent Systems | 2B46 29EA D530 79EC D9EA 3ED0 229D 6DD6 9D28 A988 chrisp@tangent.co.za | http://www.tangent.co.za/keys/chrisp.asc ---------------------+-------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20030901/b9a82d00/attachment.pgp
Chris Picton <chrisp@tangent.co.za> ????????:> On Mon, 2003-09-01 at 09:19, Keith Packard wrote: >> Ah, you need to tell xfd that you''re using a fontconfig name rather than a >> core font name. Try: >> >> $ xfd -fa ''fixed-10'' > > Not yet in the man page for xfd :( > > Now. back to the original problem. > > I have found out that fixed-10 is using > /usr/X11R6/lib/X11/fonts/misc/12x13ja.pcf.gz > > How to I force it to use a different font for fixed-10 (without deleting > that file?)Have a look at http://www.freetype.org/pipermail/freetype/2003-April/006023.html in that mail I suggested a patch to freetype2 appending " Wide" to the Family name of bitmap fonts which contain only double width characters like your /usr/X11R6/lib/X11/fonts/misc/12x13ja.pcf.gz above. This thread ended without a concrete solution on how this problem should be solved. But I still think something needs to be done. Of course you don''t have that problem if you don''t use bitmap fonts at all. But many users still want to use bitmap fonts and it should be possible to select them correctly. -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian ?????????????