all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org, berberic@fmi.uni-passau.de
Subject: Re: Euro Sign and Bitstream Vera
Date: Tue, 30 Jan 2007 14:14:01 -0500	[thread overview]
Message-ID: <m3ps8wiay7.fsf@lugabout.jhcloos.org> (raw)
In-Reply-To: <0FB0B3AC-CDC5-4217-BA0A-8BF248CF18E0@Web.DE> (Peter Dyballa's message of "Tue\, 30 Jan 2007 01\:18\:29 +0100")

>>>>> "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	other threads:[~2007-01-30 19:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-27 21:13 Euro Sign and Bitstream Vera M G Berberich
2007-01-27 23:16 ` Peter Dyballa
     [not found] ` <mailman.3684.1169940980.2155.help-gnu-emacs@gnu.org>
2007-01-28  9:04   ` M G Berberich
2007-01-28 11:26     ` Peter Dyballa
     [not found]     ` <mailman.3693.1169983753.2155.help-gnu-emacs@gnu.org>
2007-01-28 11:36       ` Ralf Angeli
2007-01-28 11:51         ` Peter Dyballa
     [not found]         ` <mailman.3694.1169985834.2155.help-gnu-emacs@gnu.org>
2007-01-28 12:21           ` Ralf Angeli
2007-01-28 23:59 ` Peter Dyballa
2007-01-29 15:45 ` jasonal
2007-01-29 23:39   ` Peter Dyballa
     [not found]   ` <mailman.3761.1170113954.2155.help-gnu-emacs@gnu.org>
2007-01-30 14:53     ` jasonal
2007-01-30  0:18 ` Peter Dyballa
2007-01-30 19:14   ` James Cloos [this message]
     [not found] ` <mailman.3722.1170028754.2155.help-gnu-emacs@gnu.org>
2007-01-30 21:00   ` M G Berberich
2007-01-31  0:09     ` Peter Dyballa

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=m3ps8wiay7.fsf@lugabout.jhcloos.org \
    --to=cloos@jhcloos.com \
    --cc=Peter_Dyballa@Web.DE \
    --cc=berberic@fmi.uni-passau.de \
    --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.
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.