From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19993: 25.0.50; Unicode fonts defective on Windows Date: Sun, 08 Mar 2015 17:55:16 +0200 Message-ID: <83egozlc0r.fsf@gnu.org> References: <83egp4prs3.fsf@gnu.org> <20150305220502.GA4096@math.berkeley.edu> <83a8zqo15d.fsf@gnu.org> <20150306113804.GA11886@math.berkeley.edu> <83385ins3o.fsf@gnu.org> <20150306162136.GA14179@math.berkeley.edu> <83r3t1nax7.fsf@gnu.org> <83oao5n83y.fsf@gnu.org> <20150306221351.GB16266@math.berkeley.edu> <83k2ytmd9q.fsf@gnu.org> <20150308083805.GA1763@math.berkeley.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1425830182 15897 80.91.229.3 (8 Mar 2015 15:56:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2015 15:56:22 +0000 (UTC) Cc: 19993@debbugs.gnu.org To: Ilya Zakharevich Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 08 16:56:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YUdYo-0005LA-UG for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Mar 2015 16:56:11 +0100 Original-Received: from localhost ([::1]:39416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUdYo-0000Gn-5u for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Mar 2015 11:56:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUdYk-0000B7-AV for bug-gnu-emacs@gnu.org; Sun, 08 Mar 2015 11:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUdYh-0005dF-4r for bug-gnu-emacs@gnu.org; Sun, 08 Mar 2015 11:56:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUdYh-0005d3-25 for bug-gnu-emacs@gnu.org; Sun, 08 Mar 2015 11:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YUdYg-00055j-Hz for bug-gnu-emacs@gnu.org; Sun, 08 Mar 2015 11:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Mar 2015 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19993 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19993-submit@debbugs.gnu.org id=B19993.142583014219544 (code B ref 19993); Sun, 08 Mar 2015 15:56:02 +0000 Original-Received: (at 19993) by debbugs.gnu.org; 8 Mar 2015 15:55:42 +0000 Original-Received: from localhost ([127.0.0.1]:39532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUdYL-000557-VK for submit@debbugs.gnu.org; Sun, 08 Mar 2015 11:55:42 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:57046) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUdYJ-00054t-5U for 19993@debbugs.gnu.org; Sun, 08 Mar 2015 11:55:40 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NKW00N00HCCX100@mtaout28.012.net.il> for 19993@debbugs.gnu.org; Sun, 08 Mar 2015 17:54:00 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKW00DXLHI0LAA0@mtaout28.012.net.il>; Sun, 08 Mar 2015 17:54:00 +0200 (IST) In-reply-to: <20150308083805.GA1763@math.berkeley.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100267 Archived-At: > Date: Sun, 8 Mar 2015 00:38:05 -0800 > From: Ilya Zakharevich > Cc: 19993@debbugs.gnu.org > > But the major hurdle is that the semantic of fontsets is completely > undocumented. After your suggestions, I think I arrived at some > description which does not contradict anything I have seen: > > ======================================================= > When Emacs wants to show a character using a fontset: > • Emacs looks in the fontset and finds the font specifications associated > to this character. > • Emacs checks which Unicode Subset contains the given character. > (What if not unique???) > • From fonts matching the font specifications, Emacs picks up those > which have this Unicode Subset “identified” within the font. > • From these, Emacs choses one (which?). > > Emacs uses this procedure for two fontsets: the currently enabled one, and > the default fontset. If none of two obtained fonts supports the given > character, a HEX representation is shown. > ======================================================= > > Is it similar to what actually happens? (I’m not asking about the > implementation, just whether there is a functional equivalence.) Sounds reasonable; but then my "reason" in this matter means very little. And I'm not aware of any documentation that could be used to confirm or refute the above. I can add 2 bits to this: . the match between the font spec and the Unicode subranges is checked as part of the Windows implementation of the font driver's 'list' method, which (the method) is called only from font_list_entities, which see. . at least some of the "wisdom" (or lack thereof) of font selection using the defaults seems to come from the database created by setup-default-fontset, which see.