ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font descriptions no longer work
@ 2017-01-28 18:45 John Culleton
  2017-01-29 14:22 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: John Culleton @ 2017-01-28 18:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


In all my recent books I have this subfile called fonts.tex.
-----------------------------------------------------
\def\Fontsize{11}
\font \rm =
"file:MinionPro-Regular.otf:+liga;expansion=default;protrusion=quality"
at \Fontsize bp

\font \it = "file:MinionPro-It.otf" at \Fontsize bp

\font \bf = "file:MinionPro-Bold.otf" at \Fontsize bp

\font \firstlet = "file:MinionPro-Regular.otf" at 3\Fontsize bp

\font \sc = "file:MinionPro-Regular.otf:+smcp" at 1.5\Fontsize bp

\font \titlesans = "file:MyriadPro-BlackCond.otf" at 30bp

\font \smalltitle = "file:MyriadPro-Regular.otf" at 20bp

%\font \chapfont = "file:Raleway-ExtraLight.otf" at 80bp
---------------------------------------------------------
When I use the \titlesans call in a document it errs off with this
message 
 > tex error on line 2 in file half.tex: ! Undefined control sequence

It can be made to finish the run but the text on page half.tex is
the ordinary body font.

The fonts in question are in the directory where I am running
context on a document in every case. I just installed the
latest context in my home directory. I also have texlive installed.
I copied the fonts to /usr/share/OTF, ran ft-cache as root. ran context
as root. Nothing helped.
Slackware 14.2

I have two book projects stalled.
-- 
John Culleton
Wexfordpress
Book design and indexing.


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

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

* Re: font descriptions no longer work
  2017-01-28 18:45 font descriptions no longer work John Culleton
@ 2017-01-29 14:22 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2017-01-29 14:22 UTC (permalink / raw)
  To: ntg-context

On 1/28/2017 7:45 PM, John Culleton wrote:
>
> In all my recent books I have this subfile called fonts.tex.
> -----------------------------------------------------
> \def\Fontsize{11}
> \font \rm =
> "file:MinionPro-Regular.otf:+liga;expansion=default;protrusion=quality"
> at \Fontsize bp
>
> \font \it = "file:MinionPro-It.otf" at \Fontsize bp
>
> \font \bf = "file:MinionPro-Bold.otf" at \Fontsize bp
>
> \font \firstlet = "file:MinionPro-Regular.otf" at 3\Fontsize bp
>
> \font \sc = "file:MinionPro-Regular.otf:+smcp" at 1.5\Fontsize bp
>
> \font \titlesans = "file:MyriadPro-BlackCond.otf" at 30bp
>
> \font \smalltitle = "file:MyriadPro-Regular.otf" at 20bp
>
> %\font \chapfont = "file:Raleway-ExtraLight.otf" at 80bp
> ---------------------------------------------------------
> When I use the \titlesans call in a document it errs off with this
> message
>  > tex error on line 2 in file half.tex: ! Undefined control sequence
>
> It can be made to finish the run but the text on page half.tex is
> the ordinary body font.

hard to see what gets wrong but anyway, you can then better define fonts 
with:

\definefont[titlesans][file:MyriadPro-BlackCond.otf at 30bp]

or when you also want ligatures and kerns:

\definefont[titlesans][file:MyriadPro-BlackCond.otf*default at 30bp]

> The fonts in question are in the directory where I am running
> context on a document in every case. I just installed the
> latest context in my home directory. I also have texlive installed.
> I copied the fonts to /usr/share/OTF, ran ft-cache as root. ran context
> as root. Nothing helped.
> Slackware 14.2
>
> I have two book projects stalled.
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-01-29 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-28 18:45 font descriptions no longer work John Culleton
2017-01-29 14:22 ` Hans Hagen

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