all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: =?UTF-8?B?SmFuIERqw6Rydg==?= <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: Parsing of fontconfig font names and other font related stuff.
Date: Wed, 08 Jul 2009 09:55:43 +0900	[thread overview]
Message-ID: <tl7d48chu28.fsf@m17n.org> (raw)
In-Reply-To: <4A539AB0.3010605@swipnet.se> (message from =?UTF-8?B?SmFuIERqw6Rydg==?= on Tue, 07 Jul 2009 20:57:52 +0200)

In article <4A539AB0.3010605@swipnet.se>, =?UTF-8?B?SmFuIERqw6Rydg==?= <jan.h.d@swipnet.se> 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
handa@m17n.org




  reply	other threads:[~2009-07-08  0:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-07 18:57 Parsing of fontconfig font names and other font related stuff Jan Djärv
2009-07-08  0:55 ` Kenichi Handa [this message]
2009-07-08  8:36   ` Jan Djärv
2009-07-08 11:27     ` Jason Rumney
2009-07-08 11:34       ` Kenichi Handa
2009-07-08 12:01       ` Jason Rumney
2009-07-08 12:09     ` Jan Djärv
2009-07-08 12:36       ` Kenichi Handa
2009-07-08 13:43         ` Miles Bader
2009-07-08 14:29           ` Jan Djärv
2009-07-08 22:54             ` Miles Bader
2009-07-08 14:07         ` Jan Djärv
2009-07-08  7:12 ` Yavor Doganov
2009-07-08  8:56   ` Jan Djärv
2009-07-08 10:01     ` Yavor Doganov
2009-07-08 11:42       ` Jan Djärv
2009-07-08 13:12         ` Yavor Doganov
2009-07-14 14:55     ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tl7d48chu28.fsf@m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.