From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Keith Packard <keithp@keithp.com>
Cc: 6437@debbugs.gnu.org
Subject: bug#6437: 23.2; Fail to parse GTK font size with decimal point
Date: Tue, 22 Jun 2010 08:44:48 +0200 [thread overview]
Message-ID: <4C205BE0.8080901@swipnet.se> (raw)
In-Reply-To: <yuny6efxujo.fsf@aiko.keithp.com>
2010-06-16 10:15, Keith Packard skrev:
>
> Running emacs-gtk, I have my default font set to 'Monospace 7.5' in
> gconf which causes emacs to fail to start with the following error
> message:
>
> $ emacs
> Font `Monospace 7.5' is not defined
>
>
> Emacs is mis-parsing the font name, not allowing for the point size
> field to contain a decimal point.
>
> Here's a patch:
>
> diff --git a/src/font.c b/src/font.c
> index 7657121..cdaa16e 100644
> --- a/src/font.c
> +++ b/src/font.c
> @@ -1544,7 +1544,7 @@ font_parse_fcname (name, font)
> int size_found = 1;
>
> for (q = p + 1; *q&& *q != ' '; q++)
> - if (! isdigit (*q))
> + if (! isdigit (*q)&& *q != '.')
> {
> size_found = 0;
> break;
>
Applied. But on my system it seems I get 7 even if I specify 7.5. I tried a
couple of applications, they all behave the same.
Jan D.
next prev parent reply other threads:[~2010-06-22 6:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-16 8:15 bug#6437: 23.2; Fail to parse GTK font size with decimal point Keith Packard
2010-06-22 6:44 ` Jan Djärv [this message]
2011-09-21 20:38 ` Lars Magne Ingebrigtsen
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=4C205BE0.8080901@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=6437@debbugs.gnu.org \
--cc=keithp@keithp.com \
/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.