ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font installation in luatex
@ 2007-08-08 19:08 Vyatcheslav Yatskovsky
  2007-08-08 20:00 ` Hans Hagen
  2007-08-08 20:51 ` Arthur Reutenauer
  0 siblings, 2 replies; 4+ messages in thread
From: Vyatcheslav Yatskovsky @ 2007-08-08 19:08 UTC (permalink / raw)
  To: ntg-context-request@ntg.nl

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]

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.

-- 
Best regards,
 Vyatcheslav                          mailto:yatskovsky@gmail.com

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font installation in luatex
  2007-08-08 19:08 font installation in luatex Vyatcheslav Yatskovsky
@ 2007-08-08 20:00 ` Hans Hagen
  2007-08-08 20:51 ` Arthur Reutenauer
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2007-08-08 20:00 UTC (permalink / raw)
  To: Yatskovsky, mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font installation in luatex
  2007-08-08 19:08 font installation in luatex Vyatcheslav Yatskovsky
  2007-08-08 20:00 ` Hans Hagen
@ 2007-08-08 20:51 ` Arthur Reutenauer
  2007-08-09 20:09   ` Idris Samawi Hamid
  1 sibling, 1 reply; 4+ messages in thread
From: Arthur Reutenauer @ 2007-08-08 20:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> 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.

  You need a typescript, that is something along the lines of

✃✃✃✃

\starttypescript [serif] [adobecaslon] [name]

\definefontsynonym [Serif] [ACaslonPro-Regular]
\definefontsynonym [SerifItalic] [ACaslonPro-Italic]
\definefontsynonym [SerifBold] [ACaslonPro-Bold]
\definefontsynonym [SerifBoldItalic] [ACaslonPro-BoldItalic]

\stoptypescript

\starttypescript [serif] [adobecaslon] [size]

\definebodyfont
  [rm]
  [tf=Serif,
   it=SerifItalic,
   bf=SerifBold,
   bi=SerifBoldItalic]

\stoptypescript

\starttypescript [caslon]
\definebodyfontenvironment
  [caslon]
  [default]
  [iterlinespace=2.6ex]

\definetypeface [caslon] [rm] [serif] [adobecaslon] 
\stoptypescript

\usetypescript [caslon] [ec]
\setupbodyfont [caslon]

\starttext

William Caslon released his first typefaces in 1722. % 
Caslon’s types were based on seventeenth-century Dutch old style
designs, which were then used extensively in England. Because of their
remarkable practicality, Caslon’s designs met with instant success.
Caslon’s types became popular throughout Europe and the American
colonies; printer Benjamin Franklin hardly used any other typeface. The
first printings of the American Declaration of Independence and the
Constitution were set in Caslon.

\stoptext

✁✁✁✁

  And for an even fancier design :-)

\definefontfeature
  [historic]
  [script=latn,language=DFLT,dlig=yes,hist=yes,onum=yes]

  and replace the typeface definition with

\definetypeface [caslon] [rm] [serif] [adobecaslon] [default] [features=historic]

P-S for Idris: I just received my copy of the last issue of TUGboat, and
your article is absolutely great! That's what I used exclusively for the
above :-)
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font installation in luatex
  2007-08-08 20:51 ` Arthur Reutenauer
@ 2007-08-09 20:09   ` Idris Samawi Hamid
  0 siblings, 0 replies; 4+ messages in thread
From: Idris Samawi Hamid @ 2007-08-09 20:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 08 Aug 2007 14:51:12 -0600, Arthur Reutenauer  
<arthur.reutenauer@normalesup.org> wrote:

>> 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.
>
>   You need a typescript, that is something along the lines of

<snip>

> P-S for Idris: I just received my copy of the last issue of TUGboat, and
> your article is absolutely great! That's what I used exclusively for the
> above :-)

Hmm, never got my own copy of that issue, need to contact Karl...

But I'm very glad it was useful!

Best wishes
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-09 20:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-08 19:08 font installation in luatex Vyatcheslav Yatskovsky
2007-08-08 20:00 ` Hans Hagen
2007-08-08 20:51 ` Arthur Reutenauer
2007-08-09 20:09   ` Idris Samawi Hamid

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).