Re: [gtk-i18n-list] `.pcf' font not accessible from pango
- From: pottendo <pottendo utanet at>
- To: mpsuzuki hiroshima-u ac jp
- Cc: gtk-i18n-list gnome org
- Subject: Re: [gtk-i18n-list] `.pcf' font not accessible from pango
- Date: Wed, 11 Jan 2006 22:01:14 +0100
hi again,
mpsuzuki hiroshima-u ac jp writes:
[...]
> The test I do is following:
>
> Step 1. Change the font name in font.cache-1 to unique name
>
> The name given by fc-cache is usually same with
> other fonts (because fontconfig does not use the font
> name as unique key to lookup a font file), so I change
> the name manually to unique name, aslike:
>
> Original (generated by fc-cache)
> "10x20.pcf.gz" 0 "Fixed:style=Regular:..."
>
> Modified
> "10x20.pcf.gz" 0 "PCFFixed:style=Regular:..."
>
> Step 2. Check output of fc-list
>
> $ fc-list | fgrep PCFFixed
> PCFFixed:style=Regular
>
> So, I can expect as libfontconfig returns the path of
> bitmap font file.
I tried your steps:
bash> cp /usr/X11R6/lib/X11/fonts/misc/k14.pcf.gz .
bash> ls -la
total 224
drwxr-xr-x 2 jason users 4096 Jan 11 21:25 .
drwxrwxrwt 17 root root 4096 Jan 11 21:25 ..
-rw-r--r-- 1 jason users 210587 Jan 11 21:25 k14.pcf.gz
bash> fc-cache .
bash> ls -la
total 224
drwxr-xr-x 2 jason users 4096 Jan 11 21:25 .
drwxrwxrwt 17 root root 4096 Jan 11 21:25 ..
-rw-r--r-- 1 jason users 0 Jan 11 21:25 fonts.cache-1
-rw-r--r-- 1 jason users 210587 Jan 11 21:25 k14.pcf.gz
bash> fc-list |grep k14
As you `fonts.cache-1' is empty.
It does work however for some other .pcf.gz fonts:
bash> cp /usr/X11R6/lib/X11/fonts/misc/clR6x12.pcf.gz .
bash> fc-cache .
bash> ls -la
total 40
drwxr-xr-x 2 jason users 4096 Jan 11 21:45 .
drwxrwxrwt 17 root root 4096 Jan 11 21:45 ..
-rw-r--r-- 1 jason users 21547 Jan 11 21:45 clR6x12.pcf.gz
-rw-r--r-- 1 jason users 986 Jan 11 21:45 fonts.cache-1
>
> Step 3. Check gtk2
>
> I use font selector widget in testgtk included in gtk2
> (gtk+-2.x.y/tests/testgtk). By the test, in my case
> (gtk+-2.4.14), ASCII PCF/BDF fonts are usable, at least.
> But Japanese PCF/BDF fonts (k14.pcf) does not work well...
The font in the example above ("clR6x12.pcf.gz" 0
"CleanHACKED:style=Regular: ...) can be chosen from the file selector
and seems to be really the xfont (compared with xfontsel visually).
>
>
> Note detail of your gtk2 environment and send me your font.
bash> rpm -q pango
pango-1.8.1-2
bash> rpm -q -i pango gtk2 glib2 fontconfig
Name : pango Relocations: (not relocatable)
Version : 1.8.1 Vendor: Red Hat, Inc.
Release : 2 Build Date: Fri 04 Mar 2005 10:38:15 PM CET
Install Date: Mon 11 Jul 2005 04:25:18 PM CEST Build Host: porky.build.redhat.com
Group : System Environment/Libraries Source RPM: pango-1.8.1-2.src.rpm
Size : 674674 License: LGPL
Signature : DSA/SHA1, Fri 20 May 2005 08:52:26 PM CEST, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.pango.org
Summary : System for layout and rendering of internationalized text.
Description :
Pango is a system for layout and rendering of internationalized text.
Name : gtk2 Relocations: (not relocatable)
Version : 2.6.7 Vendor: Red Hat, Inc.
Release : 4 Build Date: Tue 10 May 2005 03:57:21 PM CEST
Install Date: Mon 11 Jul 2005 04:25:21 PM CEST Build Host: decompose.build.redhat.com
Group : System Environment/Libraries Source RPM: gtk2-2.6.7-4.src.rpm
Size : 13759873 License: LGPL
Signature : DSA/SHA1, Fri 20 May 2005 08:52:33 PM CEST, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.gtk.org
Summary : The GIMP ToolKit (GTK+), a library for creating GUIs for X.
Description :
The gtk+ package contains the GIMP ToolKit (GTK+), a library for
creating graphical user interfaces for the X Window System. GTK+ was
originally written for the GIMP (GNU Image Manipulation Program) image
processing program, but is now used by several other programs as well.
Name : glib2 Relocations: (not relocatable)
Version : 2.6.4 Vendor: Red Hat, Inc.
Release : 1 Build Date: Wed 06 Apr 2005 06:13:42 PM CEST
Install Date: Mon 11 Jul 2005 04:22:38 PM CEST Build Host: decompose.build.redhat.com
Group : System Environment/Libraries Source RPM: glib2-2.6.4-1.src.rpm
Size : 1958459 License: LGPL
Signature : DSA/SHA1, Fri 20 May 2005 08:52:18 PM CEST, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.gtk.org
Summary : A library of useful utility functions.
Description :
GLib is a handy library of utility functions. This C library is
designed to solve some portability problems and provide other useful
functionality which most programs require.
Name : fontconfig Relocations: (not relocatable)
Version : 2.2.3 Vendor: Red Hat, Inc.
Release : 13 Build Date: Tue 19 Apr 2005 10:54:19 PM CEST
Install Date: Mon 11 Jul 2005 04:24:18 PM CEST Build Host: decompose.build.redhat.com
Group : System Environment/Libraries Source RPM: fontconfig-2.2.3-13.src.rpm
Size : 263323 License: MIT
Signature : DSA/SHA1, Fri 20 May 2005 07:37:13 PM CEST, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://fontconfig.org
Summary : Font configuration and customization library
Description :
Fontconfig is designed to locate fonts within the
system and select them according to requirements specified by
applications.
I send the font separately to you without copy to the list.
Many thanks,
martin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]