From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.devel Subject: Probably dumb question: glyph rendering on unicode-2 branch Date: Mon, 17 Oct 2005 09:46:11 -0400 Message-ID: <09B15CC4-37F2-4B0F-8487-2037B482D1CC@cogsci.ucsd.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129557082 26686 80.91.229.2 (17 Oct 2005 13:51:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2005 13:51:22 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 17 15:51:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ERVKY-0003dh-KR for ged-emacs-devel@m.gmane.org; Mon, 17 Oct 2005 15:47:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERVKY-0000Z7-3c for ged-emacs-devel@m.gmane.org; Mon, 17 Oct 2005 09:47:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ERVJj-0000HX-GX for emacs-devel@gnu.org; Mon, 17 Oct 2005 09:46:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ERVJh-0000HD-K2 for emacs-devel@gnu.org; Mon, 17 Oct 2005 09:46:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERVJh-0000H9-4G for emacs-devel@gnu.org; Mon, 17 Oct 2005 09:46:17 -0400 Original-Received: from [140.251.1.25] (helo=smtp-in1.med.cornell.edu) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ERVJh-0001D9-A5 for emacs-devel@gnu.org; Mon, 17 Oct 2005 09:46:17 -0400 Original-Received: from mpx1.med.cornell.edu (biglb-vlan511vip.med.cornell.edu [140.251.11.120]) by smtp-in1.med.cornell.edu (Switch-3.1.6/Switch-3.1.6) with ESMTP id j9HDkCfT251280 for ; Mon, 17 Oct 2005 09:46:13 -0400 Original-Received: from [140.251.33.115] by mpx1.med.cornell.edu (Sun Java System Messaging Server 6.1 HotFix 0.11 (built Jan 28 2005)) with ESMTP id <0IOI00KECBL0XG40@mpx1.med.cornell.edu> for emacs-devel@gnu.org; Mon, 17 Oct 2005 09:46:12 -0400 (EDT) Original-To: emacs-devel@gnu.org X-Mailer: Apple Mail (2.734) X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.1.0.0, Antispam-Data: 2005.10.17.11 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44182 Archived-At: Hi, I apologize if this is a dumb question, but I've been looking through the code and can't figure this one out: on the unicode-2 branch, if a font specifies "iso-10646-1" for XLFD registry/encoding (and then fontset.c sets 'charset' accordingly), what exactly is getting passed in struct glyph_string.char2b to x_draw_glyph_string()? Not UTF-8, since it's just 2 bytes. UCS-2? UTF-16? Don't these exclude a lot of unicode characters? Is that what the "composition" machinery is for? (But I thought that had to do with the script itself involving composition, like Arabic or Korean Hangul..) Does emacs provide any internal facility to get UTF-8? Also, what (encoding) is in glyph.u.ch? Is that UCS-4? UTF-32? thanks, Adrian