Dear experts, I would like to install some TTF and BDF fonts and use them in my GTK applications (using DirectFB). I was successful with installation of TTF fonts. I ran `fc-cache'' on the folder containing TTF fonts and the corresponding cache file got created. But the same procedure failed in the case of BDF fonts: dheeraj@linux:> ./fc-cache -vf ~/fonts/ ./fc-cache: "/home/dheeraj/fonts": caching, 0 fonts, 0 dirs I get the same result even after converting the font to PCF using `bdftopcf''. Any inputs are appreciated. Cheers, Dheeraj --
mpsuzuki@hiroshima-u.ac.jp
2006-Oct-09 23:59 UTC
[Fontconfig] Installing BDF fonts using fc-cache
Hi, On Tue, 10 Oct 2006 12:05:02 +0530 "Dheeraj V.S." <dheerajvs@huawei.com> wrote:>I was successful with installation of TTF fonts. I ran `fc-cache'' on the >folder containing TTF fonts and the corresponding cache file got created. >But the same procedure failed in the case of BDF fonts: >dheeraj@linux:> ./fc-cache -vf ~/fonts/ >./fc-cache: "/home/dheeraj/fonts": caching, 0 fonts, 0 dirs > >I get the same result even after converting the font to PCF using >`bdftopcf''. Any inputs are appreciated.Please give concrete example font file to reproduce the problem. Regards, mpsuzuki
<mpsuzuki@hiroshima-u.ac.jp> wrote:> On Tue, 10 Oct 2006 12:05:02 +0530 > "Dheeraj V.S." <dheerajvs@huawei.com> wrote: >> But the same procedure failed in the case of BDF fonts: >> dheeraj@linux:> ./fc-cache -vf ~/fonts/ >>./fc-cache: "/home/dheeraj/fonts": caching, 0 fonts, 0 dirs >> I get the same result even after converting the font to PCF using >> `bdftopcf''. Any inputs are appreciated.I got some inputs for my problem from: http://moscova.inria.fr/~zappa/software/doc/bdfdriver.txt In freetype, I had to add the following line to the file freetype2/include/freetype/config/ftmodule.h: FT_USE_MODULE(bdf_driver_class) Now fc-cache is able to create the cache files for BDF fonts. But my GTK application is unable to display any text.> Please give concrete example font file to reproduce the problem.I''m using the fonts available at: http://www.rockbox.org/mail/archive/rockbox-archive-2002-08/att-0052/02-font s.zip Thanks, Dheeraj --
mpsuzuki@hiroshima-u.ac.jp
2006-Oct-10 23:17 UTC
[Fontconfig] Installing BDF fonts using fc-cache
Hi, On Wed, 11 Oct 2006 11:05:15 +0530 "Dheeraj V.S." <dheerajvs@huawei.com> wrote:>Now fc-cache is able to create the cache files for BDF fonts. >But my GTK application is unable to display any text.I think I should ask this for first. You mean the GTK applications cannot render any text at all and you see just blank space? If so, what fonts you''ve installed? Only BDF/PCF fonts? Or you mean that you see text with unexpected font? Regards, mpsuzuki
Hi,> I think I should ask this for first. You mean the GTK applications > cannot render any text at all and you see just blank space?Yes, I see only blank spaces.> If so, > what fonts you''ve installed? Only BDF/PCF fonts?Only those bdf fonts are installed. The ones at: http://www.rockbox.org/mail/archive/rockbox-archive-2002-08/att-0052/02-font s.zip Regards, Dheeraj --
mpsuzuki@hiroshima-u.ac.jp
2006-Oct-13 23:42 UTC
[Fontconfig] Installing BDF fonts using fc-cache
Hi, Sorry for lated response. On Wed, 11 Oct 2006 12:45:47 +0530 "Dheeraj V.S." <dheerajvs@huawei.com> wrote:>> I think I should ask this for first. You mean the GTK applications >> cannot render any text at all and you see just blank space? >Yes, I see only blank spaces. > >> If so, >> what fonts you''ve installed? Only BDF/PCF fonts? >Only those bdf fonts are installed. The ones at: >http://www.rockbox.org/mail/archive/rockbox-archive-2002-08/att-0052/02-fonts.zipI tested environment: glib-2.12.4 atk-1.12.3 pango-1.14.6 gtk+-2.10.6 and tea-14.2.4 http://sourceforge.net/projects/tea-editor Although I''m still using legacy fontconfig-2.2.4, I could display text with BDF-only environment. See attached fonts.cache-1 of me. fc-list returns following result: $ fc-list -v Fixed:style=Bold SemiCondensed Fixed:style=SemiCondensed Fixed:style=Regular The fontmenu of tea shows attached screenshot. I guess Fixed is only real entry and Monospace, Sans, Serif might be synthesized entries which is aliased to Fixed (In fact, Monospace/Sans/Serif shows same glyph with Fixed). Anyway, as you can see, texts are shown with installed BDF fonts. Regards, mpsuzuki -------------- next part -------------- A non-text attachment was scrubbed... Name: fonts.cache-1 Type: application/octet-stream Size: 2043 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20061014/b4e72bc9/fonts.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: tea_bdf-only.gif Type: image/gif Size: 5584 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20061014/b4e72bc9/tea_bdf-only.gif
mpsuzuki@hiroshima-u.ac.jp [mailto:mpsuzuki@hiroshima-u.ac.jp] wrote:> I tested environment: > glib-2.12.4 > atk-1.12.3 > pango-1.14.6 > gtk+-2.10.6 > > and tea-14.2.4 http://sourceforge.net/projects/tea-editor> Although I''m still using legacy fontconfig-2.2.4, > I could display text with BDF-only environment.Thank you, mpsuzuki. I tried with the attached fonts.cache, but without success. On a hunch I reinstalled the entire setup (including freetype, glib, pango and gtk) and now it works! Sorry for bothering you folks. :( -Dheeraj