ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: juh+ntg-context--- via ntg-context <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: Using alegreya typescript
Date: Wed, 6 Jul 2022 20:22:35 +0200	[thread overview]
Message-ID: <9c033fdd-85bb-a3ac-0fc7-e779aa6279de@freedom.nl> (raw)
In-Reply-To: <646faf0d-1973-813b-4fc9-9f3c5c5a8601@mailbox.org>

[-- Attachment #1: Type: text/plain, Size: 877 bytes --]


\usetypescriptfile[alegreya]

\usebodyfont[alegreya-light]
\usebodyfont[alegreya-medium]

\setupbodyfont[alegreya]

\setuplayout[tight]

\starttext
     \switchtobodyfont[alegreya-light]        \input tufte \par
     \switchtobodyfont[alegreya]              \input tufte \par
     \switchtobodyfont[alegreya-medium]       \input tufte \par
     \switchtobodyfont[alegreya-light,sans]   \input tufte \par
     \switchtobodyfont[alegreya,sans]         \input tufte \par
     \switchtobodyfont[alegreya-medium,sans]  \input tufte \par
\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: type-imp-alegreya.mkiv --]
[-- Type: text/plain, Size: 3948 bytes --]

%D \module
%D   [       file=type-imp-dejavu,
%D        version=2010.06.21,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Alegreya fonts,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D This is cleaned up ersion of thwe one on the wiki. The font can be fetched from:
%D
%D \type {https://www.huertatipografica.com/en/fonts/alegreya-ht-pro}

% \usetypescriptfile[alegreya]
%
% \usebodyfont[alegreya-light]
% \usebodyfont[alegreya-medium]
%
% \setupbodyfont[alegreya]
%
% \setuplayout[tight]
%
% \starttext
%     \switchtobodyfont[alegreya-light]        \input tufte \par
%     \switchtobodyfont[alegreya]              \input tufte \par
%     \switchtobodyfont[alegreya-medium]       \input tufte \par
%     \switchtobodyfont[alegreya-light,sans]   \input tufte \par
%     \switchtobodyfont[alegreya,sans]         \input tufte \par
%     \switchtobodyfont[alegreya-medium,sans]  \input tufte \par
% \stoptext

\starttypescriptcollection[alegreya]

\usetypescriptfile
  [imp-gentium]

\definefontfallback
  [alegreyagentium-fallback]
  [name:gentium]
  [greekandcoptic,greekextended]

\starttypescript [serif] [alegreya-serif,alegreya-light-serif,alegreya-medium-serif] [name]
    \setups[font:fallback:serif]
    \definefontsynonym[Serif]           [name:alegreyaregular]    [features=default,fallbacks=alegreya-gentium-fallback]
    \definefontsynonym[SerifItalic]     [name:alegreyaitalic]     [features=default,fallbacks=alegreya-gentium-fallback]
    \definefontsynonym[SerifBold]       [name:alegreyabold]       [features=default,fallbacks=alegreya-gentium-fallback]
    \definefontsynonym[SerifBoldItalic] [name:alegreyabolditalic] [features=default,fallbacks=alegreya-gentium-fallback]
\stoptypescript

\starttypescript [sans] [alegreya-sans] [name]
    \setups[font:fallback:sans]
    \definefontsynonym [Sans]           [name:alegreyasansregular]    [features=default]
    \definefontsynonym [SansItalic]     [name:alegreyasansitalic]     [features=default]
    \definefontsynonym [SansBold]       [name:alegreyasansbold]       [features=default]
    \definefontsynonym [SansBoldItalic] [name:alegreyasansbolditalic] [features=default]
\stoptypescript

\starttypescript [sans] [alegreya-light-sans] [name]
    \setups[font:fallback:sans]
    \definefontsynonym [Sans]           [name:alegreyasanslight]        [features=default]
    \definefontsynonym [SansItalic]     [name:alegreyasanslightitalic]  [features=default]
    \definefontsynonym [SansBold]       [name:alegreyasansmedium]       [features=default]
    \definefontsynonym [SansBoldItalic] [name:alegreyasansmediumitalic] [features=default]
\stoptypescript

\starttypescript [sans] [alegreya-medium-sans] [name]
    \setups[font:fallback:sans]
    \definefontsynonym [Sans]           [name:alegreyasansmedium]          [features=default]
    \definefontsynonym [SansItalic]     [name:alegreyasansmediumitalic]    [features=default]
    \definefontsynonym [SansBold]       [name:alegreyasansextrabold]       [features=default]
    \definefontsynonym [SansBoldItalic] [name:alegreyasansextrabolditalic] [features=default]
\stoptypescript

\starttypescript [alegreya,alegreya-light,alegreya-medium]
    \definefallbackfamily[alegreya][serif][gentium][range={greekandcoptic,greekextended}]
    \definetypeface [\typescriptone] [rm] [serif] [\typescriptone-serif] [default]
    \definetypeface [\typescriptone] [ss] [sans]  [\typescriptone-sans]  [default]
    \definetypeface [\typescriptone] [tt] [mono]  [modern]               [default]
    \definetypeface [\typescriptone] [mm] [math]  [default]              [default]
\stoptypescript

\stoptypescriptcollection

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

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

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

      reply	other threads:[~2022-07-06 18:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-04 15:34 juh+ntg-context--- via ntg-context
2022-07-06 18:22 ` Hans Hagen via ntg-context [this message]

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=9c033fdd-85bb-a3ac-0fc7-e779aa6279de@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.nl \
    /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).