[luatex] Use Math Glyphs from Text Font

Will Robertson wspr81 at gmail.com
Sun Oct 17 07:48:33 CEST 2010


On 2010-10-16 23:15:44 +1030, "C. Comren" 
<ccomren at gmail.com> said:

>> \newfontface\myfont{MyFont}
>> \makeatletter
>> \DeclareMathSymbol{A}{\mathalpha}{\zf at family}{`A}
>> \makeatother
>> 
>> or (probably better)
>> 
>> \ExplSyntaxOn
>> \fontspec_set_family:Nnn \myfont {} {MyFont}
>> \ExplSyntaxOff
>> \DeclareMathSymbol{A}{\mathalpha}{\myfont}{`A}
> 
> Thanks for your suggestion. However, I get the error message
> 
> ! LaTeX Error: Symbol font `MyFont(0)' is not defined.


Not sure what I was thinking, really. This should work better:

\ExplSyntaxOn
\fontspec_set_family:Nnn \myfont {} {MyFont}
\ExplSyntaxOff
\DeclareSymbolFont{EU2}{mysymfont}{\myfont}{m}{n}
\DeclareMathSymbol{A}{\mathalpha}{mysymfont}{`A}

Will




More information about the luatex mailing list