From: Vladimir Panteleev <thecybershadow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Use 7x13 fixed X font for Cyrillic
Date: Sat, 27 Feb 2016 21:20:46 -0800 (PST) [thread overview]
Message-ID: <a807fb5f-7a9b-4894-ab14-ea0087d75a5b@googlegroups.com> (raw)
In-Reply-To: <natb69$139j$1@gioia.aioe.org>
On Saturday, February 27, 2016 at 11:23:58 PM UTC, Javier wrote:
> > Unfortunately that still produces 12x13 Cyrillic glyphs.
>
> Now I realize what it happens. Latin characters are in 7x13, but
> Cyrillic appear in 12x13.
>
> From (info "(emacs) Modifying Fontsets")
>
> Fontsets do not always have to be created from scratch. If only minor
> changes are required it may be easier to modify an existing fontset.
> Modifying `fontset-default' will also affect other fontsets that use it
> as a fallback, so can be an effective way of fixing problems with the
> fonts that Emacs chooses for a particular script.
>
> Fontsets can be modified using the function `set-fontset-font',
> specifying a character, a charset, a script, or a range of characters
> to modify the font for, and a font specification for the font to be
> used. Some examples are:
>
> This should do the job
>
> ;; Use 7x13 for unicode charset.
> (set-fontset-font "fontset-default" 'unicode
> "-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1")
Yes, thanks, that worked!
Is it possible to also apply this to characters such as », ·, ¢? They seem to have a similar problem, and they're all within the 128..255 code point range.
I've tried:
(set-fontset-font "fontset-default" '(128 . 255) "-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1")
..but that seems to have no effect.
I've discovered M-x describe-char, and for ¢ (the cent symbol) it shows:
position: 1669 of 2588 (64%), column: 0
character: ¢ (displayed as ¢) (codepoint 162, #o242, #xa2)
preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0xA2
script: latin
syntax: _ which means: symbol
category: .:Base, j:Japanese, l:Latin
to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
buffer code: #xC2 #xA2
file code: #xC2 #xA2 (encoded by coding system utf-8-unix)
display: by this font (glyph code)
xft:-Misc-Fixed-normal-normal-normal-ja-13-*-*-*-c-120-iso10646-1 (#x63)
Even though "preferred charset" is "unicode", it seems to prefer using a Japanese font for this symbol oddly enough.
next prev parent reply other threads:[~2016-02-28 5:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-27 1:59 Use 7x13 fixed X font for Cyrillic Vladimir Panteleev
2016-02-27 7:59 ` Eli Zaretskii
[not found] ` <mailman.6021.1456560027.843.help-gnu-emacs@gnu.org>
2016-02-27 20:26 ` Vladimir Panteleev
2016-02-27 20:46 ` Javier
2016-02-27 22:53 ` Vladimir Panteleev
2016-02-27 23:23 ` Javier
2016-02-27 23:44 ` Javier
2016-02-28 5:20 ` Vladimir Panteleev [this message]
2016-02-28 15:52 ` Javier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a807fb5f-7a9b-4894-ab14-ea0087d75a5b@googlegroups.com \
--to=thecybershadow@gmail.com \
--cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).