X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB1EE3856DC2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1696772897; bh=dJYKBPfxDsl20C+YO5qkNKH2skWLnjaKQ1/PoQB9zHU=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=CzY1F2IZQ4ePvYQuU0T4ipKnFJ2+n8yVzXzhaLsSVGd5Gw1+8GcxwZl/kHx4l0Jjr 3fd5HHx5Om2G38QPOiOUPJMa2Zdw8kujYTUAzoy+x1gCXQQ1UpdoxN0W+6D8xzMuqV iuXVCkEbssfq+TtpdoMT8+/Gd0BrLYNReWIHsxbs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 106A93858D32 Message-ID: Date: Sun, 8 Oct 2023 15:47:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: half- and full-width CJK characters To: cygwin AT cygwin DOT com References: <59ea964a-0817-4af4-aece-36d7c3a707a3 AT towo DOT net> <4611b895-5f60-47f8-bd85-6009a70e923e AT towo DOT net> Autocrypt: addr=towo AT towo DOT net; keydata= xsDNBGNaf3QBDACVevqudcTSevLThXKQPU1QpaDxtGuYjtwmr7i9wXxVGih4Y4oxOJN4PYlu KBX9IVAI4651dA+xYtXuyIkWOPZWyyzkGKavQOn3Q7dk09oj7bh2IwOndpxXXde337D408EQ bQEGbMHr9lOWhSAideowzgCeFIvGTf2AovbPh97HpexJn1/HCRiRAhTNlrkS1DByUgCAeEMK fEr6aGM/Ou29MT+eTnQwOIZTnl9Z9LxM2FtqqMH3MycC7I2OoW3XXhuL8BPQdyJUjWa0/J11 Oo5jFkRXtWenIns6jGn18oW72jnDmo9jXwwS+iZWAV6Y51nhD7jSC+3xs9ORmPCdtHUS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MARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Thomas Wolff via Cygwin Reply-To: Thomas Wolff Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 398DmJEq004234 Am 08/10/2023 um 14:55 schrieb Dr Bean via Cygwin: > On Sat, 07 Oct 2023, Thomas Wolff via Cygwin wrote: > >> >> Am 07/10/2023 um 14:47 schrieb Dr Bean via Cygwin: >>> On Sat, 07 Oct 2023, Thomas Wolff via Cygwin wrote: >>> >>>> Am 07/10/2023 um 10:23 schrieb Dr Bean via Cygwin: >>>>> I am memorializing this for my own benefit here. >>>>> >>>>> Benefitting fromhttps://eng-blog.iij.ad.jp/archives/12576 >>>>> I see that I don't need to change any envars, but only fonts. >>>>> >>>>> The default Lucida Console font renders CJK as half-width chars, on >>>>> this PC with 3 Windows language packs. >>>>> >>>>> With MS ゴシック, Japanese かな and 漢字 look good. >>>>> Traditional Chinese ㄅㄛˋㄆㄛˋㄇㄛˋand 漢字 look good. >>>>> Korean 한글 doesn't look good. It looks like they're >>>>> half-width characters drawn with the space for one full-width >>>>> character. >>>>> >>>>> I wonder if this is a problem with the Korean language pack. >>>>> >>>> Please describe the context of your observations (preferably a test case); >>>> do you have an issue inside the Cygwin Terminal? >>>> Thomas >>> All mintty contexts. Viewing this email in an SSH session in screen >>> to a remote tmux session on freeshell.org, writing this reply in vim, >>> and changing the mintty font option from , >>> >>> Font=Lucida Console >>> to >>> Font=MS ゴシック >>> >>> the above CJK characters change appearance from half-width to full-width, >>> except for the Korean 한글, which doesn't change appearance. >>> >>> Attaching to the tmux session on freeshell, sshing in from my >>> phone with Termius, the characters don't change, of course. >>> >>> I'm not suggesting there's anything wrong with the default mintty font >>> option of Lucida Console. It looks good. >>> >>> I am on the lookout for a good font for viewing korean 한글, so I >>> don't have to magnify the screen to read it. >>> >>> By the way, thanks for mintty. It is a joy to use. >>> >> Judging by the name (which has Katakana characters), MS ゴシック is a >> Japanese font, so maybe it simply does not have any special Korean >> ideographs and the Windows font fallback mechanism substitutes some >> unsuitable font. >> You should try to find a specific Korean font, I doubt MS ゴシック was >> provided by the Korean language pack. I could try to reproduce the issue if >> you tell me which font it is. As far as I know, the CJK names are only used >> with respective language packs installed, otherwise the same font can be >> addresses by an alternative name. You could also look up the font filename >> (in the Windows Fonts folder) to identify it. Thomas > In the mintty font option dropdown there are at least 2 (4?) fonts giving > full-width Korean 한글 here. I have the Windows Korean language pack > installed. > > They are with filenames in /cygdrive/c/windows/Fonts: > > BatangChe batang.ttc > DotumChe gulim.ttc > GulimChe gulim.ttc > GungsuhChe batang.ttc > > And > > MS ゴシック msgothic.ttc (the MS chars are full-width) > doesn't result in full-width hangul. > > So, I've found a suitable font for Korean 한글. > Thanks for confirming. By the way, as CJK fonts are usually not very suitable for Latin text (mostly not being monowidth in the first place), there is a useful mechanism in mintty that allows you to use your favourite CJK and non-CJK fonts together. It's the FontChoice setting for secondary fonts: |Font=Lucida Console ||Font2=|MS ゴシック |FontChoice=CJK:2 | 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