Dear list, it seems that when using lmt_outline and kind=„reverse“, the drawing order is drawcolor of letter one, then fillcolor of letter one, then drawcolor of letter two, then fillcolor of letter two, and so on. The result is that the previous letters are covered by the drawcolor of the following letters, which is not beautiful and makes the text less readable. I think the correct drawing order should be drawcolor of all letters, then fillcolor of all letters. Btw ligatures (fl in „Auflage“ and fi in „Zupfinstrument“ in following mwe) are spared from this cumbersome behavior. I need the desired behavior with Arabic text at the moment, but any script is actually affected. \mainlanguage[de] \definefontfeature[default] [mode=node,liga=yes,kern=yes,tlig=yes, ccmp=yes,language=dflt, protrusion=quality, expansion=quality] \definefontfeature[fea] [mode=node, language=dflt, script=arab, init=yes, medi=yes, fina=yes, isol=yes, calt=yes, rlig=yes, tlig=yes, trep=yes, curs=yes, kern=yes, mark=yes ] \starttypescript [serif] [notonaskharabic] \definefontsynonym [notonaskharabic-Light] [name:notonaskharabic] [features=fea] \definefontsynonym [notonaskharabic-Bold] [name:notonaskharabic] [features=fea] \definefontsynonym [notonaskharabic-Italic] [name:notonaskharabic] [features=fea] \definefontsynonym [notonaskharabic-Bold-Italic] [name:notonaskharabic] [features=fea] \stoptypescript \starttypescript [serif] [notonaskharabic] \usetypescript[serif][fallback] \definefontsynonym [Serif] [notonaskharabic-Light] [features=fea] \definefontsynonym [SerifItalic] [notonaskharabic-Italic] [features=fea] \definefontsynonym [SerifBold] [notonaskharabic-Bold] [features=fea] \definefontsynonym [SerifBoldItalic] [notonaskharabic-Bold-Italic] [features=fea] \stoptypescript \starttypescript [notonaskharabic] \definetypeface [notonaskharabic] [rm] [serif] [notonaskharabic] [default] \stoptypescript \usetypescript[notonaskharabic] \definecolor [transparentgray] [s=.9,t=.8,a=1] \starttext \startMPcode{doublefun} draw lmt_outline [ text = "Auflage Zupfinstrument {\notonaskharabic \textdir TRT کرن}", kind = "fill", fillcolor = "black", drawcolor = "transparentgray", rulethickness = 4, ] xsized TextWidth ; draw lmt_outline [ text = "Auflage Zupfinstrument {\notonaskharabic \textdir TRT کرن}", kind = "reverse", fillcolor = "blue", drawcolor = "transparentgray", rulethickness = 4, ] xsized TextWidth shifted (0,-2cm); draw lmt_outline [ text = "Auflage Zupfinstrument {\notonaskharabic \textdir TRT کرن}", kind = "reverse", fillcolor = "gray", drawcolor = "blue", rulethickness = 4, ] xsized TextWidth shifted (0,-4cm); \stopMPcode \stoptext |
lmt_outline.pdf
Description: Adobe PDF document
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
