1%D \module 2%D [ file=s-fonts-coverage, % s-fnt-31 3%D version=2011.01.02, 4%D title=\CONTEXT\ Style File, 5%D subtitle=Show Fonts Coverage, 6%D author=Hans Hagen, 7%D date=\currentdate, 8%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] 9%C 10%C This module is part of the \CONTEXT\ macro||package and is 11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for 12%C details. 13 14% begin info 15% 16% title : compare glyphs in fonts 17% 18% comment : show glyphs in several fonts alongside in order to to compare coverage 19% status : experimental, used for luatex testing 20% 21% end info 22 23\startmodule[fonts-coverage] 24 25\registerctxluafile{s-fonts-coverage}{} 26 27\installmodulecommandluasingle \showfontcomparison {moduledata.fonts.coverage.showcomparison} 28\installmodulecommandluasingle \showfontdifference {moduledata.fonts.coverage.showdifference} 29 30\stopmodule 31 32\continueifinputfile{s-fonts-coverage.mkiv} 33 34\usemodule[art-01] 35 36\starttext 37 38 \showfontcomparison 39 [list={texgyrepagella-regular.otf,texgyretermes-regular.otf,texgyrebonum-regular.otf}, 40 pattern=ogonek] 41 42% \showfontcomparison 43% [list={texgyrepagella-regular.otf,texgyretermes-regular.otf,nimbusroman-regular.afm}] 44 45 \page 46 47 % $e=mc²$ ${}²$ $²$ $x²ᶞ$ $x⁽²⁺²⁼²⁺²⁾$ $x²⁺²⁼²⁺²$ $x₅²$ $x²₅²$ 48 49 % \startluacode 50 % moduledata.fonts.coverage.showcomparison { 51 % list = { 52 % "texgyrepagella-math.otf", 53 % "texgyretermes-math.otf", 54 % "texgyrebonum-math.otf", 55 % } 56 % } 57 % \stopluacode 58 59 % \startluacode 60 % moduledata.fonts.coverage.showcomparison { 61 % list = "pirat.ttf", 62 % } 63 % \stopluacode 64 65 % \startluacode 66 % moduledata.fonts.coverage.showcomparison { 67 % list = { 68 % "lucidabrightot.otf", 69 % "cambria.ttf", 70 % "iwona-regular.otf", 71 % "texgyrepagella-regular.otf", 72 % "texgyretermes-regular.otf", 73 % "texgyrebonum-regular.otf", 74 % "antpolt-regular.otf", 75 % }, 76 % pattern = "OGONEK" 77 % } 78 % \stopluacode 79 80 % \loadfontgoodies[lucida-math] 81 % \loadfontgoodies[lm-math] 82 % 83 % \startluacode 84 % moduledata.fonts.coverage.showcomparison { 85 % list = { 86 % "LucidaBrightRegular.ttf", 87 % "LucidaBrightOne@lucida-math", 88 % "cambria.ttc(Cambria Math)", 89 % "xits-math.otf", 90 % "LMMath10-Regular@lmroman10-math", 91 % }, 92 % } 93 % \stopluacode 94 95 % \loadfontgoodies[px-math] 96 % \loadfontgoodies[lm-math] 97 % 98 % \startluacode 99 % moduledata.fonts.coverage.showcomparison { 100 % list = { 101 % "cambria.ttc(Cambria Math)", 102 % "xits-math.otf", 103 % -- "stixtwomath-regular.otf", -- watch out: the name changes 104 % "latinmodern-math.otf", 105 % -- "lucidabrightmathot.otf", 106 % -- "lucidabrightmathot-demi.otf", 107 % "texgyrepagella-math.otf", 108 % "texgyretermes-math.otf", 109 % "texgyrebonum-math.otf", 110 % -- "LMMath10-Regular@lmroman10-math", 111 % -- "pxmath@px-math", 112 % -- "txmath@tx-math", 113 % }, 114 % } 115 % \stopluacode 116 117 % \startluacode 118 % moduledata.fonts.coverage.showcomparison { 119 % list = { 120 % "dejavuserif.ttf", 121 % "dejavusans.ttf", 122 % "dejavusansmono.ttf", 123 % "lucidabrightot.otf", 124 % "cambria.ttf", 125 % "iwona-regular.otf", 126 % "texgyrepagella-regular.otf", 127 % "texgyretermes-regular.otf", 128 % "texgyrebonum-regular.otf", 129 % "antpolt-regular.otf", 130 % }, 131 % pattern = "CELSIUS,FAHRENHEIT" 132 % } 133 % \stopluacode 134 135\stoptext 136 |