help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use 7x13 fixed X font for Cyrillic


From: Vladimir Panteleev
Subject: Re: Use 7x13 fixed X font for Cyrillic
Date: Sat, 27 Feb 2016 21:20:46 -0800 (PST)
User-agent: G2/1.0

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]