[Top][All Lists]

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

Re: Terminal.app and fonts

From: Pablo Giménez
Subject: Re: Terminal.app and fonts
Date: Sat, 10 Oct 2009 15:14:43 +0100

El 9 de octubre de 2009 20:36, Fred Kiefer <address@hidden> escribió:
Pablo Giménez schrieb:
> Well I found the problem.
> It not was in the type or size of the font, although there is a bug in the
> font panel.
> But the reason because the terminal wasn't working is because the charatcer
> encoding, i set it to utf8 (unicode) and this cause the terminal to crash,
> another bug maybe????
> Now my problem is that I can use only the courier, I think size 9,  any time
> I change to another font I got an error like I can't find the font, like
> this:
> 2009-10-09 10:27:24.552 Terminal[16829] XGFont: selected font: Helvetica at
> 9.000000 (-*-helvetica-medium-r-normal--9-*-*-*-p-*-iso8859-1) is not
> available.
> 2009-10-09 10:27:24.553 Terminal[16829] The font specified for NSFont,
> Helvetica, can't be found.
> 2009-10-09 10:27:24.553 Terminal[16829] XGFont: selected font: Helvetica at
> 9.000000 (-*-helvetica-medium-r-normal--9-*-*-*-p-*-iso8859-1) is not
> available.
> 2009-10-09 10:27:24.640 Terminal[16829] NSFont <NSFont: 0x120c7e0> Helvetica
> 12.000 0.000 0.000 12.000 0.000 0.000 N P 0 info <XGFontInfo: 0x1214810>
> size 12 {x = 1; y = 0; width = 7; height = 9} 1
> As you can see the NSFont is set to Helvetica and size to 12, but XGFont is
> still trying to look for  size 9, which doesn't exists in my system.
> Can this be realted with the backend, I am using Cairo, would be better to
> use libart???

Most definitely your aren't using cairo, you are using the old xlib
backend as can be seen from the class XGFontInfo or by the other
messages you are getting. Even this backend is capable of providing anti
aliased fonts, when asked to. Use:
defaults write NSGlobalDomain GSFontAntiAlias YES
Ok I have checked again the configure stage and seems that the configure script can't find the Xft and freetype includes, so probably the backend even using xlib is not able to use Xft and freetype.
I got these errors using the next configure statement:
 ./configure --enable-server=x11

And this is the output:
checking for X... libraries /usr/lib64, headers
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for main in -lXext... yes
checking for main in -lXt... yes
checking for main in -lXmu... yes
checking for X11 function prototypes... yes
checking DPS/dpsclient.h usability... no
checking DPS/dpsclient.h presence... no
checking for DPS/dpsclient.h... no
checking DPS/dpsNXargs.h usability... no
checking DPS/dpsNXargs.h presence... no
checking for DPS/dpsNXargs.h... no
checking ft2build.h usability... no
checking ft2build.h presence... no
checking for ft2build.h... no
checking for pkg-config... /tools/SITE/rnd/bin/Linux64/pkg-config
checking for xft... checking for XftFontOpen in -lXft... yes
checking X11/Xft/Xft.h usability... no
checking X11/Xft/Xft.h presence... no
checking for X11/Xft/Xft.h... no
checking for glXMakeContextCurrent in -lGL... yes
checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking for GLX_RGBA_TYPE... yes
checking for usleep... yes
checking for X11/extensions/XShm.h... yes
checking for shmctl... yes
checking for XInternAtoms in -lX11... yes
checking for main in -lgdi32... no
checking for main in -lmsimg32... no
checking for main in -lopengl32... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for libart2... none
checking for cairo... checking for cairo-ft... checking for cairo-xlib... checking for cairo-win32... checking for cairo-glitz... checking for XRenderFindVisualFormat
in -lXrender... yes
checking Backend Server... x11
checking Backend Graphics... art
configure: WARNING: can't find freetype, required for graphics=art
configure: Switching to xlib
checking Backend name... back
configure: creating ./config.status
config.status: creating back.make
config.status: creating config.make
config.status: creating config.h
config.status: config.h is unchanged

The thing is that I have checked and I have all the Xft includes in /usr/include/X11/Xft/
Also the freetype includes are here: /usr/include/freetype2/freetype/

How can I do to instruct the configure script to look for includes in these directories???


Un saludo
Best Regards
Pablo Giménez

reply via email to

[Prev in Thread] Current Thread [Next in Thread]