Fwd: Typefaces for Chinese
Gabriel Ellsworth <[email protected]> Tue, 21 Jul 2026 10:50:00 +0200
| Newsgroups | gmane.comp.gnu.lilypond.general |
|---|---|
| Message-ID | <CAHavgtU49s2c8h89EG8ErEoLO-25tk=qz40iSP03taV4zuUk8g@mail.gmail.com> |
--000000000000136ced06571b1e37 Content-Type: multipart/alternative; boundary="000000000000136cec06571b1e35" --000000000000136cec06571b1e35 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am having trouble using Kaiti for Chinese text. Back in January I got it to work. For context, please see the below and https://lists.gnu.org/archive/html/lilypond-user/2026-01/threads.html#00295= . For some reason, the Kaiti font files have moved to another location on my machine since January. I am not sure why. I did not do anything to move them. Today I ran the following command in Terminal: find / -name "*Kaiti*" 2>/dev/null The .ttc results include: /System/Library/PrivateFrameworks/FontServices.framework/Versions/A/Resourc= es/Fonts/Subsets/Kaiti.ttc /System/Volumes/Update/mnt1/System/Library/PrivateFrameworks/FontServices.f= ramework/Versions/A/Resources/Fonts/Subsets/Kaiti.ttc /System/Volumes/Data/System/Library/PrivateFrameworks/FontServices.framewor= k/Versions/A/Resources/Fonts/Subsets/Kaiti.ttc But I am not able to add Kaiti to LilyPond. Please see the attached MWE. How can I get LilyPond to typeset text in Kaiti again? Gabriel ---------- Forwarded message --------- From: Gabriel Ellsworth Date: Wed, 28 Jan 2026 Subject: Re: Typefaces for Chinese To: Lilypond-User Mailing List <[email protected]> If those captions are text, you should be able to copy the lot in one drag > and paste them into Terminal, or an editor buffer. Thank you for the suggestion! In brief, this worked. I selected one icon in Font Book, then Command-A (to select all), then copied and pasted the selected content into Terminal. Most of my Chinese fonts, it turns out, live in this very obscure folder = =E2=80=A6 System/Library/AssetsV2/com_apple_MobileAsset_Font8/ =E2=80=A6 which I never would have found by searching within Finder. Only b= y =E2=80=9Cpasting the icons into Terminal=E2=80=9D was I able to ascertain t= he file paths. I went to LilyPond and added #(ly:font-config-add-font "/System/Library/AssetsV2/com_apple_MobileAsset_Font8/88d6cc32a907955efa1d0= 14207889413890573be.asset/AssetData/Kaiti.ttc") #(ly:font-config-display-fonts) and compiled my file. The log .txt output included some Kaiti results. So now \override LyricText.font-name =3D "Kaiti TC," is working! --000000000000136cec06571b1e35 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><span id=3D"gmail-docs-internal-guid-b6d0e6c4-7fff-f8= 98-e65f-d1abf6a15566"><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0= pt;margin-bottom:0pt"><span style=3D"font-size:12pt;font-family:Garamond,se= rif;color:rgb(0,0,0);background-color:transparent;font-variant:normal;verti= cal-align:baseline;white-space:pre-wrap">I am having trouble using Kaiti fo= r Chinese text.</span></p><br><p dir=3D"ltr" style=3D"line-height:1.38;marg= in-top:0pt;margin-bottom:0pt"><span style=3D"font-size:12pt;font-family:Gar= amond,serif;color:rgb(0,0,0);background-color:transparent;font-variant:norm= al;vertical-align:baseline;white-space:pre-wrap">Back in January I got it t= o work. For context, please see the below and</span></p><p dir=3D"ltr" styl= e=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href=3D"https://= lists.gnu.org/archive/html/lilypond-user/2026-01/threads.html#00295" style= =3D"text-decoration:none"><span style=3D"font-size:12pt;font-family:Garamon= d,serif;background-color:transparent;font-variant:normal;text-decoration:un= derline;vertical-align:baseline;white-space:pre-wrap">https://lists.gnu.org= /archive/html/lilypond-user/2026-01/threads.html#00295</span></a><span styl= e=3D"font-size:12pt;font-family:Garamond,serif;color:rgb(0,0,0);background-= color:transparent;font-variant:normal;vertical-align:baseline;white-space:p= re-wrap">.</span></p><br><p dir=3D"ltr" style=3D"line-height:1.38;margin-to= p:0pt;margin-bottom:0pt"><span style=3D"font-size:12pt;font-family:Garamond= ,serif;color:rgb(0,0,0);background-color:transparent;font-variant:normal;ve= rtical-align:baseline;white-space:pre-wrap">For some reason, the Kaiti font= files have moved to another location on my machine since January. I am not= sure why. I did not do anything to move them.</span></p><br><p dir=3D"ltr"= style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D= "font-size:12pt;font-family:Garamond,serif;color:rgb(0,0,0);background-colo= r:transparent;font-variant:normal;vertical-align:baseline;white-space:pre-w= rap">Today I ran the following command in Terminal:</span></p><br><p dir=3D= "ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span sty= le=3D"color:rgb(0,0,0);background-color:transparent;font-variant:normal;ver= tical-align:baseline;white-space:pre-wrap"><font face=3D"monospace" style= =3D"">find / -name "*Kaiti*" 2>/dev/null</font></span></p><br>= <p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt">= <span style=3D"font-size:12pt;font-family:Garamond,serif;color:rgb(0,0,0);b= ackground-color:transparent;font-variant:normal;vertical-align:baseline;whi= te-space:pre-wrap">The .ttc results include:</span></p><p dir=3D"ltr" style= =3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"color= :rgb(0,0,0);background-color:transparent;font-variant:normal;vertical-align= :baseline;white-space:pre-wrap"><font face=3D"monospace" style=3D"">/System= /Library/PrivateFrameworks/FontServices.framework/Versions/A/Resources/Font= s/Subsets/Kaiti.ttc</font></span></p><p dir=3D"ltr" style=3D"line-height:1.= 38;margin-top:0pt;margin-bottom:0pt"><span style=3D"color:rgb(0,0,0);backgr= ound-color:transparent;font-variant:normal;vertical-align:baseline;white-sp= ace:pre-wrap"><font face=3D"monospace" style=3D""><br></font></span></p><p = dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><sp= an style=3D"color:rgb(0,0,0);background-color:transparent;font-variant:norm= al;vertical-align:baseline;white-space:pre-wrap"><font face=3D"monospace">/= System/Volumes/Update/mnt1/System/Library/PrivateFrameworks/FontServices.fr= amework/Versions/A/Resources/Fonts/Subsets/Kaiti.ttc</font></span></p><p di= r=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span= style=3D"color:rgb(0,0,0);background-color:transparent;font-variant:normal= ;vertical-align:baseline;white-space:pre-wrap"><font face=3D"monospace"><br= ></font></span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;= margin-bottom:0pt"><span style=3D"color:rgb(0,0,0);background-color:transpa= rent;font-variant:normal;vertical-align:baseline;white-space:pre-wrap"><fon= t face=3D"monospace">/System/Volumes/Data/System/Library/PrivateFrameworks/= FontServices.framework/Versions/A/Resources/Fonts/Subsets/Kaiti.ttc</font><= /span></p><br><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margi= n-bottom:0pt"><span style=3D"font-size:12pt;font-family:Garamond,serif;colo= r:rgb(0,0,0);background-color:transparent;font-variant:normal;vertical-alig= n:baseline;white-space:pre-wrap">But I am not able to add Kaiti to LilyPond= .</span></p><br><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;mar= gin-bottom:0pt"><span style=3D"font-size:12pt;font-family:Garamond,serif;co= lor:rgb(0,0,0);background-color:transparent;font-variant:normal;vertical-al= ign:baseline;white-space:pre-wrap">Please see the attached MWE.</span></p><= br><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0p= t"><span style=3D"font-size:12pt;font-family:Garamond,serif;color:rgb(0,0,0= );background-color:transparent;font-variant:normal;vertical-align:baseline;= white-space:pre-wrap">How can I get LilyPond to typeset text in Kaiti again= ?</span></p><br><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;mar= gin-bottom:0pt"><span style=3D"font-size:12pt;font-family:Garamond,serif;co= lor:rgb(0,0,0);background-color:transparent;font-variant:normal;vertical-al= ign:baseline;white-space:pre-wrap">Gabriel</span></p></span><br class=3D"gm= ail-Apple-interchange-newline"></div><br><div class=3D"gmail_quote gmail_qu= ote_container"><div dir=3D"ltr" class=3D"gmail_attr">---------- Forwarded m= essage ---------<br>From: <strong class=3D"gmail_sendername" dir=3D"auto">G= abriel Ellsworth</strong><br>Date: Wed, 28 Jan 2026<br>Subject: Re: Typefac= es for Chinese<br>To: Lilypond-User Mailing List <<a href=3D"mailto:lily= [email protected]">[email protected]</a>><br></div><br><br><div dir= =3D"ltr"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex">If those captions are text, you should be able to copy the lot i= n one<span class=3D"gmail_default" style=3D"font-family:georgia,serif">=C2= =A0</span>drag and paste them into Terminal, or an editor buffer.</blockquo= te><span id=3D"m_3529248512581421401gmail-docs-internal-guid-6be147b7-7fff-= efef-4f85-a1a90cd37321"><p dir=3D"ltr" style=3D"line-height:1.38;margin-top= :0pt;margin-bottom:0pt"><span style=3D"font-size:12pt;font-family:Garamond,= serif;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:no= rmal;font-variant-east-asian:normal;font-variant-alternates:normal;vertical= -align:baseline">Thank you for the suggestion! In brief, this worked. I sel= ected one icon in Font Book, then Command-A (to select all), then copied an= d pasted the selected content into Terminal.</span></p><br></span><div><spa= n id=3D"m_3529248512581421401gmail-docs-internal-guid-5752e26d-7fff-f760-1f= ae-dcae5eeddf39"><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;ma= rgin-bottom:0pt"><span style=3D"font-size:12pt;font-family:Garamond,serif;c= olor:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;fo= nt-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:= baseline">Most of my Chinese fonts, it turns out, live in this very obscure= folder =E2=80=A6</span></p><p dir=3D"ltr" style=3D"line-height:1.38;margin= -top:0pt;margin-bottom:0pt"><span style=3D"color:rgb(0,0,0);background-colo= r:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;fo= nt-variant-alternates:normal;vertical-align:baseline"><font face=3D"monospa= ce">System/Library/AssetsV2/com_apple_MobileAsset_Font8/</font></span></p><= p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><= span style=3D"font-size:12pt;font-family:Garamond,serif;color:rgb(0,0,0);ba= ckground-color:transparent;font-variant-numeric:normal;font-variant-east-as= ian:normal;font-variant-alternates:normal;vertical-align:baseline">=E2=80= =A6 which I never would have found by searching within Finder.</span><span = style=3D"background-color:transparent;color:rgb(0,0,0);font-family:Garamond= ,serif;font-size:12pt">=C2=A0Only by =E2=80=9Cpasting the icons into Termin= al=E2=80=9D was I able to ascertain the file paths.</span></p></span></div>= <div><br></div><div><span style=3D"background-color:transparent;color:rgb(0= ,0,0);font-family:Garamond,serif;font-size:12pt">I went to LilyPond and add= ed=C2=A0</span></div><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0p= t;margin-bottom:0pt"><span style=3D"color:rgb(0,0,0);background-color:trans= parent;font-variant-numeric:normal;font-variant-east-asian:normal;font-vari= ant-alternates:normal;vertical-align:baseline"><font face=3D"monospace" siz= e=3D"1">#(ly:font-config-add-font "/System/Library/AssetsV2/com_apple_= MobileAsset_Font8/88d6cc32a907955efa1d014207889413890573be.asset/AssetData/= Kaiti.ttc")</font></span></p><p dir=3D"ltr" style=3D"line-height:1.38;= margin-top:0pt;margin-bottom:0pt"><span style=3D"color:rgb(0,0,0);backgroun= d-color:transparent;font-variant-numeric:normal;font-variant-east-asian:nor= mal;font-variant-alternates:normal;vertical-align:baseline"><font face=3D"m= onospace" size=3D"1">#(ly:font-config-display-fonts)</font></span></p><br><= p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><= span style=3D"font-size:12pt;font-family:Garamond,serif;color:rgb(0,0,0);ba= ckground-color:transparent;font-variant-numeric:normal;font-variant-east-as= ian:normal;font-variant-alternates:normal;vertical-align:baseline">and comp= iled my file. The log </span><span style=3D"color:rgb(0,0,0);background-col= or:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;f= ont-variant-alternates:normal;vertical-align:baseline"><font face=3D"monosp= ace">.txt</font></span><span style=3D"font-size:12pt;font-family:Garamond,s= erif;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:nor= mal;font-variant-east-asian:normal;font-variant-alternates:normal;vertical-= align:baseline"> output included some Kaiti results.</span></p><br><p dir= =3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span = style=3D"font-size:12pt;font-family:Garamond,serif;color:rgb(0,0,0);backgro= und-color:transparent;font-variant-numeric:normal;font-variant-east-asian:n= ormal;font-variant-alternates:normal;vertical-align:baseline">So now</span>= </p><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0= pt"><span style=3D"color:rgb(0,0,0);background-color:transparent;font-varia= nt-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:no= rmal;vertical-align:baseline"><font face=3D"monospace">=C2=A0=C2=A0\overrid= e LyricText.font-name =3D "Kaiti TC,"</font></span></p><p dir=3D"= ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span styl= e=3D"font-size:12pt;font-family:Garamond,serif;color:rgb(0,0,0);background-= color:transparent;font-variant-numeric:normal;font-variant-east-asian:norma= l;font-variant-alternates:normal;vertical-align:baseline">is working!</span= ></p></div></div> </div></div> --000000000000136cec06571b1e35-- --000000000000136ced06571b1e37 Content-Type: application/x-frescobaldi-ly; name="Kaiti Trouble.ly" Content-Disposition: attachment; filename="Kaiti Trouble.ly" Content-Transfer-Encoding: base64 Content-ID: <f_mruerhaj0> X-Attachment-Id: f_mruerhaj0 JSUlICBTTklQUEVUIEJFR0lOUwoKXHZlcnNpb24gIjIuMjcuMSIKCiMobHk6Zm9udC1jb25maWct YWRkLWRpcmVjdG9yeSAiL1N5c3RlbS9MaWJyYXJ5L1ByaXZhdGVGcmFtZXdvcmtzL0ZvbnRTZXJ2 aWNlcy5mcmFtZXdvcmsvVmVyc2lvbnMvQS9SZXNvdXJjZXMvRm9udHMvIikKIyhseTpmb250LWNv bmZpZy1hZGQtZm9udCAiL1N5c3RlbS9MaWJyYXJ5L1ByaXZhdGVGcmFtZXdvcmtzL0ZvbnRTZXJ2 aWNlcy5mcmFtZXdvcmsvVmVyc2lvbnMv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kKICB9Cn0K CiUgUmU6IFxmb250LXNlbGVjdCBzZWUKJSBodHRwczovL2xpbHlwb25kLm9yZy9kb2MvdjIuMjcv RG9jdW1lbnRhdGlvbi9jaGFuZ2VzL3RleHQtYW5kLWZvbnQtaW1wcm92ZW1lbnRzCgolJSUgIFNO SVBQRVQgRU5EUw== --000000000000136ced06571b1e37--