[luatex] Stroked Fonts in LuaMPlib

Henri Menke henrimenke at gmail.com
Sun Dec 1 02:10:44 CET 2019


You can get the outlines of OpenType fonts from Lua.  Here are two answers of
mine on TeX.SX which implement this using some utilities from ConTeXt:

https://tex.stackexchange.com/a/451951/
https://tex.stackexchange.com/a/479410/

Cheers, Henri

On 11/30/19 12:32 AM, Troy Henderson wrote:
> Several years ago, Laurent Méhats graciously helped me convert a "btex Some
> Text etex" picture in MetaPost to an array of outline paths that can be
> filled and/or stroked separately.  The solution can be found here:
> 
> https://tug.org/pipermail/metapost/2015-May/003083.html
> 
> This solution, however, does not work with "btex Some Text etex" pictures
> in MPlib because the individual tokens within the picture are identified as
> "stroked" (instead of "textual" in plain MetaPost).  Therefore, using
> Laurent's solution is not feasible to loop through the components of the
> MPlib picture since these components are not textual.
> 
> Are there any thoughts on how I can use LuaMPlib (specifically with
> LuaLaTeX and OpenType fonts) and stroke/fill the outline paths of the
> glyphs independently?
> 
> Thank you in advance,
> 
> Troy Henderson
> 



More information about the luatex mailing list