1if not modules then modules = { } end modules [ ' font-mis ' ] = {
2 version = 1 . 001 ,
3 comment = " companion to mtx-fonts " ,
4 author = " Hans Hagen, PRAGMA-ADE, Hasselt NL " ,
5 copyright = " PRAGMA ADE / ConTeXt Development Team " ,
6 license = " see context related readme files "
7}
8
9fonts = fonts or { }
10
11local helpers = fonts . helpers or { }
12fonts . helpers = helpers
13
14local handlers = fonts . handlers or { }
15fonts . handlers = handlers
16
17local otf = handlers . otf or { }
18handlers . otf = otf
19
20local readers = otf . readers
21
22if readers then
23
24 otf . version = otf . version or 3 . 111
25 otf . cache = otf . cache or containers . define ( " fonts " , " otl " , otf . version , true )
26
27 function fonts . helpers . getfeatures ( name , save )
28 local filename = resolvers . findfile ( name ) or " "
29 if filename ~ = " " then
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 local data = otf . load ( filename )
55 local resources = data and data . resources
56 if resources then
57 return data . resources . features , data . resources . foundtables , data
58 end
59 end
60 end
61
62else
63
64 function fonts . helpers . getfeatures ( name )
65
66 end
67
68end
69 |