`.pcf' font not accessible from pango
- From: pottendo <pottendo utanet at>
- To: gtk-i18n-list gnome org
- Cc:
- Subject: `.pcf' font not accessible from pango
- Date: Mon, 2 Jan 2006 15:26:34 +0100
Dear experts,
I'm trying to migrate an application from GTK 1.x to GTK 2.x (Vice,
http://www.viceteam.org).
This applications uses some handcrafted font which works well within
an X11 environment. The source of the font is .bdf which is compiled
with bdftopcf into .pcf format.
Having a proper fontpath (xset fp+ ...) the font is visible by e.g.
bash> xlsfonts |grep cbm
-freetype-vice cbm-medium-r-normal-medium-0-0-100-72-m-0-symbol-0
-freetype-vice cbm-medium-r-normal-medium-12-120-100-72-m-104-symbol-0
and other applications like xfontsel and my application.
Within gtk 1.x I used:
[...]
static char *fixedfontname="-freetype-VICE CBM-medium-r-normal-medium-12-120-100-72-m-104-symbol-0";
[...]
fixedfont = gdk_font_load(fixedfontname);
if (fixedfont)
have_cbm_font = TRUE;
[...]
if (fixedfont)
{
style = gtk_style_new();
gdk_font_unref(style->font);
style->font = fixedfont;
gdk_font_ref(style->font);
gtk_widget_set_style(image_preview_list, style);
gtk_style_unref(style);
}
[...]
which made `image_preview_list' using my special font.
Now with gtk2 I tried to migrate to pango. But I didn't manage to get
the same behavior as with gtk1.
Also other applications using the fontselector widget don't show my
CBM font. I also tried to add the fontpath to my ~/.fonts.config which
didn't change anything.
I tried to search the archive resources but didn't find anything
helpful to solve my problem.
Any help would be really appreciated.
Please reply also to `pottendo utanet at' as I'm not (yet) subscribed
to the i18n list. Thank you.
Best regards,
martin
My setup is:
Linux-2.6.14 based on
Fedora Core 4 with small updates here and there. I use the Gnome
desktop.
bash> rpm -q -a |egrep 'xorg|fontconfig|gtk|pango' |sort
authconfig-gtk-4.6.12-1
fontconfig-2.2.3-13
fontconfig-devel-2.2.3-13
fonts-xorg-100dpi-6.8.2-1
fonts-xorg-75dpi-6.8.2-1
fonts-xorg-base-6.8.2-1
gnome-python2-gtkhtml2-2.10.0-2.1
gtk+-1.2.10-39
gtk2-2.6.7-4
gtk2-devel-2.6.7-4
gtk2-engines-2.6.3-2
gtk+-devel-1.2.10-39
gtk-doc-1.3-2
gtk-engines-0.12-7
gtkhtml-1.1.9-11
gtkhtml2-2.6.3-1
gtkhtml3-3.6.2-1
gtksourceview-1.2.0-1
gtkspell-2.0.7-3
libswt3-gtk2-3.1.0_fc-0.M6.22
pango-1.8.1-2
pango-devel-1.8.1-2
pygtk2-2.6.0-2
pygtk2-devel-2.6.0-2
pygtk2-libglade-2.6.0-2
usermode-gtk-1.80-1
xorg-x11-6.8.2-37
xorg-x11-deprecated-libs-6.8.2-37
xorg-x11-deprecated-libs-devel-6.8.2-37
xorg-x11-devel-6.8.2-37
xorg-x11-font-utils-6.8.2-37
xorg-x11-libs-6.8.2-37
xorg-x11-Mesa-libGL-6.8.2-37
xorg-x11-Mesa-libGLU-6.8.2-37
xorg-x11-tools-6.8.2-37
xorg-x11-twm-6.8.2-37
xorg-x11-xauth-6.8.2-37
xorg-x11-xdm-6.8.2-37
xorg-x11-xfs-6.8.2-37
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]