ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: Yatskovsky <yatskovsky@gmail.com>,
	 mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: font installation in luatex
Date: Wed, 08 Aug 2007 22:00:14 +0200	[thread overview]
Message-ID: <46BA20CE.2030307@wxs.nl> (raw)
In-Reply-To: <1429259438.20070808220819@gmail.com>

Vyatcheslav Yatskovsky wrote:
> Hello,
> 
> Have a problem with commercial font installation in luatex.
> 
> I have a collection of Adobe Caslon Pro font files:
> ACaslonPro-Bold.otf
> ACaslonPro-BoldItalic.otf
> ACaslonPro-Italic.otf
> ACaslonPro-Regular.otf
> ACaslonPro-Semibold.otf
> ACaslonPro-SemiboldItalic.otf
> 
> Arthur said that luatex cannot see system fonts (i.e. those installed in Windows), as XeTeX do, so I copied the font to texmf -- "...\tex\texmf\fonts\opentype\Adobe Caslon Pro" folder of mswincontext. (It was just my guess).
> 
> "luatools ACaslonPro-Regular.otf" shows the right path, so I assumed that luatex can find it.
> 
> I declared this font using rather naive approach (XeTeX-inspired):
> 
> \definetypeface
>   [myface][rm][Serif]
>   [{ACaslonPro-Regular}]
> \setupbodyfont
>   [myface, 14pt]

a typeface is made up of regular, bold, italic, bolditalic etc


> But this doesn't work. At the moment I'd be happy if can setup regular and italic, but have not an idea how to achieve it. Help me, please.

mkiv can see system fonts, that is, if you've set the OSFONTDIR 
variable, for instance

   set OSFONTDIR=c:/windows/fonts//

next you need to make a typescript, e.g. i just installed (commercial) 
franklin fonts:

\starttypescript [sans] [franklin]

     \definefontsynonym [FranklinBookRegular] 
[name:FranklinGothicBookITC-Regular]   [features=default]
     \definefontsynonym [FranklinMediumRegular] 
[name:FranklinGothicMediumITC-Regular] [features=default]
     \definefontsynonym [FranklinDemiRegular] 
[name:FranklinGothicDemiITC-Regular]   [features=default]
     \definefontsynonym [FranklinHeavyRegular] 
[name:FranklinGothicHeavyITC-Regular]  [features=default]

     \definefontsynonym [FranklinBookItalic] 
[name:FranklinGothicBookITC-Italic]    [features=default]
     \definefontsynonym [FranklinDemiItalic] 
[name:FranklinGothicMediumITC-Italic]  [features=default]
     \definefontsynonym [FranklinHeavyItalic] 
[name:FranklinGothicDemiITC-Italic]    [features=default]
     \definefontsynonym [FranklinMediumItalic] 
[name:FranklinGothicHeavyITC-Italic]   [features=default]

\stoptypescript

\starttypescript [sans] [franklin]

     \definefontsynonym [Sans]            [FranklinBookRegular] 
[features=default]
     \definefontsynonym [SansItalic]      [FranklinBookItalic] 
[features=default]
     \definefontsynonym [SansBold]        [FranklinDemiRegular] 
[features=default]
     \definefontsynonym [SansBoldItalic]  [FranklinDemiItalic] 
[features=default]
     \definefontsynonym [SansSlanted]     [SansItalic] 
[features=default]
     \definefontsynonym [SansBoldSlanted] [SansBoldItalic] 
[features=default]
     \definefontsynonym [SansCaps]        [Sans] 
[features=smallcaps]

\stoptypescript

\definetypeface[franklin][rm][sans][franklin][default]
\definetypeface[franklin][ss][sans][franklin][default]
\definetypeface[franklin][tt][mono][modern]  [default][rscale=1.12]
\definetypeface[franklin][mm][math][iwona]   [default][rscale=1.02]

\setupbodyfont[franklin,ss,10pt]

etc. context will

forget about the xetex syntax, although low level xetex stuff like

\font=\test=name:ACaslonPro-Regular:liga=yes;

is supported, as is:

\font=\test=name:ACaslonPro-Regular*default

but best define fonts using typescripts


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2007-08-08 20:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-08 19:08 Vyatcheslav Yatskovsky
2007-08-08 20:00 ` Hans Hagen [this message]
2007-08-08 20:51 ` Arthur Reutenauer
2007-08-09 20:09   ` Idris Samawi Hamid

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=46BA20CE.2030307@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=yatskovsky@gmail.com \
    /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).