From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: bad default font on Windows mingw64 Date: Mon, 22 Jul 2019 15:10:21 -0700 Message-ID: <86pnm167qq.fsf@stephe-leake.org> References: <86y30q57g4.fsf@stephe-leake.org> <8336iyq81l.fsf@gnu.org> <86tvbd6fwo.fsf@stephe-leake.org> <83wog9q2vk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="104767"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 23 00:10:37 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpgVw-000R6y-I2 for ged-emacs-devel@m.gmane.org; Tue, 23 Jul 2019 00:10:37 +0200 Original-Received: from localhost ([::1]:38030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpgVv-0003hC-J3 for ged-emacs-devel@m.gmane.org; Mon, 22 Jul 2019 18:10:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35114) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpgVs-0003gs-Qq for emacs-devel@gnu.org; Mon, 22 Jul 2019 18:10:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpgVo-0006qP-8w for emacs-devel@gnu.org; Mon, 22 Jul 2019 18:10:30 -0400 Original-Received: from gateway33.websitewelcome.com ([192.185.146.97]:31125) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hpgVn-0006nT-Rh for emacs-devel@gnu.org; Mon, 22 Jul 2019 18:10:28 -0400 Original-Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 168785A965 for ; Mon, 22 Jul 2019 17:10:24 -0500 (CDT) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id pgVjhIWtk90onpgVjhBQFN; Mon, 22 Jul 2019 17:10:24 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hq/ncETkPv3hhJIgVA2aF5Z70Ig4dWQJk+bJ1x8Z5C8=; b=R08Fk71TH8+jHvJJuvkshz1yO UQYUovBzenVGxSKeJsJAfY16SN/30DgRgjw35u5QIWK5A268JMkMwdy4P0i0OprVn4c+J0Mg8zvm0 tCJ8HWMSYG7ppjFJaAtQCrQqNUIA82BBT1PBZqwlVig9jNOUPfWHZV7LizBqshOtCD0yH327ft8fH mgCpAC97RAk00tNxVyDaBPYBHVRgKYlivsJNGeOgUKzseRTYyd4scK8qnjxWNljMFI7fh/NB+R3Q8 ZaiV+hPsHsEaWOT4pj3A2cMTzk+SyvAO25Csj155r943gN4ydCBe5PH6Eq31jPWF58WWjOC8nq8fa QMAZ44FlA==; Original-Received: from [76.77.182.20] (port=62092 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hpgVj-004F7c-GI for emacs-devel@gnu.org; Mon, 22 Jul 2019 16:10:23 -0600 In-Reply-To: <83wog9q2vk.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 22 Jul 2019 22:35:11 +0300") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1hpgVj-004F7c-GI X-Source-Sender: (Takver4) [76.77.182.20]:62092 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 1 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 192.185.146.97 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238812 Archived-At: Eli Zaretskii writes: >> From: Stephen Leake >> Date: Mon, 22 Jul 2019 12:13:59 -0700 >> >> > emacs -Q -xrm Emacs.fontBackend:uniscribe >> >> That gives me a readable font. > > Then I think you should step through w32hb_encode_char in an Emacs > invoked normally (only with -Q), and see what happens there. I'm > guessing it fails for some reason. w32hb_get_font returns a non-zero pointer. hb_font_get_nominal_glyph returns 0. So w32hb_encode_char returns FONT_INVALID_CODE (#xFFFFFFFF). I don't have source step for hb_font_get_nominal_glyph; apparently that's in the mingw64 harfbuzz library. > Are you sure your MSYS2/MinGW64 installation is up to date? The files are mostly from Dec 2018. 'find . -name "*harfbuzz*"' finds several files, including ./var/lib/pacman/local/mingw-w64-x86_64-harfbuzz-1.7.5-2 which seems to say I've got harfbuzz 1.7.5. > What was the commit from which you built your previous binary, which > did work? I just realized there are old copies of emacs-.exe in emacs/src; very nice! However, they are not compatible with the current *.elc, so not fully functional. The executable that gives good fonts: M-x version says it was built on 2019-05-23 M-x report-emacs-bug says: Repository revision: 5424436452bc0b3d8a62a8398f92d0c2db81e22b The first executable that fails is: Repository revision: d590b27ee4c43ba000172b4ad15762863d78aba1 So the commit that caused this problem is somewhere between those two. I can bisect, if needed. -- -- Stephe