[metapost] logo10 P and S

Laurent Méhats laurent.mehats at gmail.com
Wed Jan 26 12:21:40 CET 2011


Le 25/01/2011 18:42, Laurent Méhats a écrit :
> Hello,
> 
> I came accross hardly discernible strokes that affect the smoothness of
> the contour lines of the P and S glyphs of the MetaPost logo, returned by
> the glyph operator. My gess is that they shouln't be there but I have no
> idea where they come from: the font, the glyph operator, a misuse (I'm
> always in a mess when it comes to fonts) ?

I could run fontforge on logo10.pfb (and surprisingly it didn't hurt): the
strange strokes are already there. Sorry for the noise.

Regards,
Laurent Méhats

> --%<-- test.mp
> beginfig(0)
> path pth[];
> idx:=0;
> for tkn within glyph "P" of "logo10":
>   pth[idx]:=pathpart tkn;
>   idx:=idx+1;
> endfor
> drawarrow pth[0];
> drawarrow pth[1];
> show subpath (5, 6) of pth[1];
> draw subpath (5, 6) of pth[1] withcolor red;
> draw fullcircle scaled 25 shifted point 5.5 of pth[1];
> endfig;
> 
> beginfig(1)
> path pth;
> for tkn within glyph "S" of "logo10":
>   pth:=pathpart tkn;
> endfor
> drawarrow pth;
> show subpath (7, 8) of pth;
> draw subpath (7, 8) of pth withcolor red;
> draw fullcircle scaled 25 shifted point 7.5 of pth;
> endfig;
> 
> end
> --%<-- test.mp
> 
> --%<-- test.log
> This is MetaPost, version 1.211 (TeX Live 2010) (kpathsea version 6.0.0)
> (mem=mpost 2011.01.19)  25 JAN 2011 18:41
> **test.mp
> (./test.mp{pdftex.map}<logo10.pfb>
>>> Path at line 10:
> (491,324)..controls (491,323) and (490,323)
>  ..(490,323)
> 
>  [0]<logo10.pfb>
>>> Path at line 21:
> (532,270)..controls (531,270) and (531,271)
>  ..(531,271)
> 
>  [1] )
> 2 output files written: test.0 .. test.1
> 
> --%<-- test.log
> 
> Regards,
> Laurent Méhats
> 
> --
> http://tug.org/metapost/
> 



More information about the metapost mailing list