From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.bugs Subject: bug#19993: 25.0.50; Unicode fonts defective on Windows Date: Tue, 10 Mar 2015 09:29:56 -0700 Message-ID: <20150310162945.GA30876@math.berkeley.edu> References: <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> <20150308084607.GA2135@math.berkeley.edu> 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 1426005243 14611 80.91.229.3 (10 Mar 2015 16:34:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Mar 2015 16:34:03 +0000 (UTC) Cc: 19993@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 10 17:33:51 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 1YVN6M-0004y7-2v for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Mar 2015 17:33:50 +0100 Original-Received: from localhost ([::1]:50274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVN6L-0002m4-H1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Mar 2015 12:33:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVN3k-0007OB-0N for bug-gnu-emacs@gnu.org; Tue, 10 Mar 2015 12:31:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVN3g-0007Sl-7C for bug-gnu-emacs@gnu.org; Tue, 10 Mar 2015 12:31:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVN3g-0007Sd-4J for bug-gnu-emacs@gnu.org; Tue, 10 Mar 2015 12:31:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YVN3f-0003qj-D1 for bug-gnu-emacs@gnu.org; Tue, 10 Mar 2015 12:31:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ilya Zakharevich Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Mar 2015 16:31:03 +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.142600501814688 (code B ref 19993); Tue, 10 Mar 2015 16:31:03 +0000 Original-Received: (at 19993) by debbugs.gnu.org; 10 Mar 2015 16:30:18 +0000 Original-Received: from localhost ([127.0.0.1]:41870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YVN2t-0003oo-Vx for submit@debbugs.gnu.org; Tue, 10 Mar 2015 12:30:17 -0400 Original-Received: from nm1-vm1.bullet.mail.gq1.yahoo.com ([98.136.218.80]:52045) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YVN2j-0003nj-RW for 19993@debbugs.gnu.org; Tue, 10 Mar 2015 12:30:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1426004999; bh=e2Ga+T5cvyy+b3NuVMtqMLZAmzrjpWGRCiNsfEwYjIU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=OV0vZb2zpnd+Usz4QLs39giERVaBXjlHcwFILApawGxPGC2ozqzxnSextPcmKMJH/4vzH2SKDYkToq2383DdFlkSgpgOOsDNwdY+xtYY+3HRpQMCCFh6v5S5bRdNvpnOm2xVFWrWn87WLjO5e/UfWJIwxkHIlMZsiwtRVLYJd2ZcfvEDglzIbDLaHcbcUNv1uH7TGaYX9+1z628xKX6Si92CCIdLtJp51OaV+e/rW5IwhSVVMfU2U/q+lnPlQLzdw7hTTg/522LpI87qdEUtjPqY+/IRKbP8Uau8qcGpOlp3eCJtiNzmuEiVHJOP9omE8Foyn5JvSm4Mso+xBxgBVw== Original-Received: from [216.39.60.183] by nm1.bullet.mail.gq1.yahoo.com with NNFMP; 10 Mar 2015 16:29:59 -0000 Original-Received: from [98.136.164.76] by tm19.bullet.mail.gq1.yahoo.com with NNFMP; 10 Mar 2015 16:29:59 -0000 Original-Received: from [127.0.0.1] by smtp238.mail.gq1.yahoo.com with NNFMP; 10 Mar 2015 16:29:59 -0000 X-Yahoo-Newman-Id: 190916.89516.bm@smtp238.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: dsr8eRAVM1lWMjKRP7.8Sp8fdW54Nn25025Ie_xHAw5oKuJ zc6R6VeBgA7FvcQ8DPSdDh.Bg9ZiWKZ2xoCpZt3nkd_VmvdRVw7PSnOs2gtl 2so1ubv6pSCNyubB4qo40rGYSbFS2NQXdkXpSJvgwwnGyFnWmUS5zW6Pm_BS 0L.EbFggNO4AIXWjnXghQ7I7mflv_IgpoZuTP35RLrZPVK1YcwQ7h9XQVTlP 1tv1MTt2RmDTGs2msQjiyu7yy2oYcrPrlrVuJ0vMryQ3eOOOgxmT_iXTlCU9 CJycgiTwWW2u8KC4AIiV.tr2Z5NpUzzceYB4GcVtj.Gw4_n1xzi4CefRb0VT 4oyGdp6IpypuvJJ7e7xlLQtNZjh9AYrgC9gk3OS2RFlHpRUz6D0z6K0qp.z7 TlmroCvReZCY7eKnD74vYlB1CJQmMUhMTRspMUTXkSo44XK4wvuTrCvj.y2x wXZ2u43yfMpRwW1XAs9DCHq3eGvHMwUU0p4J_MIuleAO2UmO.uPxyK0Lm5hS UVk9.vQuRyz.RbHHxoCyQqskoPJ9XseNnwUMUhrhEl5h8meeeQk0- X-Yahoo-SMTP: oLSY3dWswBBqoBVzCkLl_RIsw6heKMxu8wpEbARv1SU- Content-Disposition: inline In-Reply-To: <20150308084607.GA2135@math.berkeley.edu> User-Agent: Mutt/1.5.21 (2010-09-15) 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:100349 Archived-At: On Sun, Mar 08, 2015 at 12:46:07AM -0800, I wrote: > Interesting tidbit: > > 57 D800 - DFFF Non-Plane 0. Note that setting this bit implies that > there is at least one supplementary code point > beyond the Basic Multilingual Plane (BMP) that > is supported by this font. See Surrogates and > Supplementary Characters. > > Extrapolating (since there is no other way to treat this), having a > Subset “identified” may mean just that there is at least 1 character > in this range supported by the font. ;-) :-( To check this conjecture: • I assume that for most fonts, the OS/2 table is created automatically by the font editor; • I did experiments with the only font editor I know: FontForge. What I did: • created a new font (File/New); • changed Encoding to Unicode (Encoding/Reencode/10646-1); • made some scribles in ã (U+00e3) and щ (U+0449); • Looked into Element⫽Font␣Info⫽OS/2⫽Charsets. As predicted above, (in Automatic mode) Latin Supplement Cyrillic & Supplement are highlighted. So, I presume, the conjecture above is justified: The fact that a Subset is “identified” means just that AT LEAST 1 character is present. ======================================================= Which means that the current algorithm used by Emacs (on Windows?) — at least in the conjectural form outlined in another message in this thread — is completely bogus. Choosing the first font which has a subset of a character “identified” is not a reasonable thing to do. One must check whether the character is ACTUALLY present, and scan other “identified” fonts if not. Ilya