Re: error--> (error "unknown font type" "Xft")



From: Christopher Roy Bratusek <zanghar freenet de>
Subject: Re: error--> (error "unknown font type" "Xft")
Date: Sat, 30 May 2009 16:22:13 +0200

> ... the issue is that somehow the value of the pango/xft checks is not
> correctly substituted by configure ... I don't know why, the configure
> scripts from 1.3.5{,1} is the same than the one of 1.3.5.2, and that
> does not happen there, so the issue may be somewhere else. (I also
> can't reproduce it)
> 
> what is the output of the pango checks (config.log)?


configure:14789: checking for X11/Xft/Xft.h
configure:14798: result: yes
configure:14820: checking for PANGO
configure:14828: $PKG_CONFIG --exists --print-errors "pango >= 1.8.0"
configure:14831: $? = 0
configure:14846: $PKG_CONFIG --exists --print-errors "pango >= 1.8.0"
configure:14849: $? = 0
configure:14885: result: yes
configure:14914: checking for LIBREP
configure:14923: $PKG_CONFIG --exists --print-errors "librep >= ${REP_MIN_VER}
                               "
configure:14927: $? = 0
configure:14944: $PKG_CONFIG --exists --print-errors "librep >= ${REP_MIN_VER}
                               "
configure:14948: $? = 0
configure:14991: result: yes
configure:15005: checking for REP_GTK
configure:15014: $PKG_CONFIG --exists --print-errors "rep-gtk >= 0.18.4
                               "
configure:15018: $? = 0
configure:15035: $PKG_CONFIG --exists --print-errors "rep-gtk >= 0.18.4
                               "
configure:15039: $? = 0
configure:15082: result: yes
configure:15108: checking for gdk_pixbuf (xlib version)
configure:15112: checking for GDK_PIXBUF
configure:15120: $PKG_CONFIG --exists --print-errors "gdk-pixbuf-xlib-2.0 >= 2.6.0"
configure:15123: $? = 0
configure:15138: $PKG_CONFIG --exists --print-errors "gdk-pixbuf-xlib-2.0 >= 2.6.0"
configure:15141: $? = 0
configure:15219: result: yes

...


| #define HAVE_X11_EXTENSIONS_XRANDR_H 1
| #define HAVE_X11_XFT_XFT_H 1
| #define HAVE_PANGO_XFT 1
| #define HAVE_PANGO 1
| #define HAVE_PANGO_X 1
| #define HAVE_X11 1

...

pkg_cv_PANGO_CFLAGS='-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  '
pkg_cv_PANGO_LIBS='-L/lib64 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  '
pkg_cv_REP_GTK_CFLAGS='-I/usr/local/include/ -I/usr/local/libexec/rep/x86_64-unknown-linux-gnu/ -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12  '
pkg_cv_REP_GTK_LIBS='-L/lib64 -lrep -lcrypt -lgmp -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  '

...

PANGO_CFLAGS='-I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  '
PANGO_LIBS='-L/lib64 -lpangoxft-1.0 -lpangoft2-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  '

have_pango_xft='yes'


in lisp/sawfish/gtk/widgets/font.lj the following is substituted:

  ;; FIXME: this is broken, in that only if Xrender is present
  ;; does gdk use Xft. But, it's the best I can do..
  (define use-xft (let ((x (getenv "GDK_USE_XFT")))
              (or (not x) (/= (string->number x) 0))))

  ;; defined by configure
  (define have-pango-xft (eq 'yes 'yes))

  (define default-font (if use-xft "Sans" "fixed"))


> 1.5.0 needs to be tested by you guys (who have that issue), too please.

What is the SHA-1 for the 1.5.0 candiate?

Petter


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]