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



From: Teika Kazura <teika lavabit com>
Subject: Re: error--> (error "unknown font type" "Xft")
Date: Sat, 23 May 2009 14:27:01 +0900 (JST)


> In ~/.sawfishrc, try
> (define-special-variable default-font 
> 			 '("xlfd" . "put-xlfd-font-name-here"))
> or '("Pango" . "Sans")


Hi Teika,

Thank you for your reply. Unfortunately either of them resolved the
problem. It seems like the function "get-font-typed" might be called
directly from some other lisp function which is independent of the
settings in .sawfishrc?.

I added a printf statement at the beginning of the function (in
font.c) and a second one right before the error message is printed.
Here's the result without the .sawfishrc specifying a default font:

$ DISPLAY=:1 ./sawfish 
name is Sans, type is Xft
class is 0, type is Xft
name is fixed, type is xlfd
class is 428e00, type is xlfd
error--> (error "unknown font type" "Xft")

and then including a default font in .sawfishrc
  (define-special-variable default-font 
   '("xlfd" . "fixed"))


$ DISPLAY=:1 ./sawfish 
name is Sans, type is Xft
class is 0, type is Xft
name is fixed, type is xlfd
class is 428e00, type is xlfd
error--> (error "unknown font type" "Xft")


Petter


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