[NTG-context] Problem with fonts

Mohamed Bana mbana.lists at googlemail.com
Tue Dec 9 05:46:36 CET 2008


i just updated the minimals and I can no longer typeset, even though

$ mtxrun --script fonts --list

shows the font


! LuaTeX error 
...mals/tex/texmf-context/tex/context/base/luat-log.lua:75: bad argument 
#2 to 'format' (string expected, got table)
stack traceback:
	[C]: in function 'format'
	...mals/tex/texmf-context/tex/context/base/luat-log.lua:75: in function 
'report'
	...mals/tex/texmf-context/tex/context/base/font-otf.lua:1431: in 
function 'after'
	...mals/tex/texmf-context/tex/context/base/font-otf.lua:895: in 
function 'load'
	...mals/tex/texmf-context/tex/context/base/font-otf.lua:1845: in 
function 'otf_to_tfm'
	...mals/tex/texmf-context/tex/context/base/font-otf.lua:2066: in 
function 'read_from_open_type'
	...mals/tex/texmf-context/tex/context/base/font-def.lua:333: in 
function <...mals/tex/texmf-context/tex/context/base/font-def.lua:315>
	(tail call): ?
	...mals/tex/texmf-context/tex/context/base/font-def.lua:250: in 
function 'read'
	...mals/tex/texmf-context/tex/context/base/font-def.lua:645: in 
function 'read'
	...mals/tex/texmf-context/tex/context/base/font-def.lua:752: in 
function 'command_2'
	<main ctx instance>:1: in main chunk.
\lowleveldefinefont ...s ", "\@@fontfallbacks " )}
                                                   \edef \somefontspec 
{at \s...
\xxdododefinefont ...efont {#4}\newfontidentifier
                                                   \let 
\localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname
                                                   \tryingfontfalse \fi
<inserted text> ...yle \fontalternative \fontsize
                                                   \fi \iftryingfont 
\fontstr...
\synchronizefont ...strategy \the \fontstrategies
                                                   \relax \fi 
\iftryingfont \...
<argument> \getvalue {\@style@ \fontstyle }
                                            \edef \fontstyle {\fontstyle 
}\if...
...
l.148 \setupbodyfont[mainface,13pt]
                                     %should be 12pt, use 12.5pt for 
minion a...
?


%%% test.tex %%%

% engine=luatex
\enableregime [utf-8]

\def\sc{\setfontfeature{smallcaps}}

\definefontfeature
     [default][default]
     [protrusion=quality,expansion=quality,mode=node,script=latn]

\definefontfeature
     [oldstyle][default]
     [protrusion=quality,expansion=quality,mode=node,script=latn,onum=yes]

\definefontfeature
     [smallcaps][default]
     [protrusion=quality,expansion=quality,mode=node,script=latn,smcp=yes]

\usetypescript  [serif]   [hanging] [pure]
\setupalign     [hanging]

\setfontfeature{oldstyle}

\usetypescriptfile[type-folio]
\definetypeface[mainface][rm][serif][warnockpro] [default] 
[features=default]
\definetypeface[mainface][ss][sans][myriadpro] [default] [features=default]
\definetypeface [mainface] [mm] [math]  [palatino] [default] 
[encoding=texnansi]
\setupbodyfont[mainface,13pt]

\starttext
{\tfa HELLO}
{\tfb WORLD}
\stoptext


%%% type-folio.tex %%%

\starttypescript [serif] [minionpro]
   \definefontsynonym [MinionPro-Regular]    [name:minionproregular]
   \definefontsynonym [MinionPro-Bold]       [name:minionprobold]
   \definefontsynonym [MinionPro-Italic]     [name:minionproit]
   \definefontsynonym [MinionPro-BoldItalic] [name:minionproboldit]
\stoptypescript

\starttypescript [serif] [minionpro]
   \definefontsynonym [Serif]           [MinionPro-Regular] 
[features=default]
   \definefontsynonym [SerifBold]       [MinionPro-Bold] 
[features=default]
   \definefontsynonym [SerifItalic]     [MinionPro-Italic] 
[features=default]
   \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic] 
[features=default]
   % \definefontsynonym [SerifSlanted]	   [SerifItalic] 
[features=default]
   \definefontsynonym [SerifCaps]       [Serif] 
[features=smallcaps]
\stoptypescript

\starttypescript [sans] [myriadpro]
   \setups[font:fallback:sans]
   % \definefontsynonym [MyriadPro-Regular]    [name:MyriadPro-Regular] 
    [features=default]
   % \definefontsynonym [MyriadPro-Bold]       [name:MyriadPro-Bold] 
    [features=default]
   % \definefontsynonym [MyriadPro-Italic]     [name:MyriadPro-It] 
    [features=default]
   % \definefontsynonym [MyriadPro-BoldItalic] [name:MyriadPro-BoldIt] 
    [features=default]
   \definefontsynonym [MyriadPro-Regular]    [name:myriadproregular]
   \definefontsynonym [MyriadPro-Bold]       [name:myriadprobold]
   \definefontsynonym [MyriadPro-Italic]     [name:myriadproit]
   \definefontsynonym [MyriadPro-BoldItalic] [name:myriadproboldit]
\stoptypescript

\starttypescript [sans] [myriadpro]
   \definefontsynonym [Sans]             [MyriadPro-Regular] 
[features=historic]
   \definefontsynonym [SansBold]         [MyriadPro-Bold] 
[features=historic]
   \definefontsynonym [SansItalic]       [MyriadPro-Italic] 
[features=historic]
   \definefontsynonym [SansBoldItalic]   [MyriadPro-BoldItalic] 
[features=historic]
   \definefontsynonym [SansCaps]         [Sans] 
[features=latin-smallcaps]
\stoptypescript

\starttypescript [serif] [warnockpro]
   \setups[font:fallback:serif]
   \definefontsynonym [WarnockPro-Regular]    [name:warnockproregular]
   \definefontsynonym [WarnockPro-Bold]       [name:warnockprobold]
   \definefontsynonym [WarnockPro-Italic]     [name:warnockproit]
   \definefontsynonym [WarnockPro-BoldItalic] [name:warnockproboldit]
\stoptypescript

\starttypescript [serif] [warnockpro]
   \definefontsynonym [Serif]           [WarnockPro-Regular] 
[features=default]
   \definefontsynonym [SerifBold]       [WarnockPro-Bold] 
[features=default]
   \definefontsynonym [SerifItalic]     [WarnockPro-Italic] 
[features=default]
   \definefontsynonym [SerifBoldItalic] [WarnockPro-BoldItalic] 
[features=default]
   \definefontsynonym [SerifCaps]       [Serif] 
[features=smallcaps]
\stoptypescript





Log;
(report.tex

ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.12.9  int: english/english

system         : cont-new loaded
(/home/mbana/context-minimals/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(/home/mbana/context-minimals/tex/texmf-context/tex/context/base/cont-new.mkiv) 
(/home/mbana/context-minimals/tex/texmf-context/tex/context/base/cont-mtx.tex))
system         : cont-fil loaded
(/home/mbana/context-minimals/tex/texmf-context/tex/context/base/cont-fil.tex
loading        : Context File Synonyms
)
system         : cont-sys loaded
(/home/mbana/context-minimals/tex/texmf-context/tex/context/user/cont-sys.tex 
(/home/mbana/context-minimals/tex/texmf-context/tex/context/base/type-tmf.tex) 
(/home/mbana/context-minimals/tex/texmf-context/tex/context/base/type-siz.tex) 
(/home/mbana/context-minimals/tex/texmf-context/tex/context/base/type-otf.tex))
bodyfont       : 12pt rm is loaded
specials       : pdftex loaded
language       : language en is active
system         : report.top loaded
(report.top)
color          : mpcmyk color space is supported
color          : mpspot color space is supported
color          : system rgb is global activated
interaction    : active
(report.tuo) (report.tuo)
system         : module bib loaded
(/home/mbana/context-minimals/tex/texmf-local/tex/context/bib/t-bib.tex
publications   : loading formatting style from bibl-apa
(/home/mbana/context-minimals/tex/texmf-local/tex/context/bib/bibl-apa.tex))
publications   : wrote a new auxiliary file report.aux
publications   : loading formatting style from bibl-ssa
(bibl-ssa.tex) 
(/home/mbana/context-minimals/tex/texmf-context/tex/context/base/page-run.tex
loading        : Context Page Macros / Runtime Macros
)
check          : missing or ungrouped '=' after 'frame' in line 115 (@@ef)
check          : missing or ungrouped '=' after 'frame' in line 115 (@@ex)
(type-folio.tex)
load otf | loading: /media/sdb1/Fonts/Minion Pro/MinionPro-Regular.otf
load otf | warning: The following table(s) in the font have been ignored 
by FontForge
load otf | warning:   Ignoring 'DSIG' digital signature table
load otf | warning: Warning: Mac and Windows entries in the 'name' table 
differ for the
  Fullname string in the language English (US)
  Mac String: Minion Pro
Windows String: MinionPro-Regular
load otf | warning: The glyph named mu is mapped to U+00B5.
But its name indicates it should be mapped to U+03BC.
load otf | warning: The glyph named Delta is mapped to U+2206.
But its name indicates it should be mapped to U+0394.
load otf | warning: The glyph named Omega is mapped to U+2126.
But its name indicates it should be mapped to U+03A9.
load otf | enhance: patch
load otf | enhance: before
load otf | enhance: enrich
load otf | enhance: registering tlig feature
load otf | enhance: registering trep feature
load otf | enhance: flatten
load otf | flattening 'specifications' tables
load otf | flattening 'anchor' tables
load otf | flattening 'gpos' tables
load otf | flattening 'gsub' tables
load otf | enhance: analyze
load otf | enhance: after
load otf | replacing 'kerns' tables by 'mykerns' tables
! LuaTeX error 
...mals/tex/texmf-context/tex/context/base/luat-log.lua:75: bad argument 
#2 to 'format' (string expected, got table)
stack traceback:
	[C]: in function 'format'
	...mals/tex/texmf-context/tex/context/base/luat-log.lua:75: in function 
'report'
	...mals/tex/texmf-context/tex/context/base/font-otf.lua:1431: in 
function 'after'
	...mals/tex/texmf-context/tex/context/base/font-otf.lua:895: in 
function 'load'
	...mals/tex/texmf-context/tex/context/base/font-otf.lua:1845: in 
function 'otf_to_tfm'
	...mals/tex/texmf-context/tex/context/base/font-otf.lua:2066: in 
function 'read_from_open_type'
	...mals/tex/texmf-context/tex/context/base/font-def.lua:333: in 
function <...mals/tex/texmf-context/tex/context/base/font-def.lua:315>
	(tail call): ?
	...mals/tex/texmf-context/tex/context/base/font-def.lua:250: in 
function 'read'
	...mals/tex/texmf-context/tex/context/base/font-def.lua:645: in 
function 'read'
	...mals/tex



More information about the ntg-context mailing list