diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-12-28 02:44:53 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-12-28 02:44:53 +0100 |
commit | a784490c3d6a27467c930594ca8b78585ab65baf (patch) | |
tree | 6791d5f859edbbf599740dde8336fb0298ca9a77 /doc/context/sources/general/manuals/followingup | |
parent | 4a099fb402241bb64a08a0167b458bed09ec8a3e (diff) | |
download | context-a784490c3d6a27467c930594ca8b78585ab65baf.tar.gz |
2020-12-28 01:40:00
Diffstat (limited to 'doc/context/sources/general/manuals/followingup')
-rw-r--r-- | doc/context/sources/general/manuals/followingup/followingup-fonts.tex | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/doc/context/sources/general/manuals/followingup/followingup-fonts.tex b/doc/context/sources/general/manuals/followingup/followingup-fonts.tex index fbcf05f34..c8736e4c4 100644 --- a/doc/context/sources/general/manuals/followingup/followingup-fonts.tex +++ b/doc/context/sources/general/manuals/followingup/followingup-fonts.tex @@ -168,7 +168,44 @@ Speeds up a bit for Pagella and even more when we use Cambria. Keep in mind that that a body font switch also involves setting up some math. Anyway, as a proof of concept it worked out well. -The scaled, as mentioned, works with pseudo scales but that is sometimes a bit +Glyphs can have offsets and these are used for implementing \OPENTYPE\ features. However, +they are also available at the \TEX\ end. Take this + +\startbuffer +\ruledhbox{ + \ruledhbox{\glyph yoffset 1ex options 0 123} + \ruledhbox{\glyph xoffset .5em yoffset 1ex options "C0 123} + \ruledhbox{oeps{\glyphyoffset 1ex \glyphxscale 800 \glyphyscale\glyphxscale oeps}oeps} +} +\stopbuffer + +This example demonstrates that the \type {\glyph} primitive takes keywords: \type +{xoffset}, \type {yoffset}, \type {xscale}, \type {yscale}, \type {options}, +\type {font} and \type {id} where the last two take a font identifier or font id +(an positive number). + +\startbuffer +\samplefile{jojomayer} +{\glyphyoffset .8ex + \glyphxscale 700 \glyphyscale\glyphxscale + \samplefile{jojomayer}} +{\glyphyscale\numexpr3*\glyphxscale/2\relax + \samplefile{jojomayer}} +{\glyphyoffset -.2ex + \glyphxscale 500 \glyphyscale\glyphxscale + \samplefile{jojomayer}} +\samplefile{jojomayer} +\stopbuffer + +\typebuffer + +To quote Jojo Mayer: + +\startnarrower +\darkred \getbuffer +\stopnarrower + +The scales, as mentioned, works with pseudo scales but that is sometimes a bit cumbersome. This is why a special \type {\numericscale} primitive has been introduced. |