summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/context/documents/general/manuals/luametatex.pdfbin1382144 -> 1381889 bytes
-rw-r--r--doc/context/sources/general/manuals/followingup/followingup-fonts.tex39
2 files changed, 38 insertions, 1 deletions
diff --git a/doc/context/documents/general/manuals/luametatex.pdf b/doc/context/documents/general/manuals/luametatex.pdf
index 03bd4ef8a..aa6067683 100644
--- a/doc/context/documents/general/manuals/luametatex.pdf
+++ b/doc/context/documents/general/manuals/luametatex.pdf
Binary files differ
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.