lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `EndFontMetrics missing' error


From: Barrie Stott
Subject: Re: `EndFontMetrics missing' error
Date: Wed, 10 Jul 2002 21:25:34 +0100
User-agent: Mutt/1.0.1i

On Tue, Jul 09, 2002 at 10:33:28AM -0700, Albert Kinderman wrote:
> Barrie Stott wrote:
> 
> >I have created omsegr.pfa from omsegr.pfb and it has the correct unix
> >line endings. It sits in the same directory as my normal lout glyph
> >files. I've checked the Fontlist type files and added both appropriate
> >and inappropriate lines without any change in what lout reports. Lout
> >just doesn't seem to be able to find the .pfa file. However, I have
> >used TeX's testfont to print stuff out and ghostscript can find the
> >glyphs without problem.
> >
> >Obviously, I am missing something - and probably something simple. I
...
> >
> Read <URL:http://www.chez.com/emarsden/lout/loutFAQ-5.html> on how to add a 
> font.

The story has moved on a bit. I compiled lout with debugging stuff
enabled and ran it with -dft. This gave a lot of stuff, some of which
is shown below, but there are two particularly relevant bits. First,
lout has been able to find omsegr.pfa all along and, secondly, for
every character I want to print from OmegaSerifGreek the stuff of
which the following is merely a small part tells me: `lig = 1'.
There is no kerning information in omsegr.afm so I would have thought
that I should get `lig = 0' all the time.

I've seen nothing detailed about ligatures in lout documentation so
I'm casting myself on the experts again. What do `lig = 1'  and
`unacc[g] = 0' mean? How can I get characters in this font to print?

Below, I give 3 things: the relevant part of source text, the relevant
part of the .ps file and the relevant part of debugging stuff. I've
cut things down as much as seems reasonably and just hope I've not
thrown the baby out with the bath water. I'm happy to send whatever is
required to whoever if they feel able to help but bereft of
information.

Barrie.
------------------------------
Source:
@LP { Symbol Base } @Font { abc } 
@LP def 
@LP { OmegaSerifGreek Base } @Font { ghi } 
------------------------------
.ps file
%%Page: 1 1
%%BeginPageSetup
%%PageResources: font Palatino-Roman
%%+ font Symbol
%%+ font OmegaSerifGreek
%%+ font Palatino-Bold
/pgsave save def
%%IncludeResource: font Palatino-Roman
/Palatino-Romanfnt1 vec2 /Palatino-Roman LoutRecode
/fnt1 { /Palatino-Romanfnt1 LoutFont } def
%%IncludeResource: font Symbol
/fnt2 { /Symbol LoutFont } def
%%IncludeResource: font OmegaSerifGreek
/fnt3 { /OmegaSerifGreek LoutFont } def
%%IncludeResource: font Palatino-Bold
/Palatino-Boldfnt4 vec2 /Palatino-Bold LoutRecode
/fnt4 { /Palatino-Boldfnt4 LoutFont } def
0.0500 dup scale 10 setlinewidth
%%EndPageSetup

gsave
0 0 translate
240 fnt1 0.0 0.0 0.0 setrgbcolor 11900 16840 0 16840 240 335 60 LoutGraphic
gsave
LoutPageSet
grestore
gsave
0 16840 translate
0.0000 rotate
7733 0 0 0 240 335 60 567 -5499 LoutGr2
1 LoutMargSet
grestore

grestore
7733 10774 0 10657 240 335 60 567 -16273 LoutGr2
1 LoutMargSet
grestore
240 fnt2 0 10597(abc)m 240 fnt1 0 10166(def)m 240 fnt3
0 9702(   )m 240 fnt4 2753 9396(Printed)m 3614(10)s 3907(July)s 22(,)k
4451(2002.)s 120 fnt1 2964 9245(~/mytex/chur)m 2(ch/tuesdays/p1)k 6(1.lt)k

grestore
0 0 0 0 240 335 60 567 -16273 LoutGr2
1 LoutMargSet
grestore

grestore

grestore

grestore

pgsave restore
showpage

%%Trailer
%%DocumentNeededResources: font Palatino-Roman
%%+ font Palatino-Bold
%%+ font Symbol
%%+ font OmegaSerifGreek
%%DocumentSuppliedResources: procset LoutStartUp
%%+  procset LoutBasicSetup
%%+ encoding vec2
%%Pages: 1
%%EOF
------------------------------
debugging stuff
ft: FontName returning Palatino Base
ft: FontChange( [//0.6cx, Palatino Base (undef 0.1ce), hyph_on:fill_on:adjust], 
[[ ["Symbol"]&0.1ce ["Base"] ]] )
ft: FontRead(Symbol, Base)
ft: FontRead returning: 3, name fnt2, fs 1000, xh2 250
ft: FontChange returning (scaled) 4 (XHeight2 = 60)
ft: FontWordSize( abc ), font = 4
ft:   examining `a' lig = 0
ft:   examining `b' lig = 0
ft:   examining `c' lig = 0
ft: FontWordSize returning 0 407 117 115
ft: FontWordSize(  ), font = 2
ft: FontWordSize returning 0 0 0 0
ft: FontWordSize(  ), font = 2
ft: FontWordSize returning 0 0 0 0
ft: FontWordSize(  ), font = 2
ft: FontWordSize returning 0 0 0 0
ft: FontWordSize(  ), font = 2
ft: FontWordSize returning 0 0 0 0
ft: FontWordSize(  ), font = 2
ft: FontWordSize returning 0 0 0 0
ft: FontWordSize(  ), font = 2
ft: FontWordSize returning 0 0 0 0
ft: FontWordSize( def ), font = 2
ft:   examining `d' lig = 0
ft:   examining `e' lig = 0
ft:   examining `f' lig = 2
ft:   processing ligature beginning at f
ft: FontWordSize returning 0 340 118 60
ft: FontFamilyAndFace( 2 )
ft: FontName returning Palatino Base
ft: FontChange( [//0.6cx, Palatino Base (undef 0.1ce), hyph_on:fill_on:adjust], 
[[ ["OmegaSerifGreek"]&0.1ce ["Base"] ]] )
ft: FontRead(OmegaSerifGreek, Base)
ft: FontRead returning: 5, name fnt3, fs 1000, xh2 355
ft: FontChange returning (scaled) 6 (XHeight2 = 85)
ft: FontWordSize( ghi ), font = 6
ft:   examining `g' lig = 1
ft:   unacc[g] = 0, replacing by space
ft: FontFamilyAndFace( 6 )
ft: FontName returning OmegaSerifGreek Base
lout file "/tmp/ZZ1.lout":
   14,38: character "g" replaced by space (it has no glyph in font 
OmegaSerifGreek Base)
ft:   examining `h' lig = 1
ft:   unacc[h] = 0, replacing by space
ft: FontFamilyAndFace( 6 )
ft: FontName returning OmegaSerifGreek Base
   14,38: character "h" replaced by space (it has no glyph in font 
OmegaSerifGreek Base)
ft:   examining `i' lig = 1
ft:   unacc[i] = 0, replacing by space
ft: FontFamilyAndFace( 6 )
ft: FontName returning OmegaSerifGreek Base
   14,38: character "i" replaced by space (it has no glyph in font 
OmegaSerifGreek Base)
ft: FontWordSize returning 0 0 0 0
ft: FontFamilyAndFace( 2 )
ft: FontName returning Palatino Base
------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]