ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Garulfo via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Garulfo <garulfo@azules.eu>
Subject: Re: Best way to access casul fonts
Date: Mon, 23 Jan 2023 19:42:45 +0100	[thread overview]
Message-ID: <d992d0ae-f87e-119e-4747-35ae25471e13@azules.eu> (raw)
In-Reply-To: <72YWQuyuBJVIGa193iGVS0c7ZXUznHa_T90guFEpjLwkGMgRpaKy9zT5inOuIeCFs79jwQkIHuNlKyZgpN3zs1BEN2t9cJH3RHc_oD5xh9g=@marka.ee>


[-- Attachment #1.1: Type: text/plain, Size: 1050 bytes --]

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



[-- Attachment #1.2: Type: text/html, Size: 2079 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-01-23 18:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-23 18:04 Mattias Märka via ntg-context
2023-01-23 18:42 ` Garulfo via ntg-context [this message]
2023-01-23 19:10 ` Pablo Rodriguez via ntg-context
2023-01-23 19:32   ` Mattias Märka via ntg-context
2023-01-24  7:41     ` Pablo Rodriguez via ntg-context
2023-01-29 18:07       ` Mattias Märka via ntg-context
2023-01-30 11:20         ` Pablo Rodriguez via ntg-context
2023-01-30 17:24           ` Mattias Märka via ntg-context
2023-01-30 17:49             ` Henning Hraban Ramm via ntg-context
2023-01-30 18:05               ` Mattias Märka via ntg-context
2023-01-30 20:10               ` Hans Hagen via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d992d0ae-f87e-119e-4747-35ae25471e13@azules.eu \
    --to=ntg-context@ntg.nl \
    --cc=garulfo@azules.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).