On Thu, 2006-09-21 at 10:34 +0900, SungHyun Nam wrote:> <alias> > <family>monospace</family> > <prefer> > <family>Courier</family> > <family>GulimChe</family> > </prefer> > </alias> > ... > ... > ... > <!-- Use Courier for english character --> > <match target="pattern"> > <test name="family" compare="contains"><string>GulimChe</string></test> > <edit name="family" mode="prepend" binding="same"> > <string>Courier</string> > </edit> > </match>That certainly looks like it should work. Please post the output from: $ FC_DEBUG=1 fc-match ''GulimChe'' which will show both the pattern resulting from the above instructions and the selected font. -- keith.packard@intel.com -------------- 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/20060920/0f4fc0ed/attachment.pgp
On Thu, 2006-09-21 at 11:04 +0900, SungHyun Nam wrote:> ================= fontconfig-2.4.1 ======================> $ LD_PRELOAD=./libfontconfig.so.1.1.0 FC_DEBUG=1 ../../fc-match/fc-match ''GulimChe''> cour.pfa: "Courier" "Regular" > > > ================= fontconfig-2.3.95 ======================> $ FC_DEBUG=1 fc-match ''GulimChe''> courR12-ISO8859-1.pcf.gz: "Courier" "Regular"It looks like 2.4.1 is finding the pfa outline while 2.3.95 is finding the pcf bitmap. Perhaps you''ve disabled bitmaps in the 2.4.1 configuration? In neither case should your application be selecting GulimChe for latin glyphs though; if it does, the fault lies beyond fontconfig... -- keith.packard@intel.com -------------- 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/20060920/aa29c421/attachment.pgp
On Thu, 2006-09-21 at 18:34 +0900, SungHyun Nam wrote:> Hmm, no it''s not. If I do ''mv Type1/cour*.pfa ~/tmp'' and run the > command above, now fontconfig-2.4.1 also find the pcf font. > courR12-ISO8859-1.pcf.gz: "Courier" "Regular" > But the problem remains.I''m sorry, we haven''t actually tested the code path used by gnome-terminal. I''m not sure it will do any good, but can you check the output of $ fc-match --sort ''gulimche'' for me? In my testing, I still get courier first, but I''m curious what you will get. Gnome-terminal *should* use the fonts in the order returned by fc-match --sort. Comparing this value between 2.3.95 and 2.4.1 should show us what gnome-terminal is seeing. -- keith.packard@intel.com -------------- 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/20060921/f4fb85da/attachment.pgp
On Fri, 2006-09-22 at 08:38 +0900, SungHyun Nam wrote:> I get courier first also.Ok, so I officially have no idea why gnome-terminal isn''t using courier glyphs for the latin output. As you see, the two outputs match. -- keith.packard@intel.com -------------- 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/20060921/4c650668/attachment.pgp