ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font check
@ 2002-06-30 15:45 Axel Rose
  2002-06-30 16:31 ` Bill McClain
  0 siblings, 1 reply; 15+ messages in thread
From: Axel Rose @ 2002-06-30 15:45 UTC (permalink / raw)


Hello all,

I'm new to ConTeXt and as a first exercise wanted to check
proper font installation.

To see whether Helvetica can be used I tried:

\definefontsynonym [Helvetica] [phvr8r] [encoding=8r]
\definefont        [MyFont]    [Helvetica]

\starttext
\MyFont Hello again.
\stoptext

Is this correct as the shortest possible font usage test?

The font doesn't seem to be used.
LaTeX run's fine with "\renewcommand}{\familydefault}{phv}" though.

Thanks for your help

Axel


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

* Re: font check
  2002-06-30 15:45 font check Axel Rose
@ 2002-06-30 16:31 ` Bill McClain
  2002-06-30 18:47   ` Axel Rose
  2002-06-30 19:36   ` fonts and tetex Glenn R. Williams
  0 siblings, 2 replies; 15+ messages in thread
From: Bill McClain @ 2002-06-30 16:31 UTC (permalink / raw)
  Cc: ntg-context

On Sun, 30 Jun 2002 17:45:57 +0200
Axel Rose <rose@sj.com> wrote:

> Is this correct as the shortest possible font usage test?

You can bypass ConTeXt macros altogether:

\font\myfirstfont=phvr8r
\myfirstfont Here it is.

I use this to verify that my map files are setup correctly and that the
font files are in place.

I have font usage examples at
http://home.salamander.com/~wmcclain/context-help.html

-Bill
-- 
Sattre Press                                      Pagan Papers
http://sattre-press.com/                    by Kenneth Grahame
info@sattre-press.com              http://pp.sattre-press.com/ 


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

* Re: font check
  2002-06-30 16:31 ` Bill McClain
@ 2002-06-30 18:47   ` Axel Rose
  2002-06-30 20:19     ` Henning Hraban Ramm
  2002-06-30 20:38     ` Bill McClain
  2002-06-30 19:36   ` fonts and tetex Glenn R. Williams
  1 sibling, 2 replies; 15+ messages in thread
From: Axel Rose @ 2002-06-30 18:47 UTC (permalink / raw)


>I have font usage examples at
>http://home.salamander.com/~wmcclain/context-help.html

Yes, that was the basis of my tests. Thanks for that!

The first problem is solved now. I can output PDF files
with the desired fonts. The font installation itself is
ok.

I run into trouble though as soon as I set TEXMF, VARTEXMF
or other TeX related environment variables. Neither your
Plain TeX sample nor ConTeXt will work anymore if I use a
typical PostScript font. I didn't touch texmf.cfg or other
.ini files yet.

My system is RedHat 7.2 with TeX-Live 7 installed.

Strange ...

Axel


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

* fonts and tetex
  2002-06-30 16:31 ` Bill McClain
  2002-06-30 18:47   ` Axel Rose
@ 2002-06-30 19:36   ` Glenn R. Williams
  2002-06-30 20:45     ` Bill McClain
  2002-06-30 21:16     ` Axel Rose
  1 sibling, 2 replies; 15+ messages in thread
From: Glenn R. Williams @ 2002-06-30 19:36 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

I am trying Bill's suggestions on fonts with my system (Redhat 7.3) and ran 
across a problem. 

The first two examples, using both plain TeX and ConTeXt macros, work fine, 
and I get output using CharterBT-Bold (bchb8r).

However, on the second and third tests (using typescripts), the script halts 
with several times with the messages (see below for a shortened version of 
the log). If I hit enter and continue, I get a PDF file, but it crashes when 
I try to open it. If I just do the Charter (and not Utopia), things work. 
When I use Utopia, either with or without charter, the PDF file crashes when 
I try to open it.

Anyone have a clue as to where I can start to look?

TIA,

Glenn
- --------------------------- Shortened log below ------------------------------
?
! Font \*MyCharter9ptrmsc*=8r-bchr8a-capitalized-800 at 9.0pt not loadable: 
Metric (TFM) file not found.
?
!Font \*MyCharter9ptrmsc*=8r-bchr8a-capitalized-800 at 9.0pt not loadable: 
Metric (TFM) file not found.
?
! Font \*MyCharter12ptrmsc*=8r-bchr8a-capitalized-800 at 12.0pt not loadable: 
Metric (TFM) file not found.
?
! Font \*MyUtopia7ptrmsc*=Utopia-Regular-Caps at 7.0pt not loadable: Metric 
(TFM) file not found.
?
! Font \*MyUtopia9ptrmsc*=Utopia-Regular-Caps at 9.0pt not loadable: Metric 
(TFM) file not found.
?
! Font \*MyUtopia12ptrmsc*=Utopia-Regular-Caps at 12.0pt not loadable: Metric 
(TFM) file not found.
?
{/usr/share/texmf/dvips/base/8r.enc}</usr/share/texmf/fonts/type1/adobe/utopi
a/putbi8a.pfb></usr/share/texmf/fonts/type1/adobe/utopia/putri8a.pfb></usr/shar
e/texmf/fonts/type1/adobe/utopia/putb8a.pfb></usr/share/texmf/fonts/type1/adobe
/utopia/putr8a.pfb></usr/share/texmf/fonts/type1/bitstrea/charter/bchbi8a.pfb><
/usr/share/texmf/fonts/type1/bitstrea/charter/bchri8a.pfb></usr/share/texmf/fon
ts/type1/bitstrea/charter/bchb8a.pfb></usr/share/texmf/fonts/type1/bitstrea/cha
rter/bchr8a.pfb>
Output written on mcclain.pdf (1 page, 75087 bytes).

- -- 
Glenn R Williams
- ---------------------------------------------------------------------------------
"Mathematical theories are the part of science you could continue to do 
if you woke up tomorrow and discovered the universe was gone" 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9H13Kw/Wcp38R/MkRAmifAKC12sbpJ2gkGTtEXbm10tW6ekIQugCfUmL6
tt57WYgkWRsuc5sXcMPl/2M=
=dtOt
-----END PGP SIGNATURE-----


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

* Re: font check
  2002-06-30 18:47   ` Axel Rose
@ 2002-06-30 20:19     ` Henning Hraban Ramm
  2002-06-30 20:50       ` Axel Rose
  2002-06-30 20:38     ` Bill McClain
  1 sibling, 1 reply; 15+ messages in thread
From: Henning Hraban Ramm @ 2002-06-30 20:19 UTC (permalink / raw)


Am Sonntag, 30. Juni 2002 20:47 schrieb Axel Rose:
> I run into trouble though as soon as I set TEXMF, VARTEXMF
> or other TeX related environment variables. Neither your

You mentioned on TeX-D-L that you have installed both a teTeX and TeX Live on 
SuSE Linux.
I guess the source of your trouble is the mixture (teTeX binaries or ConTeXt 
versions are typically too old; or wrong config and other files were 
found...)

Grüßlis vom Hraban!
-- 
http://www.fiee.net/texnique/
---


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

* Re: font check
  2002-06-30 18:47   ` Axel Rose
  2002-06-30 20:19     ` Henning Hraban Ramm
@ 2002-06-30 20:38     ` Bill McClain
  1 sibling, 0 replies; 15+ messages in thread
From: Bill McClain @ 2002-06-30 20:38 UTC (permalink / raw)
  Cc: ntg-context

On Sun, 30 Jun 2002 20:47:37 +0200
Axel Rose <rose@sj.com> wrote:

> I run into trouble though as soon as I set TEXMF, VARTEXMF
> or other TeX related environment variables. Neither your
> Plain TeX sample nor ConTeXt will work anymore if I use a
> typical PostScript font. I didn't touch texmf.cfg or other
> .ini files yet.
> 
> My system is RedHat 7.2 with TeX-Live 7 installed.

You are beyond me here. But: don't you have to run texhash again after
changing those variables? I think the name database has physical paths
in it.

-Bill
-- 
Sattre Press                                      Pagan Papers
http://sattre-press.com/                    by Kenneth Grahame
info@sattre-press.com              http://pp.sattre-press.com/ 


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

* Re: fonts and tetex
  2002-06-30 19:36   ` fonts and tetex Glenn R. Williams
@ 2002-06-30 20:45     ` Bill McClain
  2002-06-30 21:16     ` Axel Rose
  1 sibling, 0 replies; 15+ messages in thread
From: Bill McClain @ 2002-06-30 20:45 UTC (permalink / raw)
  Cc: ntg-context

On Sun, 30 Jun 2002 15:36:40 -0400
"Glenn R. Williams" <gloonie@telocity.com> wrote:

> Anyone have a clue as to where I can start to look?

Do the font names displayed in the error messages exist as entries in
pdftex.map? And do they also name existing TFM files that are in the TeX
path?

Copying some old mail:

My only experience is with Type1 fonts and pdftex, but I have found this
to be true:

(1) If the pfb file is under the type1 tree, and...
(2) if the tfm file is under the tfm tree, and...
(3) if both of those files are listed on the same line in pdftex.map (or
other configurable resource), and...
(4) if the filename database has been refreshed with texhash or mktexlsr
since any new files were introduced, and...
(5) if all of the above files can be found with the kpsewhich utility...

...it should work.

If the fonts are found but some effects are missing (small caps,
old-style figures, etc) then some ConTeXt definitions need to be
adjusted.

-Bill
-- 
Sattre Press                                      Pagan Papers
http://sattre-press.com/                    by Kenneth Grahame
info@sattre-press.com              http://pp.sattre-press.com/ 


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

* Re: font check
  2002-06-30 20:19     ` Henning Hraban Ramm
@ 2002-06-30 20:50       ` Axel Rose
  2002-07-01 17:13         ` Henning Hraban Ramm
  0 siblings, 1 reply; 15+ messages in thread
From: Axel Rose @ 2002-06-30 20:50 UTC (permalink / raw)


Gruizi Hraban,

no - I use RedHat but all I can do in the moment to avoid confusion
is setting PATH to point to the new binaries and voila it works.

I was trying to follow your instuctions and set TEXMF, etc.
and nothing works any longer.

Within the TeX-Live documentation nothing is said about
the typical Unix profile configuration (at least I cannot
find it).

I'm aware that the RedHat delivered distribution is quite a
bit outdated.

Thanks for your answer

Axel


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

* Re: fonts and tetex
  2002-06-30 19:36   ` fonts and tetex Glenn R. Williams
  2002-06-30 20:45     ` Bill McClain
@ 2002-06-30 21:16     ` Axel Rose
  2002-06-30 23:03       ` fonts and tetex - partial success! Glenn R. Williams
  1 sibling, 1 reply; 15+ messages in thread
From: Axel Rose @ 2002-06-30 21:16 UTC (permalink / raw)


Glenn wrote:
>Anyone have a clue as to where I can start to look?

Don't know if this helps but see yourself.

I tried the type-charter example on RedHat 7.2 with preinstalled
ConTeXt 2000.1.31. It chokes at \usetypescript.
With TeX-Live 7 version the output is produced and xpdf crashes
my X11 server. I downloaded the pdf to my Mac and checked with
Acrobat. All is fine.

I suggest you check ConTeXt version and PDF viewer version.

Do you have TEXMF or VARTEXMF set?
(just check with "set | grep TEX")

HTH,
Axel


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

* Re: fonts and tetex - partial success!
  2002-06-30 21:16     ` Axel Rose
@ 2002-06-30 23:03       ` Glenn R. Williams
  2002-07-01 11:35         ` Bill McClain
                           ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Glenn R. Williams @ 2002-06-30 23:03 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Bill and Axel,

Thanks for your suggestions. Some more info I found out:

1. The viewer crashing was NOT Acroread but KGhostview (interesting!). When I 
view on Acroread 5.05 (linux), I see the printout!

2. When I run my test, I still get those "Emergency stop/Please enter another 
input file" messages, but is I hit enter until the end of the run, I get a 
readable PDF.

3. I added the following to my .bash_profile, which the 7.3 rpm did not do:

export TEXMFMAIN=/usr/share/texmf 
export TEXMFMAIN=/usr/share/texmf
export TEXMFFONTS=/usr/share/texmf/fonts

So the current status is that I still have to hit Enter do make it to the end 
of the run, but otherwise it works. Here is the test, if you are interested 
(the type-* files referred to are like Bill showed in his example):

\usetypescriptfile[type-charter]
\usetypescript[Charter]
\usetypescriptfile[type-palatino]
\usetypescript[Palatino]
\usetypescriptfile[type-utopia]
\usetypescript[Utopia]
\setupbodyfont[MyPalatino]
\setupbodyfont[MyUtopia]
\setupbodyfont[MyCharter]

\starttext
% -------------- Charter ----------------
\switchtobodyfont[MyCharter]
This is Charter roman, {\bf bold}, {\it italic}, {\bi bold-italic}, 
{\tfa bigger} and {\tfx smaller}.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
\blank[.25in]
% -------------- Palatino ----------------
\switchtobodyfont[MyPalatino]
This is Palatino roman, {\bf bold}, {\it italic}, {\bi bold-italic}, 
{\tfa bigger} and {\tfx smaller}.
ABCDEFGHIJKLMNOPQRSTUVWXYZ

\blank[.25in]
% -------------- Utopia ----------------
\switchtobodyfont[MyUtopia]
This is Utopia roman, {\bf bold}, {\it italic}, {\bi bold-italic}, 
{\tfa bigger} and {\tfx smaller}.

ABCDEFGHIJKLMNOPQRSTUVWXYZ

\blank[.25in]
% Some individual fonts
This is omsea3:

\font\myfirstfont=omsea3
\myfirstfont Of wind I sang, a wind there came, and in the branches blew.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
\blank[.25in]
\font\mysecondfont=phvr8r
\mysecondfont
This is Adobe Helvetica:

Of wind I sang, a wind there came, and in the branches blew.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
\blank[.25in]
\font\mythirdfont=bchb8r
\mythirdfont
This is Btistream Charter Bold:

Of wind I sang, a wind there came, and in the branches blew.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
\stoptext  

Regards,

Glenn

On Sunday 30 June 2002 05:16 pm, Axel Rose wrote:
> Glenn wrote:
> >Anyone have a clue as to where I can start to look?
>
> Don't know if this helps but see yourself.
>
> I tried the type-charter example on RedHat 7.2 with preinstalled
> ConTeXt 2000.1.31. It chokes at \usetypescript.
> With TeX-Live 7 version the output is produced and xpdf crashes
> my X11 server. I downloaded the pdf to my Mac and checked with
> Acrobat. All is fine.
>
> I suggest you check ConTeXt version and PDF viewer version.
>
> Do you have TEXMF or VARTEXMF set?
> (just check with "set | grep TEX")
>
>
> HTH,
> Axel

- -- 
Glenn R Williams
- ---------------------------------------------------------------------------------
"Mathematical theories are the part of science you could continue to do 
if you woke up tomorrow and discovered the universe was gone" 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9H45Nw/Wcp38R/MkRAmBWAJ98DUgr7aokXdrwyC73dVdSh+2pPQCbB9Wc
73/4FBFQcOK8TsykXnhUmyI=
=9S/B
-----END PGP SIGNATURE-----


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

* Re: fonts and tetex - partial success!
  2002-06-30 23:03       ` fonts and tetex - partial success! Glenn R. Williams
@ 2002-07-01 11:35         ` Bill McClain
  2002-07-01 14:50         ` fonts and tetex - partial success! (more info on stops) Glenn R. Williams
  2002-07-01 17:10         ` fonts and tetex - partial success! Henning Hraban Ramm
  2 siblings, 0 replies; 15+ messages in thread
From: Bill McClain @ 2002-07-01 11:35 UTC (permalink / raw)
  Cc: ntg-context

On Sun, 30 Jun 2002 19:03:38 -0400
"Glenn R. Williams" <gloonie@telocity.com> wrote:

> \setupbodyfont[MyPalatino]
> \setupbodyfont[MyUtopia]
> \setupbodyfont[MyCharter]

You only need one of these, by the way. It establishes the current font.
Then \switchtobodyfont to change the current font, as in your example.

-Bill
-- 
Sattre Press                                      Pagan Papers
http://sattre-press.com/                    by Kenneth Grahame
info@sattre-press.com              http://pp.sattre-press.com/ 


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

* Re: fonts and tetex - partial success! (more info on stops)
  2002-06-30 23:03       ` fonts and tetex - partial success! Glenn R. Williams
  2002-07-01 11:35         ` Bill McClain
@ 2002-07-01 14:50         ` Glenn R. Williams
  2002-07-01 17:10         ` fonts and tetex - partial success! Henning Hraban Ramm
  2 siblings, 0 replies; 15+ messages in thread
From: Glenn R. Williams @ 2002-07-01 14:50 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

Just FYI, I found two problems that were causing the stoptyping in the middle 
of a run. I am currently using tetex on Redhat 7.3, so the problem may relate 
to the binaries:

1. One set of emergency stops was due to texexec complaining about an 
Undefined control sequence in type-buy.tex:

<argument> \processcommalist [\typescriptencoding                                           
- -itc-officina]\noexpand \d...

Solution: once I removed the officina and meta-ff entries (which I didn't 
need), this went away. I'll try to track down what was compained about....

2. The other emergency stops were due to the entries for
Charter-Roman-Caps and Utopia-Regular-Caps in the file

   tex/context/base/type-enc.tex

Once I commented the two lines out referring to small caps, the second set of
stoptyping messages went away.  The two statements below seemed to be causing 
problems. Are these missing from the supplied fonts?

\definefontsynonym [Palatino-Caps]        
[\typefaceencoding-uplr8a-capitalized-800] [encoding=\typefaceencoding]

\definefontsynonym 
[Utopia-Regular-Caps][\typefaceencoding-putr8a-capitalized-800]  
[encoding=\typefaceencoding]

Regards to all,

Glenn

On Sunday 30 June 2002 07:03 pm, Glenn R. Williams wrote:
>
> So the current status is that I still have to hit Enter do make it to the
> end of the run, but otherwise it works. Here is the test, if you are
> interested (the type-* files referred to are like Bill showed in his
> example):

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9IGwjw/Wcp38R/MkRAqqoAKCRjHODD9Mc4wffAGW4D//tftz2LgCgooa9
MAISIckh8NWP13KXaEoGVCY=
=LT9s
-----END PGP SIGNATURE-----


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

* Re: fonts and tetex - partial success!
  2002-06-30 23:03       ` fonts and tetex - partial success! Glenn R. Williams
  2002-07-01 11:35         ` Bill McClain
  2002-07-01 14:50         ` fonts and tetex - partial success! (more info on stops) Glenn R. Williams
@ 2002-07-01 17:10         ` Henning Hraban Ramm
  2002-07-01 19:45           ` John Culleton
  2 siblings, 1 reply; 15+ messages in thread
From: Henning Hraban Ramm @ 2002-07-01 17:10 UTC (permalink / raw)


Am Montag, 1. Juli 2002 01:03 schrieb Glenn R. Williams:
> 1. The viewer crashing was NOT Acroread but KGhostview (interesting!). When
> I view on Acroread 5.05 (linux), I see the printout!

KGhostview crashes with *everything* on my system.
Did you try xpdf and gv?

Grüßlis vom Hraban!
-- 
http://www.fiee.net/texnique/
---


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

* Re: font check
  2002-06-30 20:50       ` Axel Rose
@ 2002-07-01 17:13         ` Henning Hraban Ramm
  0 siblings, 0 replies; 15+ messages in thread
From: Henning Hraban Ramm @ 2002-07-01 17:13 UTC (permalink / raw)


Am Sonntag, 30. Juni 2002 22:50 schrieb Axel Rose:
> I was trying to follow your instuctions and set TEXMF, etc.
> and nothing works any longer.

Maybe my suggestions work only for my modified teTeX on SuSE.

Grüßlis vom Hraban!


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

* Re: fonts and tetex - partial success!
  2002-07-01 17:10         ` fonts and tetex - partial success! Henning Hraban Ramm
@ 2002-07-01 19:45           ` John Culleton
  0 siblings, 0 replies; 15+ messages in thread
From: John Culleton @ 2002-07-01 19:45 UTC (permalink / raw)


On Monday 01 July 2002 01:10 pm, Henning Hraban Ramm wrote:
> Am Montag, 1. Juli 2002 01:03 schrieb Glenn R. Williams:
> > 1. The viewer crashing was NOT Acroread but KGhostview (interesting!).
> > When I view on Acroread 5.05 (linux), I see the printout!
>
> KGhostview crashes with *everything* on my system.
> Did you try xpdf and gv?
>
>
> Grüßlis vom Hraban!

Try the garden variety gv program that comes with the ghostscript
distribution. It works fine, although fonts are sometimes substituted.

John Culleton

__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
             http://www.doteasy.com


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

end of thread, other threads:[~2002-07-01 19:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-30 15:45 font check Axel Rose
2002-06-30 16:31 ` Bill McClain
2002-06-30 18:47   ` Axel Rose
2002-06-30 20:19     ` Henning Hraban Ramm
2002-06-30 20:50       ` Axel Rose
2002-07-01 17:13         ` Henning Hraban Ramm
2002-06-30 20:38     ` Bill McClain
2002-06-30 19:36   ` fonts and tetex Glenn R. Williams
2002-06-30 20:45     ` Bill McClain
2002-06-30 21:16     ` Axel Rose
2002-06-30 23:03       ` fonts and tetex - partial success! Glenn R. Williams
2002-07-01 11:35         ` Bill McClain
2002-07-01 14:50         ` fonts and tetex - partial success! (more info on stops) Glenn R. Williams
2002-07-01 17:10         ` fonts and tetex - partial success! Henning Hraban Ramm
2002-07-01 19:45           ` John Culleton

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