From: Kenichi Handa <handa@m17n.org>
To: Werner LEMBERG <wl@gnu.org>
Cc: wjenkner@inode.at, 10193@debbugs.gnu.org
Subject: bug#10193: font problem with koi8-r encoding
Date: Mon, 05 Dec 2011 16:51:24 +0900 [thread overview]
Message-ID: <tl7sjkzmp6r.fsf@m17n.org> (raw)
In-Reply-To: <20111202.194705.300027605.wl@gnu.org> (message from Werner LEMBERG on Fri, 02 Dec 2011 19:47:05 +0100 (CET))
In article <20111202.194705.300027605.wl@gnu.org>, Werner LEMBERG <wl@gnu.org> writes:
>>> Starting with `emacs -Q' and loading a file encoded in koi8-r,
>>> Emacs uses an oblique style to display Russian characters on my
>>> GNU/Linux box.
> >
> > bug#8046 ?
> Indeed. Sorry for the duplicate. Apparently, this bug report slipped
> under Ken'ichi-san's radar...
Yes, I'm sorry. I've just installed the attached change.
Could you please check if it fixes the problem?
---
Kenichi Handa
handa@m17n.org
2011-12-05 Kenichi Handa <handa@m17n.org>
* ftfont.c (get_adstyle_property): If the font is not BDF nor PCF,
return Qnil (Bug#8046, Bug#10193).
=== modified file 'src/ftfont.c'
--- src/ftfont.c 2011-11-30 16:33:05 +0000
+++ src/ftfont.c 2011-12-05 07:11:55 +0000
@@ -164,6 +164,13 @@
char *str, *end;
Lisp_Object adstyle;
+#ifdef FC_FONTFORMAT
+ if ((FcPatternGetString (p, FC_FONTFORMAT, 0, &fcstr) == FcResultMatch)
+ && (xstrcasecmp ((char *) fcstr, "bdf") != 0
+ || xstrcasecmp ((char *) fcstr, "pcf") != 0))
+ /* Not a BDF nor PCF font. */
+ return Qnil;
+#endif
if (FcPatternGetString (p, FC_STYLE, 0, &fcstr) != FcResultMatch)
return Qnil;
str = (char *) fcstr;
next prev parent reply other threads:[~2011-12-05 7:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-02 9:13 bug#10193: font problem with koi8-r encoding Werner LEMBERG
2011-12-02 16:06 ` Wolfgang Jenkner
2011-12-02 18:47 ` Werner LEMBERG
2011-12-05 7:51 ` Kenichi Handa [this message]
2011-12-05 19:06 ` Werner LEMBERG
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=tl7sjkzmp6r.fsf@m17n.org \
--to=handa@m17n.org \
--cc=10193@debbugs.gnu.org \
--cc=wjenkner@inode.at \
--cc=wl@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.