ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ec-lmr12 not loadable: Metric (TFM) file ... not found
@ 2007-03-09  0:42 Mojca Miklavec
  2007-03-09  1:12 ` Mojca Miklavec
       [not found] ` <200703090150.l291oL9x016415@jupiter.fsci.fuk.kindai.ac.jp>
  0 siblings, 2 replies; 4+ messages in thread
From: Mojca Miklavec @ 2007-03-09  0:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Akira Kakuto, Jonathan Kew, Jeong Dalyoung

Hello,

Here's the same error report that has been discussed on(off?) the list
already, but there has been no resolution so far. Should I ask the
XeTeX mailing list?


With texexec --xtx whatever I get:

(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-xtx.tex))
bodyfont        : 12pt rm is loaded
! Font \*12ptrmtfrm*=[ec-lmr12] not loadable: Metric (TFM) file or
installed font
 not found.
<to be read again>
                   \relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
                                                  \let \localrelativefontsiz...

\fontstrategy ...ame #1\csname #2#3#4#5\endcsname
                                                  \tryingfontfalse \fi

Well, OK, that's understandable. That's just an accidental mix-up with
otf files in ConTeXt. Line 73 of font-ini.mkii should read
    \def\fontfilesome#1{"#1"}
instead of
    \def\fontfilesome#1{"[#1]"}

So I fix the error, remake the formats with
    texexec --xtx --make en
but when I run a document I get

! Font \*12ptrmtfrm*=ec-lmr12 not loadable: Metric (TFM) file or installed font
 not found.

which really *is* strange, if nothing else because \font\a=ec-lmr12
works OK with plain XeTeX. The most weird part is that Akira claims
that fixing that solved the problem on his computer, while the problem
remains on my computer (both under standalone in Windows and gwTeX on
mac), and other users complain as well.

What could be the main reason for failure? One additional thing to
consider is that one also needs these files:
    http://dl.contextgarden.net/misc/lm-maps.zip
(for some reason they're in TeXLive, but not in gwTeX, and Gerben
doesn't accept user requests any more)
but that doesn't make any difference.

(Btw: could these files please be added to standalone ConTeXt or to
cont-tfm.zip? Not necessary all of them, but lm-ec.map could save a
whole lot of troubles to XeTeX users.)


The following issues dozens of errors first, but it works.

\font\a=ec-lmr12
\starttext
\a abc
\stoptext

If I delete "\a", it breaks (doesn't show anything). It looks as if
map files would be loaded too late during format generation (or not at
all), but I'm really clueless about what to do.

Mojca

PS for Hans - once again, here are the three possibilities for
different font types:

1.) standard TeX fonts - no difference
     \font\a=ec-lmr12
2.) any font installed on the system - referenced by name, can switch
to bold/italic/old style "automatically"
     \font\b="LM Roman12 Regular/B"
3.) open type fonts that reside anywhere in the texmf tree - using brackets
     \font\c="[lmroman12-regular]"

And an example of more complex usage (for which you claimed that it
should be moved to optional parameters).

\definefontsynonym  [DidotCaps]   ['Didot:mapping=tex-text;
         Letter Case=Small Capitals;Ligatures=!Common Ligatures'][encoding=uc]

It might be a good idea to have an extra parameter (additional
optional brrackets) for letting the system know that we're dealing
with an installed font (which means that one could automatically
support bold/italic/bolditalic and add "mapping=tex-text" option to
it).

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

* Re: ec-lmr12 not loadable: Metric (TFM) file ... not found
  2007-03-09  0:42 ec-lmr12 not loadable: Metric (TFM) file ... not found Mojca Miklavec
@ 2007-03-09  1:12 ` Mojca Miklavec
       [not found] ` <200703090150.l291oL9x016415@jupiter.fsci.fuk.kindai.ac.jp>
  1 sibling, 0 replies; 4+ messages in thread
From: Mojca Miklavec @ 2007-03-09  1:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hmmm ... perhaps the problem is not only in XeTeX. After reinstalling
ConTeXt (version: 2007.02.21), I now get

(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-spe.tex)
(/usr/local/gwTeX/texmf.pkgs/tex/context/base/type-akb.tex))
bodyfont        : 12pt rm is loaded
kpathsea: Illegal fontname `cmr7 ': contains ' '
! Font \*7ptmmmrrm*="cmr7 " not loadable: Metric (TFM) file not found.
<to be read again>
                   \relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
                                                  \let \localrelativefontsiz...

\dodosetmathfamilyA ...amily \fontsize \endcsname
                                                  \else \ifcsname \fontbody ...

Mojca

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

* Re: ec-lmr12 not loadable: Metric (TFM) file ... not found
       [not found] ` <200703090150.l291oL9x016415@jupiter.fsci.fuk.kindai.ac.jp>
@ 2007-03-09  2:32   ` Mojca Miklavec
  2007-03-13 17:45     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Mojca Miklavec @ 2007-03-09  2:32 UTC (permalink / raw)
  To: Akira Kakuto; +Cc: ntg-context, jonathan_kew, haksan

On 3/9/07, Akira Kakuto wrote:
> Hi Mojca,
>
> > Well, OK, that's understandable. That's just an accidental mix-up with
> > otf files in ConTeXt. Line 73 of font-ini.mkii should read
> >     \def\fontfilesome#1{"#1"}
> > instead of
> >     \def\fontfilesome#1{"[#1]"}
>
> Please check my previous mail with care
>      \def\fontfilesome#1{"#1"}
> should be
>      \def\fontfilesome#1{#1}
> (note that there is no quotation).
>
> If you use \def\fontfilesome#1{"#1"}, XeTeX tries to find
> OpenType or TrueType font #1 by using fontconfig, and fails.

I was blindly looking to the right point, but didn't notice the most
obvious thing. I'm sorry for the noise and thanks for pointing this
out again.

Hans, can you please replace the following block of code in
font-ini.mkii? (Please also include lm-ec.map into the ConTeXt zip if
possible - you may throw it out again as soon as the typescripts for
OpenType LM are ready.)


\def\fontfilename#1{"#1"}
\def\fontfilefile#1{"#1"}
\def\fontfilesome#1{#1} % I don't know about the two above, but " doesn't work

\beginXETEX

    \def\fontfilename#1{"#1"}
    \def\fontfilefile#1{"[#1]"}
    \def\fontfilesome#1{#1}

\endXETEX

Or perhaps:

\def\fontfilename#1{"#1"}
\def\fontfilefile#1{"#1"}
\def\fontfilesome#1{#1}

\beginXETEX
    \def\fontfilefile#1{"[#1]"}
\endXETEX

Mojca

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

* Re: ec-lmr12 not loadable: Metric (TFM) file ... not found
  2007-03-09  2:32   ` Mojca Miklavec
@ 2007-03-13 17:45     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2007-03-13 17:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Mojca Miklavec wrote:
> On 3/9/07, Akira Kakuto wrote:
>   
>> Hi Mojca,
>>
>>     
>>> Well, OK, that's understandable. That's just an accidental mix-up with
>>> otf files in ConTeXt. Line 73 of font-ini.mkii should read
>>>     \def\fontfilesome#1{"#1"}
>>> instead of
>>>     \def\fontfilesome#1{"[#1]"}
>>>       
>> Please check my previous mail with care
>>      \def\fontfilesome#1{"#1"}
>> should be
>>      \def\fontfilesome#1{#1}
>> (note that there is no quotation).
>>
>> If you use \def\fontfilesome#1{"#1"}, XeTeX tries to find
>> OpenType or TrueType font #1 by using fontconfig, and fails.
>>     
>
> I was blindly looking to the right point, but didn't notice the most
> obvious thing. I'm sorry for the noise and thanks for pointing this
> out again.
>
> Hans, can you please replace the following block of code in
> font-ini.mkii? (Please also include lm-ec.map into the ConTeXt zip if
> possible - you may throw it out again as soon as the typescripts for
> OpenType LM are ready.)
>
>
> \def\fontfilename#1{"#1"}
> \def\fontfilefile#1{"#1"}
> \def\fontfilesome#1{#1} % I don't know about the two above, but " doesn't work
>
> \beginXETEX
>
>     \def\fontfilename#1{"#1"}
>     \def\fontfilefile#1{"[#1]"}
>     \def\fontfilesome#1{#1}
>
> \endXETEX
>
> Or perhaps:
>
> \def\fontfilename#1{"#1"}
> \def\fontfilefile#1{"#1"}
> \def\fontfilesome#1{#1}
>
> \beginXETEX
>     \def\fontfilefile#1{"[#1]"}
> \endXETEX
>
>   
sure, as long as you do the testing

Hans 

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

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

end of thread, other threads:[~2007-03-13 17:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-09  0:42 ec-lmr12 not loadable: Metric (TFM) file ... not found Mojca Miklavec
2007-03-09  1:12 ` Mojca Miklavec
     [not found] ` <200703090150.l291oL9x016415@jupiter.fsci.fuk.kindai.ac.jp>
2007-03-09  2:32   ` Mojca Miklavec
2007-03-13 17:45     ` 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).