typescript and font features bug?
Hi all, I am using the latest minimal and try to compile the following two files with luatex. The second file, using typescript and font features together, get a serious problem with the final pdf: punctuation centered unexpectedly in lines. For the first files, with no font features specified, it is OK. I do not know whether someone else can replicate this problem. But it happended on my laptop. All compiled are attached in this email. %FILE1: test1.tex \starttypescript[serif][myserif][name] \definefontsynonym[Serif][MinionPro-Regular][] \stoptypescript \definetypeface [myserif] [rm] [serif] [myserif] [default] \usetypescript[myserif] \setupbodyfont[myserif,rm,12pt] \starttext \input zapf \stoptext %FILE2: test2.tex \definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \starttypescript[serif][myserif][name] \definefontsynonym[Serif][MinionPro-Regular][features=minion] \stoptypescript \definetypeface [myserif] [rm] [serif] [myserif] [default] \usetypescript[myserif] \setupbodyfont[myserif,rm,12pt] \starttext \input zapf \stoptext -- Zhaopeng XING Tinbergen Institute
The attachment.
2008/9/19 Zhaopeng Xing
Hi all,
I am using the latest minimal and try to compile the following two files with luatex. The second file, using typescript and font features together, get a serious problem with the final pdf: punctuation centered unexpectedly in lines. For the first files, with no font features specified, it is OK. I do not know whether someone else can replicate this problem. But it happended on my laptop. All compiled are attached in this email.
%FILE1: test1.tex \starttypescript[serif][myserif][name] \definefontsynonym[Serif][MinionPro-Regular][] \stoptypescript
\definetypeface [myserif] [rm] [serif] [myserif] [default] \usetypescript[myserif] \setupbodyfont[myserif,rm,12pt]
\starttext \input zapf \stoptext
%FILE2: test2.tex \definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \starttypescript[serif][myserif][name] \definefontsynonym[Serif][MinionPro-Regular][features=minion] \stoptypescript
\definetypeface [myserif] [rm] [serif] [myserif] [default] \usetypescript[myserif] \setupbodyfont[myserif,rm,12pt]
\starttext \input zapf \stoptext
-- Zhaopeng XING
Tinbergen Institute
-- Zhaopeng XING Tinbergen Institute
btw, the MinionPro version in use is
Version 2.015;PS 002.000;Core 1.0.38;makeotf.lib1.7.9032
2008/9/19 Zhaopeng Xing
The attachment.
2008/9/19 Zhaopeng Xing
Hi all,
I am using the latest minimal and try to compile the following two files with luatex. The second file, using typescript and font features together, get a serious problem with the final pdf: punctuation centered unexpectedly in lines. For the first files, with no font features specified, it is OK. I do not know whether someone else can replicate this problem. But it happended on my laptop. All compiled are attached in this email.
%FILE1: test1.tex \starttypescript[serif][myserif][name] \definefontsynonym[Serif][MinionPro-Regular][] \stoptypescript
\definetypeface [myserif] [rm] [serif] [myserif] [default] \usetypescript[myserif] \setupbodyfont[myserif,rm,12pt]
\starttext \input zapf \stoptext
%FILE2: test2.tex \definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \starttypescript[serif][myserif][name] \definefontsynonym[Serif][MinionPro-Regular][features=minion] \stoptypescript
\definetypeface [myserif] [rm] [serif] [myserif] [default] \usetypescript[myserif] \setupbodyfont[myserif,rm,12pt]
\starttext \input zapf \stoptext
-- Zhaopeng XING
Tinbergen Institute
-- Zhaopeng XING
Tinbergen Institute
-- Zhaopeng XING Tinbergen Institute
Zhaopeng Xing wrote:
The attachment.
remark: using those st ligatures is pretty annoying (ok for older docs in french etc) the funny punctuation is probably due to the frac features .. i found (in other fonts) that frac is a rather weird feature in the sense that it has to be applied very selectively if only because the contextual analysis definitions might not be complete at all for me it makes such features rather useless and i'll probably cook up my own solution by simply parsing the node list and replacing glyphs; on the other hand, even then we end up with suboptimal outcome 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 -----------------------------------------------------------------
It seems that the problem is only happened to my laptop. But I am sure that
the minimal was properly installed. Maybe is it a rpwt!
2008/9/20 Hans Hagen
Zhaopeng Xing wrote:
The attachment.
remark: using those st ligatures is pretty annoying (ok for older docs in french etc)
the funny punctuation is probably due to the frac features .. i found (in other fonts) that frac is a rather weird feature in the sense that it has to be applied very selectively if only because the contextual analysis definitions might not be complete at all
for me it makes such features rather useless and i'll probably cook up my own solution by simply parsing the node list and replacing glyphs; on the other hand, even then we end up with suboptimal outcome
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 -----------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Zhaopeng XING Tinbergen Institute
well, rpwt is not an international word. I think you should wait for your rp
coming and reinstall it.
On Sun, Sep 21, 2008 at 12:24 AM, Zhaopeng Xing
It seems that the problem is only happened to my laptop. But I am sure that the minimal was properly installed. Maybe is it a rpwt!
2008/9/20 Hans Hagen
Zhaopeng Xing wrote:
The attachment.
remark: using those st ligatures is pretty annoying (ok for older docs in french etc)
the funny punctuation is probably due to the frac features .. i found (in other fonts) that frac is a rather weird feature in the sense that it has to be applied very selectively if only because the contextual analysis definitions might not be complete at all
for me it makes such features rather useless and i'll probably cook up my own solution by simply parsing the node list and replacing glyphs; on the other hand, even then we end up with suboptimal outcome
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 -----------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Zhaopeng XING
Tinbergen Institute
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Hello world! Every day is a new day.
I can confirm it is related to the frac featue.
The fonts in Acrobat Reader work ok.
However, Adobe FontFolio version appears to produce the problem.
Moreover, Adobe Brioso has the same problem.
On Sat, Sep 20, 2008 at 7:00 PM, Hans Hagen
Zhaopeng Xing wrote:
The attachment.
remark: using those st ligatures is pretty annoying (ok for older docs in french etc)
the funny punctuation is probably due to the frac features .. i found (in other fonts) that frac is a rather weird feature in the sense that it has to be applied very selectively if only because the contextual analysis definitions might not be complete at all
for me it makes such features rather useless and i'll probably cook up my own solution by simply parsing the node list and replacing glyphs; on the other hand, even then we end up with suboptimal outcome
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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Yue Wang wrote:
I can confirm it is related to the frac featue. The fonts in Acrobat Reader work ok.
they might not hav eall features; also, they're not supposed to be used other than in acrobat ----------------------------------------------------------------- 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 -----------------------------------------------------------------
remark: using those st ligatures is pretty annoying (ok for older docs in french etc)
Maybe that's why text in The Elements of Typographic Style disable the dlig feature? (In fact I love them and always enable dlig in my documents)
the funny punctuation is probably due to the frac features .. i found (in other fonts) that frac is a rather weird feature in the sense that it has to be applied very selectively if only because the contextual analysis definitions might not be complete at all
But it is strange that other engines render it well...
for me it makes such features rather useless and i'll probably cook up my own solution by simply parsing the node list and replacing glyphs; on the other hand, even then we end up with suboptimal outcome
Maybe that's why text in The Elements of Typographic Style disable the dlig feature? (In fact I love them and always enable dlig in my documents)
BTW, all Adobe Fonts have a bug: they puts ligatures like Th into the liga feature, not dlig.
But it is strange that other engines render it well...
I know why now: I have two different copies in texmf-fonts and osfontdir...
Yue Wang wrote:
Maybe that's why text in The Elements of Typographic Style disable the dlig feature? (In fact I love them and always enable dlig in my documents)
BTW, all Adobe Fonts have a bug: they puts ligatures like Th into the liga feature, not dlig.
at some point i will provide an interface to correct for such errors; after all, font vendors have no 'bug fixing' policy
But it is strange that other engines render it well...
maybe other engines know about the bugs -) 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 -----------------------------------------------------------------
Zhaopeng Xing wrote:
Hi all,
I am using the latest minimal and try to compile the following two files with luatex. The second file, using typescript and font features together, get a serious problem with the final pdf: punctuation centered unexpectedly in lines. For the first files, with no font features specified, it is OK. I do not know whether someone else can replicate this problem. But it happended on my laptop. All compiled are attached in this email.
\definefontfeature[minion][language=dflt, script=latn, mode=node, frac=yes, onum=yes, kern=yes, liga=yes, dlig=yes, protrusion=quality, expansion=quality] \starttypescript[serif][myserif][name] \definefontsynonym[Serif][RegularBold][features=minion] \stoptypescript \definetypeface [myserif] [rm] [serif] [myserif] [default] \usetypescript[myserif] \setupbodyfont[myserif,rm,12pt] \setupalign[hz,hanging] \starttext \input zapf \stoptext works ok; i don't have minion here (at least not an open type variant) so i cannot test that font ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Jianning Dong
-
Yue Wang
-
Zhaopeng Xing