[XeTeX] Drop-shadows with outline fonts in XeTeX ?

Philip TAYLOR (Webmaster, Ret'd) P.Taylor at Rhul.Ac.Uk
Wed Jun 1 23:48:38 CEST 2011


Wow, thank you Mojca : pretty impressive !  Would I be right
in guessing that your example is coded in ConTeXt ?

** Phil.

Mojca Miklavec wrote:
> \setupbodyfont[gentium,100pt]
>
> \starttext
>
> \bf \newdimen\mywidth
> \def\a#1#2{\mywidth=0.07pt\multiply\mywidth by #1%
> \defineeffect[a][alternative=outer,rulethickness=\mywidth]\starteffect[a]Thai-An\stopeffect}
>
> \startMPpage
> for i=0 upto 100:
> 	draw textext("\a{"&  decimal(100-i)&  "}{"&  decimal(i)&"}") shifted
> ((100-i)*0.017pt,-(100-i)*0.007pt) withcolor (i/300)[white,black];
> endfor;
> draw textext("Thai-An") withcolor blue;
> \stopMPpage
>
> \stoptext


More information about the XeTeX mailing list