From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 691DC3950C7E for ; Mon, 26 Apr 2021 22:55:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 691DC3950C7E Received: by mail-pl1-x636.google.com with SMTP id 20so25820686pll.7 for ; Mon, 26 Apr 2021 15:55:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:in-reply-to:references :message-id:mime-version:content-transfer-encoding; bh=QrrnwXln+6fU5L+CBRPcb36Xy0ZetHWXeMwn4UT3pyM=; b=pTHGMShLpTKKAy5NE7C7F3qeQJINODkkk2ldectvEW0xgVdowou8xBta4SrSFMa1WP I9uDeenSwEq906gv2zE3Yp1+N8LGgAiAGjoM8P6/5YGVCLUOQUmIGYr9sTEHBEooew9w +9mLccMhA9V4TU97vbaaJBBRZyrPCjMv8f3Y8q9Lr8uGzoDhxdueMSgtOmhIfxHV4yli 3rU+2wz8cNAizHZc0EGd/dCouxizP3DH4v7e+ETyaovKWHG9HiK5myEkBbYyoUnQQpGa 5Vas/CA34ff535D6I+yx01qDJqh02lKlAkoPLNgvKK3IO3/emdlhlsvfNsl69MRchOkw uXag== X-Gm-Message-State: AOAM533cU2vryXFFh5DyH4uUpZMOioFoZYAgFsRwjQnNClFtQodMrSt/ tTTnXPknCoZW/FmH5TncmgVgUr9DM94= X-Google-Smtp-Source: ABdhPJycvWs0WnzlHRWK5fmR4rYTRtQ6q7KLhIEewszhLADp+z/5S8O9idwsKQNf/4PAqlcP+aex9g== X-Received: by 2002:a17:902:7847:b029:ea:c45a:29fc with SMTP id e7-20020a1709027847b02900eac45a29fcmr20779019pln.46.1619477746549; Mon, 26 Apr 2021 15:55:46 -0700 (PDT) Received: from [192.168.3.4] ([2400:2411:aa20:4300:1167:9351:21c5:989]) by smtp.gmail.com with ESMTPSA id h20sm595905pfv.6.2021.04.26.15.55.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Apr 2021 15:55:45 -0700 (PDT) Date: Tue, 27 Apr 2021 07:55:45 +0900 From: Lemures Lemniscati To: cygwin@cygwin.com Subject: Re: mintty overstrokes some fonts unexpectedly In-Reply-To: <19bb84cb-c503-238a-513f-42e8cb3c19de@towo.net> References: <20210426081451.EC3F.50F79699@gmail.com> <19bb84cb-c503-238a-513f-42e8cb3c19de@towo.net> Message-Id: <20210427075544.0153.50F79699@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.75.02 [ja] X-Antivirus: Avast (VPS 210426-4, 2021/04/26), Outbound message X-Antivirus-Status: Clean X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: Mon, 26 Apr 2021 22:55:49 -0000 On Mon, 26 Apr 2021 20:31:38 +0200, Thomas Wolff > > Am 26.04.2021 um 01:14 schrieb Lemures Lemniscati via Cygwin: > > On Sun, 25 Apr 2021 22:33:57 +0200, Thomas Wolff > >> 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 > >>> > >>> 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. > > Thank you, Thomas. > > > > I tried some earlier versions of mintty: > > > > * mintty-3.1.0-1 has the same issue > > * mintty-2.9.6-0 works expectedly in this case. > My previous comment was wrong, sorry. The cause of the issue is that the Windows CJK fonts are designed for CJK ambiguous-wide layout. If you run mintty with option Charwidth=ambig-wide, or better in an ambiguous-wide locale like LC_CTYPE=C.utf8@cjkwide, width handling and font rendering will match. > Mintty applies auto-narrowing to some characters that would render far out of their character cell, squeezing them into the cell, in order to optimise the trade-off between readability and authentic rendering. > Some character ranges were taken out of that mechanism in 2.9.7, including the Geometric Shapes which you've encountered, in this case because they are "geometric" and the assumption was that they should not be tampered for rendering. Thank you, Thomas! I overlooked 'man mintty'. It works expectedly under the setting. I'd be happy if the option Charwidth is accessible from GUI. Regards, Lem