ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* What are the fonts called in Context?
@ 2002-02-22 20:39 John Culleton
  2002-02-22 21:57 ` Frans Goddijn
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John Culleton @ 2002-02-22 20:39 UTC (permalink / raw)


Henry Ford said yo could have a car in any color so long as it
was black. 

Context says you can ask for any font you want to so long as it
is Computer Modern.

I tried asking for lbr (Lucida Bright) as the \setupbody font.
The program went into a tailspin trying and failing to create
all the fonts. Then I used ppl as the asked for font. Another
tailspin, which is funny because I use Palatino in 
plain TeX files with no problem. If I ask for just pl it does
not complain but just gives me computer modern. 

SO:
Is there a list of the font name abbreviations that context
will accept? 

Are there any fonts other than cm that can be used without 
going into the mktextfm/kpathsea loop?

I would not complain except that I can create these fonts in any
needed sizes in plain tex. The following works fine in plain tex:

\font\rm= pplr at 10pt
\font\it= pplri at 10pt
\font\bf = pplb8r at 14pt

It also runs without error in context but seems to have no effect.

Any suggestions?

John Culleton


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

* Re: What are the fonts called in Context?
  2002-02-22 20:39 What are the fonts called in Context? John Culleton
@ 2002-02-22 21:57 ` Frans Goddijn
  2002-02-22 22:19 ` Bill McClain
  2002-02-23  5:01 ` Daniel Joyce
  2 siblings, 0 replies; 9+ messages in thread
From: Frans Goddijn @ 2002-02-22 21:57 UTC (permalink / raw)


There is an explanation of how to do it on

http://home.salamander.com/~wmcclain/context-help.html

I am sort of trying to get around to get it working myself. 

Good luck!

Frans
www.goddijn.com


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

* Re: What are the fonts called in Context?
  2002-02-22 20:39 What are the fonts called in Context? John Culleton
  2002-02-22 21:57 ` Frans Goddijn
@ 2002-02-22 22:19 ` Bill McClain
  2002-02-25 13:56   ` Hans Hagen
  2002-02-23  5:01 ` Daniel Joyce
  2 siblings, 1 reply; 9+ messages in thread
From: Bill McClain @ 2002-02-22 22:19 UTC (permalink / raw)


John Culleton wrote:

> SO:
> Is there a list of the font name abbreviations that context
> will accept?

I never figured out the predefined font names either. You might try
searching the type-*.tex sources to see if anything looks likely. For
me, the names never seemed to match what I had on my system.

Eventually I figured out (with much help) how to make my own typescripts
and the heavens opened. It is easy to do if you have the font files you
want and know what's in them. (Which are bold, italtic, etc). I like
having control over the font definitions; much of the mystery is
eliminated.

Look at my page: http://home.salamander.com/~wmcclain/context-help.html,
particularly the section "Font Selection - Using Typescripts". Shout if
you need help.

-Bill


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

* Re: What are the fonts called in Context?
  2002-02-22 20:39 What are the fonts called in Context? John Culleton
  2002-02-22 21:57 ` Frans Goddijn
  2002-02-22 22:19 ` Bill McClain
@ 2002-02-23  5:01 ` Daniel Joyce
  2002-02-23 14:59   ` John Culleton
  2 siblings, 1 reply; 9+ messages in thread
From: Daniel Joyce @ 2002-02-23  5:01 UTC (permalink / raw)


On Friday 22 February 2002 02:39 pm, you wrote:
> Henry Ford said yo could have a car in any color so long as it
> was black.
>
> Context says you can ask for any font you want to so long as it
> is Computer Modern.
>
> I tried asking for lbr (Lucida Bright) as the \setupbody font.
> The program went into a tailspin trying and failing to create
> all the fonts. Then I used ppl as the asked for font. Another
> tailspin, which is funny because I use Palatino in
> plain TeX files with no problem. If I ask for just pl it does
> not complain but just gives me computer modern.
>

 Lucida Bright is a commercial font, you have to buy it to use it. Tex 
comes with the mappings set up, but not the font itself. Depending on which 
families you want, it could total several hundred dollars... ;)

Other than that, you need to check for the fonts and their mappings in the 
TEX distro you are using.

	Daniel


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

* Re: What are the fonts called in Context?
  2002-02-23  5:01 ` Daniel Joyce
@ 2002-02-23 14:59   ` John Culleton
  2002-02-25 13:47     ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: John Culleton @ 2002-02-23 14:59 UTC (permalink / raw)


On Saturday 23 February 2002 00:01, Daniel Joyce wrote:
> On Friday 22 February 2002 02:39 pm, you wrote:
> > Henry Ford said yo could have a car in any color so long as it
> > was black.
> >
> > Context says you can ask for any font you want to so long as it
> > is Computer Modern.
> >
> > I tried asking for lbr (Lucida Bright) as the \setupbody font.
> > The program went into a tailspin trying and failing to create
> > all the fonts. Then I used ppl as the asked for font. Another
> > tailspin, which is funny because I use Palatino in
> > plain TeX files with no problem. If I ask for just pl it does
> > not complain but just gives me computer modern.
>
>  Lucida Bright is a commercial font, you have to buy it to use it.
> Tex comes with the mappings set up, but not the font itself.
> Depending on which families you want, it could total several
> hundred dollars... ;)
>
> Other than that, you need to check for the fonts and their mappings
> in the TEX distro you are using.

Thanks for the information. That explains Lucida Bright. Now, how do
I use a font known to be on my system such as Palatino? For test 
purposes
I added the following line:
\font\rm= pplr at 35pt    

Now I have a very big version of Palatino which is accessable
via \rm. 

 But when I use:
\setupbodyfont[ppl]   
The system goes into a big tailspin looking for all the variations of
Palatino and finding none. I get messages like:
mktextfm `mf \mode:=ljfour; mag=:1; nonstopmode; input Palatino' 
failed.

It then creates a missfont.log series with messages like
mktextfm  Palatino   
This command does not work on my system. In addition
mktextfm makes tfm files and I have a full set of tfm, vf etc.
files for Palatino already, with the prefix ppl. 

Since the method in the Context manual does not work I tried 
the method found on the web page:

http://home.salamander.com/~wmcclain/context-help.html

There is good news and bad news. The undocumented typescript
setup he prescribes there will allow me to use e.g., Charter fonts.
However the 
texexec foo.tex 
command still yields many font related error messages of the forms:

pdftex         : needs map file: 8r-bh-lucida.map

...and

) (/usr/share/texmf/tex/context/base/type-spe.tex)
(/usr/share/texmf/tex/context/base/type-exa.tex) 
(.././type-charter.tex)
(/usr/share/texmf/tex/context/base/type-buy.tex
! Undefined control sequence.
<argument> \processcommalist [\typescriptencoding

-itc-officina]\noexpand \d...
...

SO:
If I use an undocumented procedure and bypass all the error messages
I can use another font. 

OR:
I can use the familiar \font command, but I lose (apparently) all the
fancy font enlargement features of Context. 

Maybe I'd best leave Context alone until the dust settles a little 
bit. 

Thanks to all who tried to help.

John Culleton


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

* Re: What are the fonts called in Context?
  2002-02-23 14:59   ` John Culleton
@ 2002-02-25 13:47     ` Hans Hagen
  2002-02-26 10:26       ` Taco Hoekwater
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2002-02-25 13:47 UTC (permalink / raw)
  Cc: Daniel Joyce, ntg-context

At 09:59 AM 2/23/2002 -0500, John Culleton wrote:

>Thanks for the information. That explains Lucida Bright. Now, how do
>I use a font known to be on my system such as Palatino? For test
>purposes
>I added the following line:
>\font\rm= pplr at 35pt
>
>Now I have a very big version of Palatino which is accessable
>via \rm.
>
>  But when I use:
>\setupbodyfont[ppl]
>The system goes into a big tailspin looking for all the variations of
>Palatino and finding none. I get messages like:
>mktextfm `mf \mode:=ljfour; mag=:1; nonstopmode; input Palatino'
>failed.

what happens if you try:

texfont --ven=urw  --col=palatino --enc=texnansi --sou=auto

and then

\autoloadmapfilestrue \setupencoding[default=texnansi]

and

\setupbodyfont[ppl]

context now should look for texnansi-*.tfm when define the fonts and pdftex 
should try to include the associated type one files;

if you want to use system files, you should set up typescript sections like 
the ber (berry one); i can include these in the distribution if users 
provide them, (i lost track of the fuzzy 8char naming scheme).

>It then creates a missfont.log series with messages like
>mktextfm  Palatino

[i wished that this annoying feature was turned off by default]

>This command does not work on my system. In addition
>mktextfm makes tfm files and I have a full set of tfm, vf etc.
>files for Palatino already, with the prefix ppl.

maybe (in beta)

\usetypescript [berry] [ec] % or [texnansi] or [8r] helps ; see type-enc.tex

Hans-
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


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

* Re: What are the fonts called in Context?
  2002-02-22 22:19 ` Bill McClain
@ 2002-02-25 13:56   ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2002-02-25 13:56 UTC (permalink / raw)
  Cc: john, ntg-context

At 04:19 PM 2/22/2002 -0600, Bill McClain wrote:
>John Culleton wrote:
>
> > SO:
> > Is there a list of the font name abbreviations that context
> > will accept?
>
>I never figured out the predefined font names either. You might try
>searching the type-*.tex sources to see if anything looks likely. For
>me, the names never seemed to match what I had on my system.

some of the names, like ppl and so are there for backward compatibility

the best way to use fonts is to define a typeface, like:

\definetypeface [main] [rm] [serif] [palatino] [default] [encoding=texnansi]

so that you can say \setupbodyfont[main,10pt] etc etc

live would be simple if we only had one encoding, but it happens that 8r 
texnansi ec il2 pl0 etc are used and some of them are in the tex 
distributions, and some are not 9for all fonts);

the symbolic font names used are the official ones; [for commercial fonts, 
for me it makes most sense to use original font and filenames, instead of 
those incomprehensible <=8char ones]

hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


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

* Re: What are the fonts called in Context?
  2002-02-25 13:47     ` Hans Hagen
@ 2002-02-26 10:26       ` Taco Hoekwater
  2002-02-26 11:07         ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Taco Hoekwater @ 2002-02-26 10:26 UTC (permalink / raw)
  Cc: john, daniel.a.joyce, ntg-context

On Mon, 25 Feb 2002 14:47:23 +0100 "Hans Hagen" <pragma@wxs.nl> wrote:

> >It then creates a missfont.log series with messages like
> >mktextfm  Palatino
> 
> [i wished that this annoying feature was turned off by default]

mktextfm has it's uses. In fact, it is probaby feasible to
interface to texfont on-the-fly.

-- 
groeten,

Taco


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

* Re: What are the fonts called in Context?
  2002-02-26 10:26       ` Taco Hoekwater
@ 2002-02-26 11:07         ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2002-02-26 11:07 UTC (permalink / raw)
  Cc: ntg-context

At 11:26 AM 2/26/2002 +0100, you wrote:
>On Mon, 25 Feb 2002 14:47:23 +0100 "Hans Hagen" <pragma@wxs.nl> wrote:
>
> > >It then creates a missfont.log series with messages like
> > >mktextfm  Palatino
> >
> > [i wished that this annoying feature was turned off by default]
>
>mktextfm has it's uses. In fact, it is probaby feasible to
>interface to texfont on-the-fly.

ah, i will look into that

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-pod.nl
-------------------------------------------------------------------------


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

end of thread, other threads:[~2002-02-26 11:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-22 20:39 What are the fonts called in Context? John Culleton
2002-02-22 21:57 ` Frans Goddijn
2002-02-22 22:19 ` Bill McClain
2002-02-25 13:56   ` Hans Hagen
2002-02-23  5:01 ` Daniel Joyce
2002-02-23 14:59   ` John Culleton
2002-02-25 13:47     ` Hans Hagen
2002-02-26 10:26       ` Taco Hoekwater
2002-02-26 11:07         ` 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).