From: "Yuan MEI" <yuan.mei.list@gmail.com>
To: "James Cloos" <cloos@jhcloos.com>
Cc: emacs-devel@gnu.org
Subject: Re: Font pixel size selection
Date: Sun, 15 Jun 2008 17:04:54 -0500 [thread overview]
Message-ID: <c10314910806151504k2af3f1d9q3fa4ff629ea88b45@mail.gmail.com> (raw)
In-Reply-To: <m34p7v0x55.fsf@lugabout.jhcloos.org>
I think the only problem here is :pixelsize=14
Fontconfig has the format:
<families>-<point sizes>:<name1>=<values1>:<name2>=<values2>
which indicates the number should be `point size', therefore the
actual on screen pixel size could be calculated as <point size>/72*dpi
However, it should also allow user to specify the pixel size directly
through something like :pixelsize=14
Y. M.
On 6/15/08, James Cloos <cloos@jhcloos.com> wrote:
> I posted a bug about this (420), but I didn't see it hit any of the lists.
>
> The font parsing code was recently updated to allow GTK-style font names,
> and this broke the parsing of fontconfig-style font patterns.
>
> The comment before font_parse_fcname() in src/font.c correctly specifies
> what a fontconfig pattern should look like, and a quick read through
> suggests that it ought to do the right thing, by presuming the string is
> a fontconfig pattern if it matches <name>:<properties list>.
>
> To get around the bug, I used xfd(1x) and xmag(1x) to figure out what
> pointsize matched my desired pixelsize, and changed my ~/.Xdefaults to
> specify that, for now.
>
> (At 133 dpi, DejaVu Sans Mono:pixelsize=14 == DejaVu Sans Mono-7.4;
> that will likely be the same for Vera. At any other dpi, of course,
> it will differ.)
>
> -JimC
>
> --
> James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
>
>
--
Yuan MEI
next prev parent reply other threads:[~2008-06-15 22:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-15 6:31 Font pixel size selection Yuan MEI
2008-06-15 8:41 ` Yuan MEI
2008-06-15 11:12 ` James Cloos
2008-06-15 22:04 ` Yuan MEI [this message]
2008-06-15 22:41 ` James Cloos
2008-06-16 2:01 ` Chong Yidong
2008-06-16 4:13 ` Kenichi Handa
2008-06-16 14:36 ` Chong Yidong
2008-06-17 1:55 ` Kenichi Handa
2008-06-17 4:37 ` James Cloos
2008-06-17 5:33 ` Chong Yidong
2008-06-16 5:18 ` İsmail Dönmez
2008-06-16 1:55 ` Kenichi Handa
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=c10314910806151504k2af3f1d9q3fa4ff629ea88b45@mail.gmail.com \
--to=yuan.mei.list@gmail.com \
--cc=cloos@jhcloos.com \
--cc=emacs-devel@gnu.org \
/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.