From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105041 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jon Wong Newsgroups: gmane.comp.tex.context Subject: Re: Loading OTF fonts? Date: Thu, 12 Sep 2019 19:11:43 +0800 Message-ID: References: <60990122-7BA8-4879-A4F4-44863057456F@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: multipart/mixed; boundary="===============7701603846792088906==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="136373"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 12 13:12:07 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i8N1D-000ZNu-Pi for gctc-ntg-context-518@m.gmane.org; Thu, 12 Sep 2019 13:12:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 42F26160D10; Thu, 12 Sep 2019 13:11:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id COU_47pazZsO; Thu, 12 Sep 2019 13:11:55 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 630AD160D13; Thu, 12 Sep 2019 13:11:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6A2B7160D10 for ; Thu, 12 Sep 2019 13:11:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gAY1J6-1Ptvk for ; Thu, 12 Sep 2019 13:11:52 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.215.181; helo=mail-pg1-f181.google.com; envelope-from=jhannwong@gmail.com; receiver= Original-Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 61523160D0F for ; Thu, 12 Sep 2019 13:11:52 +0200 (CEST) Original-Received: by mail-pg1-f181.google.com with SMTP id i18so13296009pgl.11 for ; Thu, 12 Sep 2019 04:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=HQus25fuMOmxRN31Msg8WuG+oMhGc0eq3bxSfyc/f3Q=; b=XLxtpnwAhI/Q/6cKJOHVM7wgj+aFy/3LSmj7FwcxwGRmk3V4WQrpoKf/fJI4Sa+EJh v265JIEEtoRyx554QA2NUfQJanhsVmguiFNRn+/vLTO/Y1I3KYYjktvzaxP7WRoGaLXw /Evu4Z+tReoYIttf4cxoIwDemKO0nHwfKKper9QmV5julnACNelirGY09ROKCoWy5Ugp rMLiqq/sfOR050E2yeaT0ombwD8fI29qzQX/cnUClwK0mrO7UzIADBzlgj0kQucAM5ps QBf854UKYrRsoTpJo5cCk2Nlqv+pfRVoh2x2qF56rSB55S6musOoMHvpSyEHOVgtbhLI aNoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=HQus25fuMOmxRN31Msg8WuG+oMhGc0eq3bxSfyc/f3Q=; b=j3ZfV0rUZvczG6OYj0gxbXip4waQsBtFwtwGdbD51hmjZcdHl/nkMLkLdyKMp0M9aC 1hqEROlt3rxZ/cGRoURtE448qyPqIX0UgHnaRMEmqRWpLrtS7/QC8+MdvWKtA0trIig0 /7a/6QFYjYCk3Tmn4fHqm/md36gGoEmCeWyKdHd/uhQLNldYXvc+hnvEde/MSSVgVCVN 1VaHoGq8KUMC9D2K7CF87izAWSgPXt3de97oWpfLauMXRFQgFSPrTu/Lg0iGioeAugL7 Qz0bl4PSS+yoIQYbDvuEVetUPIl0h2PAPh+XFVd7Za4yV0J99hYMKEQbNp77q9l6fbwU R8Ag== X-Gm-Message-State: APjAAAWpBt9cNhXcYcEq0sKk/XnN+45DsF/vR0veNXnwKAsT/LB2B7XQ pu7CSUEhCJyI4wB3Z08mTJi1MRI7bS4= X-Google-Smtp-Source: APXvYqxUqJjJY5wTIfxXANU53kLH15WfkJ5E6bA9XVTUAAt1bfyJBl+tUhJ8v4giXDeQrJlM1Ev7VQ== X-Received: by 2002:a63:788d:: with SMTP id t135mr5573304pgc.42.1568286710322; Thu, 12 Sep 2019 04:11:50 -0700 (PDT) Original-Received: from [192.168.0.182] ([202.133.194.192]) by smtp.gmail.com with ESMTPSA id b20sm29543000pff.158.2019.09.12.04.11.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Sep 2019 04:11:49 -0700 (PDT) In-Reply-To: <60990122-7BA8-4879-A4F4-44863057456F@gmail.com> X-Mailer: Apple Mail (2.3445.104.11) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105041 Archived-At: --===============7701603846792088906== Content-Type: multipart/alternative; boundary="Apple-Mail=_BBC5503F-7848-4E8F-8512-28CD33AE3D1A" --Apple-Mail=_BBC5503F-7848-4E8F-8512-28CD33AE3D1A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi all, Oops. I think I=E2=80=99m failing at understanding font lookup folder. = Maybe I need pointers on OSFONTDIR? Specifying the full path works. Regards Jon > On Sep 12, 2019, at 6:42 PM, Jon Wong wrote: >=20 > Hi all, >=20 > I tried following this tex.sx answer: = https://tex.stackexchange.com/questions/453143/noto-cjk-font-not-usable-wi= th-context = >=20 > Can someone give me an explanation of what I did wrong? Hit me with = all the technical concepts. I=E2=80=99m competent with fontspec on = XeTeX. >=20 > Step 1: Copy NotoSerifCJKsc-Regular.otf to = ~/context/tex/texmf-local/fonts >=20 > Step 2: Run `mtxrun --script font --convert = NotoSerifCJKsc-Regular.otf' >=20 > Step 3: Run `mtxrun =E2=80=94script fonts --reload=E2=80=99 >=20 > Step 4: Run `context test.tex=E2=80=99 >=20 > The error: >=20 > fonts > defining > unknown font 'NotoSerifCJKsc-Regular', = loading aborted >=20 > Regards > Jon >=20 --Apple-Mail=_BBC5503F-7848-4E8F-8512-28CD33AE3D1A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = all,

Oops. I think = I=E2=80=99m failing at understanding font lookup folder. Maybe I need = pointers on OSFONTDIR?

Specifying the full path works.

Regards
Jon


On Sep = 12, 2019, at 6:42 PM, Jon Wong <jhannwong@gmail.com> wrote:

Hi all,


Can someone give me an explanation of what I did wrong? Hit = me with all the technical concepts. I=E2=80=99m competent with fontspec = on XeTeX.

Step = 1: Copy NotoSerifCJKsc-Regular.otf to = ~/context/tex/texmf-local/fonts

Step 2: Run `mtxrun --script font = --convert NotoSerifCJKsc-Regular.otf'

Step 3: Run `mtxrun =E2=80=94script = fonts --reload=E2=80=99

Step 4: Run `context test.tex=E2=80=99
The error:

fonts         =   > defining > unknown font 'NotoSerifCJKsc-Regular', loading = aborted

Regards
Jon


= --Apple-Mail=_BBC5503F-7848-4E8F-8512-28CD33AE3D1A-- --===============7701603846792088906== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============7701603846792088906==--