From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116902 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Garulfo via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Best way to access casul fonts Date: Mon, 23 Jan 2023 19:42:45 +0100 Message-ID: References: <72YWQuyuBJVIGa193iGVS0c7ZXUznHa_T90guFEpjLwkGMgRpaKy9zT5inOuIeCFs79jwQkIHuNlKyZgpN3zs1BEN2t9cJH3RHc_oD5xh9g=@marka.ee> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4807107644400813274==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4640"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Garulfo To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 23 19:51:30 2023 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pK1uj-0000wc-VE for gctc-ntg-context-518@m.gmane-mx.org; Mon, 23 Jan 2023 19:51:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 23E3510E1; Mon, 23 Jan 2023 19:51:04 +0100 (CET) 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 X8IZlz5v_9wB; Mon, 23 Jan 2023 19:51:02 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 97CF61115; Mon, 23 Jan 2023 19:51:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2165D10EA for ; Mon, 23 Jan 2023 19:51:01 +0100 (CET) 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 PX9gUpGzPrhs for ; Mon, 23 Jan 2023 19:51:00 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=82.64.235.169; helo=azules.eu; envelope-from=garulfo@azules.eu; receiver= X-Greylist: delayed 486 seconds by postgrey-1.36 at zapf.ntg.nl; Mon, 23 Jan 2023 19:50:59 CET Original-Received: from azules.eu (82-64-235-169.subs.proxad.net [82.64.235.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F30FD10E1 for ; Mon, 23 Jan 2023 19:50:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=azules.eu; s=mailkey; t=1674499366; bh=1E34xBKqShsrfPhVKS/FhCtI9InrxYMMxlgpruTkQPc=; h=Date:To:References:Subject:From:In-Reply-To; b=GpDBytScc/+KlzVGS2XKiaRA26he7pB4uJwcHkPm8PK5O2Vvls6fQEX2kq5NBDCoJ 55nt9+iR8iSIAtYyl6RJBDZRM74UA/07EPWPiLLVA3KOxKr0njftDJLoFAaEBXgpmt L6r3I+tP1UpYgCqSslYNmG9AhzrsUXR68sKAY5Mk= Content-Language: fr In-Reply-To: <72YWQuyuBJVIGa193iGVS0c7ZXUznHa_T90guFEpjLwkGMgRpaKy9zT5inOuIeCFs79jwQkIHuNlKyZgpN3zs1BEN2t9cJH3RHc_oD5xh9g=@marka.ee> X-MailScanner-ID: 40568D91042.A042E X-MailScanner: Found to be clean X-MailScanner-From: garulfo@azules.eu 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.io gmane.comp.tex.context:116902 Archived-At: This is a multi-part message in MIME format. --===============4807107644400813274== Content-Type: multipart/alternative; boundary="------------aMjLhtxKBfBcxP23kIPpgFNd" Content-Language: fr This is a multi-part message in MIME format. --------------aMjLhtxKBfBcxP23kIPpgFNd Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, Following the instruction from : https://wiki.contextgarden.net/Use_the_fonts_you_want mtxrun --script font --list --file -pattern=*casual* gives : familyname     weight   style    width    variant   fontname       filename                                subfont   fontweight lucidacasual   normal   normal   normal   normal    lucidacasual   /home/xxxx/.fonts/LucidaCasual.ttf Then the following code should work : \starttypescript [myserif]   \definefontsynonym[LucidaCasual-Regular]    [file:LucidaCasual.ttf] \stoptypescript \starttypescript [myserif]   \setups[font:fallback:serif]   \definefontsynonym[Serif] [LucidaCasual-Regular] [features=default] \stoptypescript \starttypescript [myserif]   \definetypeface [myserif] [rm] [serif] [myserif]    [default] \stoptypescript \setupbodyfont[12pt] \starttext The quick brown fox jumps over the lazy dog \setupbodyfont[myserif] The quick brown fox jumps over the lazy dog \stoptext --------------aMjLhtxKBfBcxP23kIPpgFNd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi,

Following the instruction from : https://wiki.contextgarden.net/Use_the_fonts_you_want

mtxrun --script font --list --file -pattern=*casual*


gives :

familyname     weight   style    width    variant   fontname       filename                                subfont   fontweight

lucidacasual   normal   normal   normal   normal    lucidacasual   /home/xxxx/.fonts/LucidaCasual.ttf



Then the following code should work :

\starttypescript [myserif]
  \definefontsynonym[LucidaCasual-Regular]    [file:LucidaCasual.ttf]
\stoptypescript
\starttypescript [myserif]
  \setups[font:fallback:serif]
  \definefontsynonym[Serif] [LucidaCasual-Regular] [features=default]
\stoptypescript
\starttypescript [myserif]
  \definetypeface [myserif] [rm] [serif] [myserif]    [default]
\stoptypescript
\setupbodyfont[12pt]
\starttext
The quick brown fox jumps over the lazy dog
\setupbodyfont[myserif]
The quick brown fox jumps over the lazy dog
\stoptext


--------------aMjLhtxKBfBcxP23kIPpgFNd-- --===============4807107644400813274== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4807107644400813274==--