From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by sourceware.org (Postfix) with ESMTPS id 1575038515E8 for ; Sun, 25 Apr 2021 20:33:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1575038515E8 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo@towo.net Received: from [192.168.178.74] ([91.65.218.78]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MdNoW-1l1QhR1aSm-00ZRPl for ; Sun, 25 Apr 2021 22:33:57 +0200 Subject: Re: mintty overstrokes some fonts unexpectedly To: cygwin@cygwin.com References: <20210425224102.FF0E.50F79699@gmail.com> From: Thomas Wolff Message-ID: <4660c89e-6cdd-1fda-f754-a9289f281ba3@towo.net> Date: Sun, 25 Apr 2021 22:33:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210425224102.FF0E.50F79699@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:h6cgLbpY2PXC1DZE3YKUfPpY7bZFC9iKEzQuDWSpZfD62/v8Ioi QXWhgl+wq/vG1o7cHZB3F68LlC8nVMl57fSGl0TGB3qvcvEov9xvghUuN1DNPfAu/vQDqWY K8NJ02wQll0DCvMaiPdGIDAlT0mlTyGsNk5LJJZjcWYfIFXkS9w2PTUfp3lCUM40++QT+e0 Qv8m+NgrHIX8/bVD9lcnw== X-UI-Out-Filterresults: notjunk:1;V03:K0:8zclXuckn2I=:tthpKGaZLuH2//SKfgj2Ro uO1hhRN5vp/wuqDtk4q2kTrNFoYmptIZ6gfGfwWUFLHSmJ5rxOhsZkc4FcBCTkcMtEmozNQYH QwT2ptwmgTSos0h5MvGpcC/5dfn7YTW4heT0/ulQS0KuTu4sbfn3ijENX70c1/MJugNXl3c+U jggOaBwDNzqT8qfJY5picf7Bfq2E6V2JvAGHpBbm28nKEJSXuUxqzyrpDoW8vjEhQRlmockyD CCoDPLlHHqsaLW7PV5EX+4MzysNgSAfZkenm9xhVqjWw3EsXDCkH/UOaxRESIQyQ5lJbo5M6i aXrD2oePOBTW9ZIdqvBYkin4I2ibDEZ9CbwLEqW85MlecnSR/ARY37lIRkId69cfty92XgOPd U12Jj05z8KzHoXCjg+oQKYhDRuo0T6OXklTseTOSEXAr+7wRo/U3Nyxb0njq4c+AZo9ASdSNh T1sd36mOlcu7OWSsdC78d4uXoOX0PMeBuqZQRhdtr0zXI75t14w1+coyh1iZTn/lFFAm4ciwV oOrcsZxqV3Pmm9rCA+0cWk= X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2021 20:34:02 -0000 Am 25.04.2021 um 15:41 schrieb Lemures Lemniscati via Cygwin: > Hi! > > mintty overstrokes some fonts unexpectedly. > https://gitlab.com/test.cases/mintty-test/-/tree/54ae800e695ecd1741851cab57320a9d0e95a6fd > > > How to reproduce > > Setting mintty to use msgothic.ttc in 20pt, run a > following command. > > ==== > perl -e ' > binmode STDOUT, ":utf8"; > print < 01234567 > \x{3042}\x{3044}\x{3046}\x{3048} > AaBbCcDe > \x{25cb}\x{25cb}\x{25cb}\x{25cb} > \x{3007}\x{3007}\x{3007}\x{3007} > \x{300c}\x{300e}\x{3010}\x{3012} > \x{300d}\x{300f}\x{3011}\x{3013} > \x{ff62}\x{ff63}\x{ff62}\x{ff63}\x{ff62}\x{ff63}\x{ff62}\x{ff63} > \x{ff71}\x{ff72}\x{ff73}\x{ff74}\x{ff75}\x{ff76}\x{ff77}\x{ff78} > END > ' > ==== > > > I got a result mintty-sample-msgothic.png. > https://gitlab.com/test.cases/mintty-test/-/blob/54ae800e695ecd1741851cab57320a9d0e95a6fd/mintty-sample-msgothic.png > > In the 4th line of the output, fonts (of u+25cb) were overstruck > unexpectedly. > And there are other characters also, which are similarly overstruck. This is a Windows bug. Mintty clearly instruct Windows to apply equidistant spacing to achieve fixed-width character cell behaviour. But for certain character ranges, Windows ignores that. Another example for such misbehaviour is the Tibetan block (U+0F00-U+0FFF). Mintty could work around that by rendering characters separately, at a significant penalty for output speed however. Or it could do that only for affected ranges, but criteria to identify them are obscure. Thomas