summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts/map/luatex
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2009-08-23 11:11:32 +0000
committerTaco Hoekwater <taco@elvenkind.com>2009-08-23 11:11:32 +0000
commit8fc3039c82d48605b5ca8b2eda3f4fdd755681e1 (patch)
tree3cd9bbdd599bc4d1ac0409e167fee2136e4c0ec9 /Master/texmf-dist/fonts/map/luatex
parent850fc99b7cd3ae7a20065531fe866ff7bae642ec (diff)
this is context 2009.08.19 17:10
git-svn-id: svn://tug.org/texlive/trunk@14827 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/fonts/map/luatex')
-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,
+ },
+}