ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: massifr@fastwebnet.it
To: ntg-context@ntg.nl
Subject: Garamond Premier Pro font goodies file
Date: Thu, 28 Apr 2016 10:58:58 +0200	[thread overview]
Message-ID: <1817242.h9tBJeq2pc@max> (raw)

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

Hello list,
I'm using the Adobe Garamond Premier Pro font.
It has 4 optical sizes: Caption, Normal, Subhead, Display.
I tried to modify ebgaramond.lfg to adapt it to Garamond Premier Pro.
You find it as an attachment.

I don't know how to use that goodies file to see the different optical sizes
in a document. I've tried this:

\loadfontgoodies[GaramondPremierPro]

\definefontfamily [default] [rm] [tf=name:GaramondPremierPro-Regular,
                                  it=name:GaramondPremierPro-Italic]

\setupbodyfont[default,12pt]

\dostepwiserecurse {6} {22} {1} {
  \definebodyfontenvironment[default][#1pt][text=#1pt,em=italic]
}

\starttext

    \dostepwiserecurse {6} {22} {1} {
        \switchtobodyfont[#1pt]
        \purefontname\font: \input tufte
        \blank
    }

\stoptext

but it does not work. Any help?
Thanks in advance, Massi

To Hans: if you find it useful for Context, you can add and/or modify it
to the distribution. You can also change the author to yourself.

[-- Attachment #2: garamondpremierpro.lfg --]
[-- Type: text/plain, Size: 7281 bytes --]

return {
    name = "GaramondPremierPro",
    version = "1.00",
    comment = "Goodies that complement Garamond Premier Pro.",
    author = "MF",
    copyright = "ConTeXt development team",
    designsizes = {
        ["GaramondPremierPro-Regular"] = {
            ["6pt"]   = "file:GaramondPremrPro-Capt",
            ["7pt"]   = "file:GaramondPremrPro-Capt",
            ["8pt"]   = "file:GaramondPremrPro-Capt",
            ["8.5pt"] = "file:GaramondPremrPro",
            ["9pt"]   = "file:GaramondPremrPro",
            ["9.5pt"] = "file:GaramondPremrPro",
            ["10pt"]  = "file:GaramondPremrPro",
            ["11pt"]  = "file:GaramondPremrPro",
            ["12pt"]  = "file:GaramondPremrPro",
            ["12pt"]  = "file:GaramondPremrPro",
            ["14pt"]  = "file:GaramondPremrPro-Subh",
            ["21pt"]  = "file:GaramondPremrPro-Subh",
            ["22pt"]  = "file:GaramondPremrPro-Disp",
            default   = "file:GaramondPremrPro",
        },
        ["GaramondPremierPro-Italic"] = {
            ["6pt"]   = "file:GaramondPremrPro-ItCapt",
            ["7pt"]   = "file:GaramondPremrPro-ItCapt",
            ["8pt"]   = "file:GaramondPremrPro-ItCapt",
            ["8.5pt"] = "file:GaramondPremrPro-It",
            ["9pt"]   = "file:GaramondPremrPro-It",
            ["9.5pt"] = "file:GaramondPremrPro-It",
            ["10pt"]  = "file:GaramondPremrPro-It",
            ["11pt"]  = "file:GaramondPremrPro-It",
            ["12pt"]  = "file:GaramondPremrPro-It",
            ["12pt"]  = "file:GaramondPremrPro-It",
            ["14pt"]  = "file:GaramondPremrPro-ItSubh",
            ["21pt"]  = "file:GaramondPremrPro-ItSubh",
            ["22pt"]  = "file:GaramondPremrPro-ItDisp",
            default   = "file:GaramondPremrPro-It",
        },
        ["GaramondPremierPro-Bold"] = {
            ["6pt"]   = "file:GaramondPremrPro-BdCapt",
            ["7pt"]   = "file:GaramondPremrPro-BdCapt",
            ["8pt"]   = "file:GaramondPremrPro-BdCapt",
            ["8.5pt"] = "file:GaramondPremrPro-Bd",
            ["9pt"]   = "file:GaramondPremrPro-Bd",
            ["9.5pt"] = "file:GaramondPremrPro-Bd",
            ["10pt"]  = "file:GaramondPremrPro-Bd",
            ["11pt"]  = "file:GaramondPremrPro-Bd",
            ["12pt"]  = "file:GaramondPremrPro-Bd",
            ["12pt"]  = "file:GaramondPremrPro-Bd",
            ["14pt"]  = "file:GaramondPremrPro-BdSubh",
            ["21pt"]  = "file:GaramondPremrPro-BdSubh",
            ["22pt"]  = "file:GaramondPremrPro-BdDisp",
            default   = "file:GaramondPremrPro-Bd",
        },
        ["GaramondPremierPro-BoldItalic"] = {
            ["6pt"]   = "file:GaramondPremrPro-BdItCapt",
            ["7pt"]   = "file:GaramondPremrPro-BdItCapt",
            ["8pt"]   = "file:GaramondPremrPro-BdItCapt",
            ["8.5pt"] = "file:GaramondPremrPro-BdIt",
            ["9pt"]   = "file:GaramondPremrPro-BdIt",
            ["9.5pt"] = "file:GaramondPremrPro-BdIt",
            ["10pt"]  = "file:GaramondPremrPro-BdIt",
            ["11pt"]  = "file:GaramondPremrPro-BdIt",
            ["12pt"]  = "file:GaramondPremrPro-BdIt",
            ["12pt"]  = "file:GaramondPremrPro-BdIt",
            ["14pt"]  = "file:GaramondPremrPro-BdItSubh",
            ["21pt"]  = "file:GaramondPremrPro-BdItSubh",
            ["22pt"]  = "file:GaramondPremrPro-BdItDisp",
            default   = "file:GaramondPremrPro-BdIt",
        },
        ["GaramondPremierPro-Medium"] = {
            ["6pt"]   = "file:GaramondPremrPro-MedCapt",
            ["7pt"]   = "file:GaramondPremrPro-MedCapt",
            ["8pt"]   = "file:GaramondPremrPro-MedCapt",
            ["8.5pt"] = "file:GaramondPremrPro-Med",
            ["9pt"]   = "file:GaramondPremrPro-Med",
            ["9.5pt"] = "file:GaramondPremrPro-Med",
            ["10pt"]  = "file:GaramondPremrPro-Med",
            ["11pt"]  = "file:GaramondPremrPro-Med",
            ["12pt"]  = "file:GaramondPremrPro-Med",
            ["12pt"]  = "file:GaramondPremrPro-Med",
            ["14pt"]  = "file:GaramondPremrPro-MedSubh",
            ["21pt"]  = "file:GaramondPremrPro-MedSubh",
            ["22pt"]  = "file:GaramondPremrPro-MedDisp",
            default   = "file:GaramondPremrPro-Med",
        },
        ["GaramondPremierPro-MediumItalic"] = {
            ["6pt"]   = "file:GaramondPremrPro-MedItCapt",
            ["7pt"]   = "file:GaramondPremrPro-MedItCapt",
            ["8pt"]   = "file:GaramondPremrPro-MedItCapt",
            ["8.5pt"] = "file:GaramondPremrPro-MedIt",
            ["9pt"]   = "file:GaramondPremrPro-MedIt",
            ["9.5pt"] = "file:GaramondPremrPro-MedIt",
            ["10pt"]  = "file:GaramondPremrPro-MedIt",
            ["11pt"]  = "file:GaramondPremrPro-MedIt",
            ["12pt"]  = "file:GaramondPremrPro-MedIt",
            ["12pt"]  = "file:GaramondPremrPro-MedIt",
            ["14pt"]  = "file:GaramondPremrPro-MedItSubh",
            ["21pt"]  = "file:GaramondPremrPro-MedItSubh",
            ["22pt"]  = "file:GaramondPremrPro-MedItDisp",
            default   = "file:GaramondPremrPro-MedIt",
        },
        ["GaramondPremierPro-Semibold"] = {
            ["6pt"]   = "file:GaramondPremrPro-SmbdCapt",
            ["7pt"]   = "file:GaramondPremrPro-SmbdCapt",
            ["8pt"]   = "file:GaramondPremrPro-SmbdCapt",
            ["8.5pt"] = "file:GaramondPremrPro-Smbd",
            ["9pt"]   = "file:GaramondPremrPro-Smbd",
            ["9.5pt"] = "file:GaramondPremrPro-Smbd",
            ["10pt"]  = "file:GaramondPremrPro-Smbd",
            ["11pt"]  = "file:GaramondPremrPro-Smbd",
            ["12pt"]  = "file:GaramondPremrPro-Smbd",
            ["12pt"]  = "file:GaramondPremrPro-Smbd",
            ["14pt"]  = "file:GaramondPremrPro-SmbdSubh",
            ["21pt"]  = "file:GaramondPremrPro-SmbdSubh",
            ["22pt"]  = "file:GaramondPremrPro-SmbdDisp",
            default   = "file:GaramondPremrPro-Smbd",
        },
        ["GaramondPremierPro-SemiboldItalic"] = {
            ["6pt"]   = "file:GaramondPremrPro-SmbdItCapt",
            ["7pt"]   = "file:GaramondPremrPro-SmbdItCapt",
            ["8pt"]   = "file:GaramondPremrPro-SmbdItCapt",
            ["8.5pt"] = "file:GaramondPremrPro-SmbdIt",
            ["9pt"]   = "file:GaramondPremrPro-SmbdIt",
            ["9.5pt"] = "file:GaramondPremrPro-SmbdIt",
            ["10pt"]  = "file:GaramondPremrPro-SmbdIt",
            ["11pt"]  = "file:GaramondPremrPro-SmbdIt",
            ["12pt"]  = "file:GaramondPremrPro-SmbdIt",
            ["12pt"]  = "file:GaramondPremrPro-SmbdIt",
            ["14pt"]  = "file:GaramondPremrPro-SmbdItSubh",
            ["21pt"]  = "file:GaramondPremrPro-SmbdItSubh",
            ["22pt"]  = "file:GaramondPremrPro-SmbdItDisp",
            default   = "file:GaramondPremrPro-SmbdIt",
        },
        ["GaramondPremierPro-LightDisplay"] = {
            ["22pt"]   = "file:GaramondPremrPro-LtDisp",
            ["36pt"]   = "file:GaramondPremrPro-LtDisp",
            default   = "file:GaramondPremrPro-LtDisp",
        },
        ["GaramondPremierPro-LightDisplayItalic"] = {
            ["22pt"]   = "file:GaramondPremrPro-LtItDisp",
            ["36pt"]   = "file:GaramondPremrPro-LtItDisp",
            default   = "file:GaramondPremrPro-LtItDisp",
        },
    }
}



[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2016-04-28  8:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-28  8:58 massifr [this message]
2016-05-02 18:31 ` Wolfgang Schuster
2016-05-03 21:00   ` mf

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=1817242.h9tBJeq2pc@max \
    --to=massifr@fastwebnet.it \
    --cc=ntg-context@ntg.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).