ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mattias Märka via ntg-context" <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Mattias Märka" <mattias@marka.ee>
Subject: Re: Best way to access casul fonts
Date: Mon, 30 Jan 2023 17:24:27 +0000	[thread overview]
Message-ID: <taaiUYq4Eqpb8GS7WHq2Suehr4Ke6QX2W3JSMnFLVuGjyofG17qiJef5s7Y2tuc-I0dnzklwcQLLmLC7bZ6PPogrgZytI8A7DhztCs2494A=@marka.ee> (raw)
In-Reply-To: <e54824b1-a5db-3e8f-cb8d-c9e9adba5b55@gmx.es>

Hi

Will do.

\definefontstyle is still bugging me. I gather from previous threads that it should be possible to define a new font style for casual and use that via a font switch, but I cannot get this to work. I'm not sure this is still possible.
The threads I'm referring to:
https://www.mail-archive.com/ntg-context@ntg.nl/msg00039.html
https://www.mail-archive.com/ntg-context@ntg.nl/msg39849.html
https://www.mail-archive.com/ntg-context@ntg.nl/msg84188.html
I might start a separate thread and ask whether \definefontstyle still works.

I also experimented with defining my own typescripts for Lucida so that casual and fax (and all the other various Lucida fonts, really) are easily accessible.

Something like:

\starttypescript[serif][lucbr]
  \definefontsynonym[Serif][name:LucidaBright]
  \definefontsynonym[SerifItalic][name:LucidaBright-Italic]
  \definefontsynonym[SerifBold][name:LucidaBright-Demi]
  \definefontsynonym[SerifBoldItalic][name:LucidaBright-DemiItalic]
  \definefontsynonym[SerifSlanted][name:LucidaBright-Slanted]
  \definefontsynonym[SerifCaps][name:LucidaBrightSmallcaps]
  \definefontsynonym[SerifBoldCaps][name:LucidaBrightSmallCaps-Demi]
\stoptypescript

\starttypescript[serif][lucfax]
  \definefontsynonym[Serif][name:LucidaFax]
  \definefontsynonym[SerifItalic][name:LucidaFax-Italic]
  \definefontsynonym[SerifBold][name:LucidaFax-Demi]
  \definefontsynonym[SerifBoldItalic][name:LucidaFax-DemiItalic]
\stoptypescript

\starttypescript[sans][lucss]
  \definefontsynonym[Sans][name:LucidaSans]
  \definefontsynonym[SansItalic][name:LucidaSans-Italic]
  \definefontsynonym[SansBold][name:LucidaSans-Demi]
  \definefontsynonym[SansBoldItalic][name:LucidaSans-DemiItalic]
\stoptypescript

\starttypescript[mono][lucbr,luctt]
  \definefontsynonym[Mono][name:LucidaTypewriter]
  \definefontsynonym[MonoItalic][name:LucidaTypweriterOblique]
  \definefontsynonym[MonoBold][name:LucidaTypewriterBold]
  \definefontsynonym[MonoBoldItalic][name:LucidaTypweriterBoldOblique]
\stoptypescript

\starttypescript[mono][lucss,lucsstt]
  \definefontsynonym[Mono][name:LucidaSansTypewriter]
  \definefontsynonym[MonoItalic][name:LucidaSansTypweriterOblique]
  \definefontsynonym[MonoBold][name:LucidaSansTypewriterBold]
  \definefontsynonym[MonoBoldItalic][name:LucidaSansTypweriterBoldOblique]
\stoptypescript

\starttypescript[calligraphy][lucbr,luccg]
  \definefontsynonym[Calligraphy][name:LucidaCalligraphy-Italic]
\stoptypescript

\starttypescript[handwriting][lucbr,luchw]
  \definefontsynonym[Handwriting][name:LucidaHandwriting-Italic]
\stoptypescript

\starttypescript[serif][lucbl]
  \definefontsynonym[Serif][name:LucidaBlackletter]
\stoptypescript

\starttypescript[serif][luccas]
  \definefontsynonym[Serif][name:LucidaCasual]
  \definefontsynonym[SerifItalic][name:LucidaCasual-Italic]
\stoptypescript

\starttypescript[lucbr]
  \definetypeface[lucbr][rm][serif][lucbr][default][features=default]
  \definetypeface[lucbr][mm][math][lucida][default]
  \definetypeface[lucbr][tt][mono][lucbr][default][features=default]
  \definetypeface[lucbr][cg][calligrpahy][default][features=default]
  \definetypeface[lucbr][hw][handwriting][default][features=default]
\stoptypescript

\starttypescript[lucfax]
  \definetypeface[lucfax][rm][serif][lucfax][default][features=default]
\stoptypescript

\starttypescript[lucss]
  \definetypeface[lucss][ss][sans][lucss][default][features=default]
  \definetypeface[lucss][tt][mono][lucss][default][features=default]
\stoptypescript

\starttypescript[luctt]
  \definetypeface[luctt][tt][mono][luctt][default][features=default]
\stoptypescript

\starttypescript[lucsstt]
  \definetypeface[lucsstt][tt][mono][lucsstt][default][features=default]
\stoptypescript

\starttypescript[luccg]
  \definetypeface[luccg][cg][calligraphy][luccg][default][features=default]
\stoptypescript

\starttypescript[luchw]
  \definetypeface[luchw][hw][handwriting][luchw][default][features=default]
\stoptypescript

\starttypescript[lucbl]
  \definetypeface[lucbl][rm][serif][lucbl][default][features=default]
\stoptypescript

\starttypescript[luccas]
  \definetypeface[luccas][rm][serif][luccas][default][features=default]
\stoptypescript

\starttypescript[luc]
  \definetypeface[luc][rm][serif][lucbr][default][features=default]
  \definetypeface[luc][mm][math][lucida][default]
  \definetypeface[luc][ss][sans][lucss][default][features=default]
  \definetypeface[luc][tt][mono][lucbr][default][features=default]
  \definetypeface[luc][cg][calligraphy][lucbr][default][features=default]
  \definetypeface[luc][hw][handwriting][lucbr][default][features=default]
\stoptypescript

\def\lucbr{\switchtobodyfont[lucbr]}
\def\lucfax{\switchtobodyfont[lucfax]}
\def\lucss{\switchtobodyfont[lucss]}
\def\luctt{\switchtobodyfont[luctt]}
\def\lucsstt{\switchtobodyfont[lucsstt]}
\def\luccg{\switchtobodyfont[luccg]}
\def\luchw{\switchtobodyfont[luchw]}
\def\lucbl{\switchtobodyfont[lucbl]}
\def\luccas{\switchtobodyfont[luccas]}

Would it make sense adding this to the wiki as well? I feel like what I'm doing is non-standard. I'm also repeating a lot of what's in the Lucida typescript file that comes with the distribution. There must be some easy way to monkey patch the existing type script file.

Mattias

------- Original Message -------
On Monday, January 30th, 2023 at 1:20 PM, Pablo Rodriguez via ntg-context <ntg-context@ntg.nl> wrote:


> 
> 
> 
> On 1/29/23 19:07, Mattias Märka via ntg-context wrote:
> 
> > Hi
> > 
> > This is probably the most reasonable solution.
> 
> 
> Hi Mattias,
> 
> would you be so kind to update
> https://wiki.contextgarden.net/Use_the_fonts_you_want to include this?
> 
> Many thanks for your help,
> 
> Pablo
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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-30 17:24 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
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 [this message]
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='taaiUYq4Eqpb8GS7WHq2Suehr4Ke6QX2W3JSMnFLVuGjyofG17qiJef5s7Y2tuc-I0dnzklwcQLLmLC7bZ6PPogrgZytI8A7DhztCs2494A=@marka.ee' \
    --to=ntg-context@ntg.nl \
    --cc=mattias@marka.ee \
    /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).