X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50126385701C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1696711370; bh=l5boLkTGRSXpuumsssSvloNMAEWNzkdJMe0Tw+MWpOA=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=EPAHq8HwBJEyg/AcQ2jI86+qXJ2WzII7saNWorJiJ1bBItfZE/6RaOt48Hht6EQx8 6SqmSJ9P7rtSnkB3Z1URNQ+c6QmKJn5OUCzi85PVAG3nLK5E0lnZXbhjUHNyze/0rx XlzpGa8yyIlw3zgXPkpVRbfmsPlbfWugoGBLJSgQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8736F3858C53 X-Authority-Analysis: v=2.4 cv=MPxzJeVl c=1 sm=1 tr=0 ts=6521c2b9 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=iFoIdE3EAAAA:8 a=IBOjiVUoAAAA:8 a=xvIxXHgrkB8nh5q04FkA:9 a=QRzjZtwMIBQA:10 a=QEXdDO2ut3YA:10 a=9O9fCKt3mBFxNytqwrI8:22 Message-ID: <5cc4d38b-6980-4607-9873-29980d2007ca@Shaw.ca> Date: Sat, 7 Oct 2023 14:42:33 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: half- and full-width CJK characters Content-Language: en-CA 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> Organization: Inglis In-Reply-To: <4611b895-5f60-47f8-bd85-6009a70e923e@towo.net> X-CMAE-Envelope: MS4xfB0mXDlda5TTEs9sJdyn+Er6jkWHt8dq01uT0IJIGI75BRBLYk5pymalnGcsa/ff2lskQ5RY8Qyq4C6nRe/nFnr75a0Eu9J47Sj/ImBfWhzpdldvwn3z xHSQgcnNZK9wTZAH2rWslEnsYSnuyoqnWInjcZeTmXaE2uu+OjZ0jxJ0YqG4eIPYam6Fqh4DAnKSbw== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, 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-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: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis 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 397KgpG9020190 On 2023-10-07 08:27, 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 Package fontconfig utilities fc-list, fc-match, fc-query are your friends here to match by character set ranges or language codes and give you the file or font names: here I have installed all non-MS Windows fonts as symlinks under /usr/share/fonts/windows/ e.g. $ fc-list :charset=ac00-d7a3 | sort -t: -k2 -u | sort /usr/share/fonts/microsoft/malgun.ttf: Malgun Gothic,맑은 고딕:style=Regular /usr/share/fonts/microsoft/malgunbd.ttf: Malgun Gothic,맑은 고딕:style=Bold /usr/share/fonts/microsoft/malgunsl.ttf: Malgun Gothic,맑은 고딕,Malgun Gothic Semilight,맑은 고딕 Semilight:style=Semilight,Regular /usr/share/fonts/opentype/unifont/unifont_jp.otf: Unifont\-JP:style=Regular /usr/share/fonts/windows/code2000.ttf: Code2000:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normalan,Normálne,Navadno,thường,Arrunta /usr/share/fonts/windows/LastResort-Regular.ttf: Last Resort:style=Regular /usr/share/fonts/windows/NanumGothic_Coding.ttf: NanumGothic_Coding,나눔고딕_코딩:style=Regular /usr/share/fonts/windows/NanumGothic_Coding_Bold.ttf: NanumGothic_Coding,나눔고딕_코딩:style=Bold /usr/share/fonts/windows/NanumGothicCoding-Bold.ttf: NanumGothicCoding:style=Bold /usr/share/fonts/windows/NanumGothicCoding-Regular.ttf: NanumGothicCoding:style=Regular /usr/share/fonts/windows/UnicodeBMPFallback.ttf: Unicode BMP Fallback SIL:style=Regular /usr/share/fonts/windows/unifont.otf: Unifont:style=Regular /usr/share/fonts/windows/unifont_sample-12.1.03.ttf: Unifont Sample:style=Medium $ fc-list :lang=ko | sort -t: -k2 -u | sort /usr/share/fonts/microsoft/malgun.ttf: Malgun Gothic,맑은 고딕:style=Regular /usr/share/fonts/microsoft/malgunbd.ttf: Malgun Gothic,맑은 고딕:style=Bold /usr/share/fonts/microsoft/malgunsl.ttf: Malgun Gothic,맑은 고딕,Malgun Gothic Semilight,맑은 고딕 Semilight:style=Semilight,Regular /usr/share/fonts/opentype/unifont/unifont_jp.otf: Unifont\-JP:style=Regular /usr/share/fonts/windows/code2000.ttf: Code2000:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normalan,Normálne,Navadno,thường,Arrunta /usr/share/fonts/windows/LastResort-Regular.ttf: Last Resort:style=Regular /usr/share/fonts/windows/NanumGothic_Coding.ttf: NanumGothic_Coding,나눔고딕_코딩:style=Regular /usr/share/fonts/windows/NanumGothic_Coding_Bold.ttf: NanumGothic_Coding,나눔고딕_코딩:style=Bold /usr/share/fonts/windows/NanumGothicCoding-Bold.ttf: NanumGothicCoding:style=Bold /usr/share/fonts/windows/NanumGothicCoding-Regular.ttf: NanumGothicCoding:style=Regular /usr/share/fonts/windows/UnicodeBMPFallback.ttf: Unicode BMP Fallback SIL:style=Regular /usr/share/fonts/windows/unifont.otf: Unifont:style=Regular /usr/share/fonts/windows/unifont_sample-12.1.03.ttf: Unifont Sample:style=Medium -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- 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