From: Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: typescript
Date: Mon, 15 Mar 2010 22:46:26 +0100 [thread overview]
Message-ID: <20100315214626.GA8570@localhost.localdomain> (raw)
In-Reply-To: <54d7f5601003151432m752aec33lce75f5ca650dcde7@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3464 bytes --]
On 2010-03-15 <16:32:23>, Michael Saunders wrote:
> I am trying to get a minimal working example so that I have something
> to tinker with.
>
> C:\contextminimal\tex\texmf-local\type-garamondprem.tex contains only:
>
> \starttypescript [serif] [garamondprem]
> \definetypeface [garamondprem] [rm] [serif]
> [name:garamondpremrpromed] [default]
> \stoptypescript
>
> (garamondpremrpromed is a name returned by mtxrun --script fonts
> --list --all --pattern=*Garamond*.)
>
> I run:
> luatools --generate
> and texmf-local is found.
>
> In my preamble:
> \usetypescriptfile [type-garamondprem]
> \usetypescript [garamondprem]
> \setupbodyfont [garamondprem,12pt]
>
> When I run Context, the result contains only Latin Modern.
Hi,
this is what I am working with. I'm not sure every detail is needed,
especially concerning the “script=latn” part as I'm successfully using
non-latin scripts as well. If this does not work you should have a look
at your font path. If context knows where to find your fonts but the
following fails then I suggest you adapt the [name:XXX] fields in the
typescript, you need the “postscript name” value from otfinfo -i there.
HTH,
Philipp
---8<--------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Font setup %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\starttypescript [serif] [garamond]
\setups [font:fallback:serif]
\definefontsynonym [Serif] [name:GaramondPremrPro] [features=default]
\definefontsynonym [SerifItalic] [name:GaramondPremrPro-It] [features=default]
\definefontsynonym [SerifBold] [name:GaramondPremrPro-Smbd] [features=default]
\definefontsynonym [SerifBoldItalic] [name:GaramondPremrPro-SmbdIt] [features=default]
\stoptypescript
\def\sc{\setfontfeature{smallcaps}}
\def\os{\setfontfeature{oldstyle}}
\definefontfeature [default][default]
[protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes,fina=yes,calt=yes]
%\definefontfeature [oldstyle][default]
%[protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes]
%\definefontfeature [smallcaps][default]
%[protrusion=quality,expansion=quality,mode=node,script=latn,smcp=yes]
\usetypescript [serif] [hz] [highquality]
\setupalign [hanging,hz]
\definetypeface [garamond] [rm] [serif] [garamond] [default] [encoding=ec]
\setupbodyfont[garamond,12pt]
\setupbodyfontenvironment[default][em=italic]
---8<--------------------------------------------------------------------------
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-03-15 21:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-15 21:32 typescript Michael Saunders
2010-03-15 21:35 ` typescript Aditya Mahajan
2010-03-15 21:42 ` typescript Hans Hagen
2010-03-15 21:46 ` Philipp Gesang [this message]
2010-03-15 21:55 ` typescript Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2008-04-19 11:06 typescript Antoine Junod
2008-04-19 13:13 ` typescript Hans Hagen
2008-04-19 16:39 ` typescript Aditya Mahajan
2008-04-19 17:12 ` typescript Henning Hraban Ramm
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=20100315214626.GA8570@localhost.localdomain \
--to=pgesang@ix.urz.uni-heidelberg.de \
--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).