| 1 |
%% S. Lurp --- STRETCHY Docs --- MIT License |
| 2 |
The Stretchy package (stylized as \stretchylogo) is a package for creating ``stretched'' symbols. |
| 3 |
These are symbols which can be arbitrarily stretched in some way, for example the e and t in the Stretchy logo |
| 4 |
itself. |
| 5 |
Stretchy is a plain-\TeX{} package, but works with \LaTeX{} as well. |
| 6 |
Stretchy works with both pdf\TeX{} and Lua\TeX. |
| 7 |
|
| 8 |
\bwarning |
| 9 |
Stretchy only currently supports the Computer Modern Roman 10pt font. |
| 10 |
Further support may or may not be added in the future. |
| 11 |
\eppbox |
| 12 |
|
| 13 |
Stretchy works by injecting PDF code directly into the underlying file in order to draw shapes that connect |
| 14 |
parts of preexisting glyphs. |
| 15 |
For example, take the Stretchy logo: |
| 16 |
|
| 17 |
\centerline{\stretchylogo} |
| 18 |
|
| 19 |
\noindent the e is made from two horizontal halves of the e glyph, connected by two bars drawn using PDF code, |
| 20 |
via \macro\pdfliteral s. |
| 21 |
The PDF code is injected so that the added graphical elements line up at roughly the correct placement, but |
| 22 |
this is done through measurements of the glyph, not by studying its source. |
| 23 |
This generally gives good results, but due to the fact that Stretchy mixes PDF path and glyph painting, |
| 24 |
PDF consumers do not always produce visually pleasing results at all levels of magnification. |
| 25 |
This is unavoidable (when using the method used by Stretchy) unfortunately. |
| 26 |
|