From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.devel Subject: Re: unicode font-backend + tiling Date: Wed, 13 Dec 2006 14:24:25 -0500 Message-ID: References: <87ejrffa4k.fsf@catnip.gol.com> <87mz62uc96.fsf@frontier.dottedmag.net> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1166037963 18832 80.91.229.10 (13 Dec 2006 19:26:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2006 19:26:03 +0000 (UTC) Cc: id.brep@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 13 20:26:00 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuZjl-0006M3-Iw for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2006 20:25:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuZjl-0004se-0Q for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2006 14:25:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuZiz-0004eQ-Ac for emacs-devel@gnu.org; Wed, 13 Dec 2006 14:25:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuZiv-0004cb-Lu for emacs-devel@gnu.org; Wed, 13 Dec 2006 14:25:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuZiv-0004cR-DW for emacs-devel@gnu.org; Wed, 13 Dec 2006 14:25:01 -0500 Original-Received: from [64.240.156.239] (helo=ore.jhcloos.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GuZiv-0006BR-69 for emacs-devel@gnu.org; Wed, 13 Dec 2006 14:25:01 -0500 Original-Received: from lugabout.jhcloos.org (ppp295.tc-1.buf-ch.ny.localnet.com [69.48.14.41]) (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 89CA51C57D; Wed, 13 Dec 2006 13:24:56 -0600 (CST) Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id C6366382815; Wed, 13 Dec 2006 19:24:48 +0000 (GMT) Original-To: Kenichi Handa In-Reply-To: (Kenichi Handa's message of "Wed\, 13 Dec 2006 16\:55\:25 +0900") Copyright: Copyright 2006 James Cloos X-Hashcash: 1:23:061213:handa@m17n.org::KKPbCJwlRWzc1euH:000d5RM X-Hashcash: 1:23:061213:emacs-devel@gnu.org::0bwF5FwxpvqzIpFT:0000000000000000000000000000000000000000019HH3 X-Hashcash: 1:23:061213:id.brep@gmail.com::fyQ09KenpMei/43C:00000000000000000000000000000000000000000001UHI6 Original-Lines: 31 User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux) 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:63683 Archived-At: >>>>> "Kenichi" == Kenichi Handa writes: Kenichi> Thank you for the explanation. But, I still don't Kenichi> understand when to use FcMatchPattern and when to use Kenichi> FcMatchFont in a program. Good point. I did fail to address that. FcMatchPattern should be used first to determine exactly which font should be used, given the user's requested font pattern. Then, FcMatchFont should be used to determine the details on how to render that font. Eg, substitutions like Arial or NimbusSanL for Helvetica, some font or other for Serif, Sans or Mono, etc are all done during the Pattern step. Things like controling hinting, rgba, aa, embedded bitmaps, etc are then done during the FcMatchFont step. So you need to call the function twice. First with FcMatchPattern to get the font, and then with FcMatchFont to get the rendering details to pass on to FreeType and Xft. There is some discussion at: http://fontconfig.org/fontconfig-user.html#AEN25 -JimC -- James Cloos OpenPGP: 1024D/ED7DAEA6