summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-02-27 16:48:07 +0000
committerKarl Berry <karl@freefriends.org>2024-02-27 16:48:07 +0000
commitff3b6d10a05ce9bffa52a27ffa6e11e5ecf22c72 (patch)
tree35152df3770855d042b005decdfa9d63b686f446 /Master/texmf-dist/fonts
parent4624d267ff83f197bbce4cf296d291465069296c (diff)
context 2024.02.27 09:18, and luametatex
git-svn-id: svn://tug.org/texlive/trunk@70189 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/fonts')
-rw-r--r--Master/texmf-dist/fonts/map/luatex/context/demo-font.lum70
1 files changed, 70 insertions, 0 deletions
diff --git a/Master/texmf-dist/fonts/map/luatex/context/demo-font.lum b/Master/texmf-dist/fonts/map/luatex/context/demo-font.lum
new file mode 100644
index 00000000000..0beca031baa
--- /dev/null
+++ b/Master/texmf-dist/fonts/map/luatex/context/demo-font.lum
@@ -0,0 +1,70 @@
+if not modules then modules = { } end modules ['demo-font.lum'] = {
+ version = 1.001,
+ comment = "companion to font-map.lua",
+ author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
+ copyright = "PRAGMA ADE / ConTeXt Development Team",
+ license = "see context related readme files"
+}
+
+--[[
+
+ After some testing Taco and I decided that the lack of information
+ with regards to unicode mapping of alternative shapes can best be
+ handled by an auxiliary table. So, here is an example. This file
+ gets its place in TDS in:
+
+ <texroot>/fonts/map/luatex/context/demo-file.lum
+
+ We recommend that you use a lowercase filename, just to prevent
+ lookup errors. Font filenames are already such a mess.
+
+ A test file, dedicated to Dohyun Kim is:
+
+ \usemodule[fnt-20]
+
+ \starttext
+
+ \definefontfeature
+ [otftracker-kozminprovi-regular]
+ [mode=node,vrt2=yes,script=latn]
+
+ \setvariables
+ [otftracker]
+ [font=kozminprovi-regular,
+ sample=\char"3002]
+
+ \stoptext
+
+ In the resulting pdf file you will then find:
+
+ begincmap
+ /CIDSystemInfo
+ << /Registry (TeX)
+ /Ordering (FNUMTE-KozMinProVI-Regular)
+ /Supplement 0
+ >> def
+ /CMapName /TeX-Identity-FNUMTE-KozMinProVI-Regular def
+ /CMapType 2 def
+ 1 begincodespacerange
+ <0000> <FFFF>
+ endcodespacerange
+ 0 beginbfrange
+ endbfrange
+ 2 beginbfchar
+ <027B> <3002>
+ <1ED0> <3002>
+ endbfchar
+ endcmap
+
+ Of course this assumes that the font used is the same as we
+ have on our machines.
+
+]]--
+
+return {
+ version = 1.00,
+ fontname = "kozminprovi-regular.otf",
+ tounicode = {
+ ["Japan1.7888"] = 0x3002,
+ },
+}