X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A2A03950C7E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1619477750; bh=5JGu+J89ILeBBUCS0eXPWNnJb6IoPGZJCUdHgjjFcgo=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=R53mHVj3D1rIMLu8T9oU+8SjD/s7trxWL6Lof1seETAokPqSCOoSNXIZNRy7JE+f8 fpyIN9PPaWxE1cOBTY7kdJ0j/sn4X2BwWeygT1TU2+NiHZYOcqbkM92xzhB+voJNGe eI14IK0K1WoTAfndEzyb86ewqYQQmvwLFcNXagIo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 691DC3950C7E 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) Date: Tue, 27 Apr 2021 07:55:45 +0900 To: cygwin AT cygwin DOT com Subject: Re: mintty overstrokes some fonts unexpectedly In-Reply-To: <19bb84cb-c503-238a-513f-42e8cb3c19de@towo.net> References: <20210426081451 DOT EC3F DOT 50F79699 AT gmail DOT com> <19bb84cb-c503-238a-513f-42e8cb3c19de AT towo DOT net> Message-Id: <20210427075544.0153.50F79699@gmail.com> MIME-Version: 1.0 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 AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list 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> From: Lemures Lemniscati via Cygwin <cygwin AT cygwin DOT com> Reply-To: Lemures Lemniscati <lemures DOT lemniscati AT gmail DOT com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com> 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 DOT utf8 AT 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 -- 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