Hi, I uploaded a beta. The most significant (visible) change is in the way mp handles outlines. Here are some examples: % outlinetext (text) transformations ; % outlinetext.d (text) (draw options) transformations ; % outlinetext.f (text) (fill options) transformations ; % outlinetext.b (text) (draw options) (fill options) transformations ; % outlinetext.r (text) (fill options) (draw options) transformations ; \starttext \startMPpage draw outlinetext.b ("\framed[align=normal]{\input{tufte}}") (withcolor .5white) (withcolor red withpen pencircle scaled 1/10) xsized 10cm ; \stopMPpage \startMPpage draw outlinetext.r ("\framed[align=normal]{\input{tufte}}") (withcolor red withpen pencircle scaled 1/10) (withcolor .5white) xsized 10cm ; \stopMPpage \startMPpage draw outlinetext.d ("\framed[align=normal]{\input{tufte}}") (withcolor .5white) xsized 10cm ; \stopMPpage \startMPpage picture p ; p := outlinetext.p("PX") ; for i within p : draw i withcolor red withpen pencircle scaled 1/10 ; endfor ; \stopMPpage \stoptext If you say (will b edefault when no complaints): \startMPdefinitions let graphictext = new_graphictext ; \stopMPdefinitions the graphictext macro will also use this method. If you want a nice view on a font you can say: \useMPlibrary[outlines] \showshape[character=a,alternative=page] \stoptext or for a whole font: \setupbodyfont[pagella] \showshape[character=all,alternative=page] or \definedfont[almfixed] \showshape[character=all,alternative=page] Another change is a much faster reload of fonts database but as that doesn't happen often it might go unnoticed. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Sat, Jun 13, 2015 at 10:00 AM, Hans Hagen wrote:
Hi,
I uploaded a beta. The most significant (visible) change is in the way mp handles outlines. Here are some examples:
% outlinetext (text) transformations ; % outlinetext.d (text) (draw options) transformations ; % outlinetext.f (text) (fill options) transformations ; % outlinetext.b (text) (draw options) (fill options) transformations ; % outlinetext.r (text) (fill options) (draw options) transformations ;
\starttext
\startMPpage
draw outlinetext.b ("\framed[align=normal]{\input{tufte}}") (withcolor .5white) (withcolor red withpen pencircle scaled 1/10) xsized 10cm ;
\stopMPpage
\startMPpage
draw outlinetext.r ("\framed[align=normal]{\input{tufte}}") (withcolor red withpen pencircle scaled 1/10) (withcolor .5white) xsized 10cm ;
\stopMPpage
\startMPpage
draw outlinetext.d ("\framed[align=normal]{\input{tufte}}") (withcolor .5white) xsized 10cm ;
\stopMPpage
\startMPpage
picture p ; p := outlinetext.p("PX") ;
for i within p : draw i withcolor red withpen pencircle scaled 1/10 ; endfor ;
\stopMPpage
\stoptext
Amazing. This also makes it easy to "drop a shadow", a simplified version being something like: \starttext \startbuffer \framed[align=normal]{\bf\input{tufte}} \stopbuffer \startMPpage draw outlinetext.b ("\getbuffer") (withcolor .85white) (withcolor .85white withpen pencircle scaled 1) shifted (0.5,-0.5) ; draw outlinetext.f ("\getbuffer") (withcolor .7white) shifted (0.5,-0.5) ; draw outlinetext.b ("\getbuffer") (withcolor yellow) (withcolor black withpen pencircle scaled 1/10); \stopMPpage \stoptext ... but I believe one could now address this*** as well (with some extra hacking of shadings): http://tex.stackexchange.com/a/52823/6367 ;) ;) ;) The font previews are also amazing. Mojca *** Some time ago someone made me a poster on a colourful background in Photoshop (background had both black and white elements). He used a white font with black outline and gray dropped shadow. I reproduced the content in ConTeXt, but I wasn't able to reproduce the nice shadow that made the text stand out better and thus more readable. In the printing house they asked me why I went from good to worse (ie. from PhotoShop to TeX) by "decreasing the visibility" of letters. I assume that doing smooth shadow behind the letters should finally be possible in ConTeXt now as well. [Alan will probably disagree.]
Note that the || in tufte does not get handled transparently.
Alan
On Mon, 15 Jun 2015 00:21:56 +0200
Mojca Miklavec
On Sat, Jun 13, 2015 at 10:00 AM, Hans Hagen wrote:
Hi,
I uploaded a beta. The most significant (visible) change is in the way mp handles outlines. Here are some examples:
% outlinetext (text) transformations ; % outlinetext.d (text) (draw options) transformations ; % outlinetext.f (text) (fill options) transformations ; % outlinetext.b (text) (draw options) (fill options) transformations ; % outlinetext.r (text) (fill options) (draw options) transformations ;
\starttext
\startMPpage
draw outlinetext.b ("\framed[align=normal]{\input{tufte}}") (withcolor .5white) (withcolor red withpen pencircle scaled 1/10) xsized 10cm ;
\stopMPpage
\startMPpage
draw outlinetext.r ("\framed[align=normal]{\input{tufte}}") (withcolor red withpen pencircle scaled 1/10) (withcolor .5white) xsized 10cm ;
\stopMPpage
\startMPpage
draw outlinetext.d ("\framed[align=normal]{\input{tufte}}") (withcolor .5white) xsized 10cm ;
\stopMPpage
\startMPpage
picture p ; p := outlinetext.p("PX") ;
for i within p : draw i withcolor red withpen pencircle scaled 1/10 ; endfor ;
\stopMPpage
\stoptext
Amazing.
This also makes it easy to "drop a shadow", a simplified version being something like:
\starttext
\startbuffer \framed[align=normal]{\bf\input{tufte}} \stopbuffer
\startMPpage
draw outlinetext.b ("\getbuffer") (withcolor .85white) (withcolor .85white withpen pencircle scaled 1) shifted (0.5,-0.5) ;
draw outlinetext.f ("\getbuffer") (withcolor .7white) shifted (0.5,-0.5) ;
draw outlinetext.b ("\getbuffer") (withcolor yellow) (withcolor black withpen pencircle scaled 1/10);
\stopMPpage
\stoptext
... but I believe one could now address this*** as well (with some extra hacking of shadings): http://tex.stackexchange.com/a/52823/6367 ;) ;) ;)
The font previews are also amazing.
Mojca
*** Some time ago someone made me a poster on a colourful background in Photoshop (background had both black and white elements). He used a white font with black outline and gray dropped shadow. I reproduced the content in ConTeXt, but I wasn't able to reproduce the nice shadow that made the text stand out better and thus more readable. In the printing house they asked me why I went from good to worse (ie. from PhotoShop to TeX) by "decreasing the visibility" of letters. I assume that doing smooth shadow behind the letters should finally be possible in ConTeXt now as well. [Alan will probably disagree.]
On 6/15/2015 9:22 AM, Alan BRASLAU wrote:
Note that the || in tufte does not get handled transparently.
indeed ... not that i worry too much about those special catcodes now (something i'll look at when i need it) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Alan BRASLAU
-
Hans Hagen
-
Mojca Miklavec