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: Kenichi Handa
Subject: Re: Parsing of fontconfig font names and other font related stuff.
Date: Wed, 08 Jul 2009 09:55:43 +0900

In article <address@hidden>, =?UTF-8?B?SmFuIERqw6Rydg==?= <address@hidden> 
writes:

> I'm in the process of getting Emacs to use GConf defaults for font, 
> antialiasing, hints and dpi.

> The parser in Emacs does not accept "Monospace 8:dpi=96.0".
> First float values for dpi is not accepted, even they are floats in 
> fontconfig.
> Secondly spaces before the size isn't accepted either, it is assumed to be in 
> Gtk+-format when a space is there.

> But fc-match do accept that type of font specification, as do all 
> applications 
> I tried that has xft.  Admittedly, the docs (the user manual) seem to 
> indicate 
> that a '-' is required before the size.

At least fc-match doesn't treat this kind of format
correctly; "Monospace 8".  But, I agree that
font_parse_fcname in font.c should be improved.

> Ideally I wouldn't like to put stuff like dpi in the font string, but instead 
> have the appropriate backend use the GConf value if no other value is 
> specified.  Where would it be appropriate to insert that information?  In the 
> xft-backend or in Ffont-spec, or perhaps somewhere else?

I think it should be done in xft-backend.

By the way, a spec for searching for a font, and a spec for
using the found font should be different.  I think
antialiasing and hints are specs of the latter category.
Currently Emacs doesn't distinguish them.  This should be
fixed somehow.

And, I don't know what dpi is for.  That information should
be available via X server.  Is it a way to pretend that you
are using a screen of the different DPI?

---
Kenichi Handa
address@hidden




reply via email to

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