delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/04/25/16:34:07

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
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 AT towo DOT net
Subject: Re: mintty overstrokes some fonts unexpectedly
To: cygwin AT cygwin DOT com
References: <20210425224102 DOT FF0E DOT 50F79699 AT gmail DOT com>
From: Thomas Wolff <towo AT towo DOT net>
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>
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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 <<END;
> 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

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019