emacs-devel
[Top][All Lists]
Advanced

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

Re: Parsing of fontconfig font names and other font related stuff.


From: Jan Djärv
Subject: Re: Parsing of fontconfig font names and other font related stuff.
Date: Wed, 08 Jul 2009 16:07:02 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

Kenichi Handa skrev:
In article <address@hidden>, =?ISO-8859-1?Q?Jan_Dj=E4rv?= <address@hidden> 
writes:

It would be nice to be able to use XftDefaultSubstitute to pick up the GConf settings from the X database (GConf puts them there). But by the time the Xft driver has been choosen, the pixel size for the font has already been calculated, using another dpi-value.

How can we fix this?  Can we choose driver without calculating a pixel size?

I think it's not that difficult of modify the current code
to do that, but...

The fast but kind of ugly way would be to add the defaults from XftDefaultSubstitute to the name if it is an fcname and Xft is present.

shouldn't the DPI value from GConf be reflected to (struct
x_display_info).resy or (struct frame).resy?


I don't know. Xft picks up its specific values from X defaults, and GConf puts them there. So if we could use XftDefaultSubstitute we would get the GConf values without using GConf directly. Also, those values only makes sense for Xft fonts, so it isn't a general DPI-value for everything X does. Then again, it seems to be used mostly for fonts in Emacs, I found one instance where it is used to calculate the size of an image.

I'll look in to it some more.

        Jan D.





reply via email to

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