From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.help Subject: Re: Euro Sign and Bitstream Vera Date: Tue, 30 Jan 2007 14:14:01 -0500 Message-ID: References: <0FB0B3AC-CDC5-4217-BA0A-8BF248CF18E0@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1170187073 6202 80.91.229.12 (30 Jan 2007 19:57:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Jan 2007 19:57:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, berberic@fmi.uni-passau.de To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 30 20:57:51 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HBz6v-0002c2-W3 for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jan 2007 20:57:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBz6r-0000H0-Vp for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jan 2007 14:57:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBz6f-0000Gv-1x for help-gnu-emacs@gnu.org; Tue, 30 Jan 2007 14:57:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HBz6Z-0000GQ-CE for help-gnu-emacs@gnu.org; Tue, 30 Jan 2007 14:57:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBz6Z-0000GN-8h for help-gnu-emacs@gnu.org; Tue, 30 Jan 2007 14:57:23 -0500 Original-Received: from ore.jhcloos.com ([64.240.156.239]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1HBz6M-0008EE-5q for help-gnu-emacs@gnu.org; Tue, 30 Jan 2007 14:57:17 -0500 Original-Received: from lugabout.jhcloos.org (ppp15.pm3-3.buf-ch.ny.localnet.com [69.48.10.143]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "lugabout.jhcloos.org", Issuer "ca.jhcloos.com" (verified OK)) by ore.jhcloos.com (Postfix) with ESMTP id 5833C1C57D; Tue, 30 Jan 2007 13:56:29 -0600 (CST) Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id CA6471D244D; Tue, 30 Jan 2007 19:14:25 +0000 (UTC) In-Reply-To: <0FB0B3AC-CDC5-4217-BA0A-8BF248CF18E0@Web.DE> (Peter Dyballa's message of "Tue\, 30 Jan 2007 01\:18\:29 +0100") Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMnRFWHRUaXRsZQAvbWF4dG9y L2Nsb29zL2luY29taW5nLzIwMDQvMDIvUFdHL0pIQzE2LnBuZyJMlEwAAAAadEVYdFNvZnR3YXJl AEdOT01FIEljb24gRWRpdG9ynioKbAAAAHFJREFUeJzFk8EKwCAMQ1/ED9cvzw6iuM0N9WIvDTWE 1KjAxmKnLBEBjLcEIBCeI2nccy5YKrjxwbbvAvZ37zlo4GB9iRMC/cq/AppItwmMyJ5I98wd9G7P xxgrSKlYS2lMrOcV13o95aVSKA7E5ndGXG+IIzcl4BNfAAAAAElFTkSuQmCC Copyright: Copyright 2006 James Cloos X-Hashcash: 1:23:070130:berberic@fmi.uni-passau.de::OTJIUyQnWrKJcwGb:0000000000000000000000000000000000030rx X-Hashcash: 1:23:070130:help-gnu-emacs@gnu.org::ZENzl6xhwAh/82mf:0000000000000000000000000000000000000003Vpl X-Hashcash: 1:23:070130:peter_dyballa@web.de::pEklg7ZrnkQhczfD:000000000000000000000000000000000000000009pIr Original-Lines: 72 User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40778 Archived-At: >>>>> "Peter" =3D=3D Peter Dyballa writes: Peter> I can confirm: when I use GNU Emacs 23.0.0 with enabled font-backe= nd Peter> and I launch it as 'emacs --enable-font-backend' and I pass as fon= t a Peter> fontconfig font name at launch time, then I still get and see =E2=82= =AC, but Peter> C-u C-x =3D returns a weird and obviously wrong character position= in Peter> the font =E2=80=93 which is reported in the regular XLFD syntax. When I tried C-u C-x =3D on the =E2=82=AC in your email, I got this: ,---- | character: =E2=82=AC (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-un= ix) | display: by this font (glyph code) | dejavu sans mono:pixelsize=3D14:foundry=3Dunknown:weight=3Dmedium:= slant=3Dr:width=3Dnormal (#x66A) | Unicode data: =20 | Name: EURO SIGN | Category: Symbol, Currency | Combining class: Sc | Bidi category: Sc |=20 | Character code properties: customize what to show | name: EURO SIGN | general-category: Sc (Symbol, Currency) | canonical-combining-class: 0 (Spacing, split, enclosing, reordrant, a= nd Tibetan subjoined) | bidi-class: ET (European Number Terminator) | mirrored: N |=20 | 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=3D14' `---- 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 --=20 James Cloos OpenPGP: 1024D/ED7DAEA6