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

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

Re: Euro Sign and Bitstream Vera


From: James Cloos
Subject: Re: Euro Sign and Bitstream Vera
Date: Tue, 30 Jan 2007 14:14:01 -0500
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux)

>>>>> "Peter" == Peter Dyballa <Peter_Dyballa@Web.DE> writes:

Peter> I can confirm: when I use GNU Emacs 23.0.0 with enabled font-backend
Peter> and I launch it as 'emacs --enable-font-backend' and I pass as font a
Peter> fontconfig font name at launch time, then I still get and see €, but
Peter> C-u C-x = returns a weird and obviously wrong character position in
Peter> the font – which is reported in the regular XLFD syntax.

When I tried C-u C-x = on the € in your email, I got this:

,----
|         character: € (8364, #o20254, #x20ac)
| preferred charset: unicode (Unicode (ISO10646))
|        code point: 0x20AC
|            syntax: _  which means: symbol
|          category: c:Chinese h:Korean j:Japanese
|       buffer code: #xE2 #x82 #xAC
|         file code: #xE2 #x82 #xAC (encoded by coding system raw-text-unix)
|           display: by this font (glyph code)
|      dejavu sans 
mono:pixelsize=14:foundry=unknown:weight=medium:slant=r:width=normal (#x66A)
|      Unicode data:  
|              Name: EURO SIGN
|          Category: Symbol, Currency
|   Combining class: Sc
|     Bidi category: Sc
| 
| Character code properties: customize what to show
|   name: EURO SIGN
|   general-category: Sc (Symbol, Currency)
|   canonical-combining-class: 0 (Spacing, split, enclosing, reordrant, and 
Tibetan subjoined)
|   bidi-class: ET (European Number Terminator)
|   mirrored: N
| 
| There are text properties here:
|   auto-composed        t
|   charset              windows-1252
`----

which is almost correct.  (Category seems wrong to me.)

Note that the glyph code for a ttf is the physical position in the
glyf table in the sfnt file, not a character set code point.

I typically start this this command line (by way of an entry in my
icewm menu):

,----
| emacs --enable-font-backend -xrm '*FontBackend: xft' -xrm 'emacs.font: DejaVu 
Sans Mono:pixelsize=14'
`----

and then run this function:

,----
| (defun jhc-backend-xft-fonts () "" (interactive)
|   (set-fontset-font (frame-parameter nil 'font)
|                   'han '("SimHei" . "unicode-bmp"))
|   (set-fontset-font (frame-parameter nil 'font)
|                   'arabic '("Lucida Sans Typewriter" . "unicode-bmp"))
|   (set-fontset-font (frame-parameter nil 'font)
|                   'yi '("SIL Yi" . "unicode-bmp"))
|   (set-fontset-font (frame-parameter nil 'font)
|                   'thai '("Lucida Sans Typewriter" . "unicode-bmp"))
| )
`----

That is not perfect; there are still several holes in font coverage
which need to be filled code-point by code-point rather than script-
by-script as above, but it is getting there.....

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6




reply via email to

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