|
9 | 9 | \frame[id=specimen_overlay,left=5%pw,right=95%pw,top=5%ph,bottom=top(footnotes)] |
10 | 10 | \frame[id=arrows,left=5%pw,right=95%pw,top=5.22%ph,bottom=top(footnotes)] |
11 | 11 | \set[parameter=shaper.spaceenlargementfactor,value=1] |
12 | | -\script{ |
13 | | -SILE.settings.set("document.spaceskip", SILE.length("1spc")) |
14 | | -SILE.settings.set("shaper.spacestretchfactor", 0) |
15 | | -SILE.settings.set("shaper.spaceshrinkfactor", 0) |
16 | | -SILE.scratch.counters.folio.value = &&PAGE&& |
17 | | -wrapper = "\\typeset-into[frame=%s]{%s\n%s}" |
18 | | -font_dist = [[\font[filename=dist/]] .. ("&&FONT&&") .. ',%s]' |
19 | | -font_arrows = [[\font[filename=dist/&&FONTFAMILY&&-&&OS2WEIGHT&&-JustArrows&&WEIGHT&&.otf]%]] |
20 | | -content_inner = [[\neverindent |
21 | | -\par \font[size=3em]{&&FONTFAMILY_H&&} |
| 12 | +\frame[id=fontname,left=5%pw,right=95%pw,top=1%ph,bottom=1% + height(folio)] |
| 13 | +\typeset-into[frame=fontname]{ |
| 14 | +\noindent\font[family=TT2020Base,size=5pt]{&&FONT&&} |
| 15 | +\begin[filename=dist/&&FONT&&]{font} |
| 16 | +\par \font[features=+ss01,size=3em]{&&FONTFAMILY_H&&} |
22 | 17 | \bigskip |
23 | | -\par &&STYLE&& |
| 18 | +\par \font[features=+ss01]{&&STYLE&&} |
24 | 19 | \bigskip |
25 | 20 | \par Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz |
26 | 21 | \par ÁáÀàẢảÃãẠạĂăẮắẰằẲẳẴẵẶặÂâẤấẦầẨẩẪẫẬậĐđÉéÈèẺẻẼẽẸẹÊêẾếỀềỂểỄễỆệÍíÌìỈỉĨĩỊịÓóÒòỎỏÕõỌọ |
27 | 22 | \par ÔôỐốỒồỔổỖỗỘộƠơỚớỜờỞởỠỡỢợÚúÙùỦủŨũỤụƯưỨứỪừỬửỮữỰựÝýỲỳỶỷỸỹỴỵ |
28 | 23 | \par abcdefghijklmnopqrstuvwxyz |
29 | | -\par 1234567890 !@#$\%%&*() []{};':",./ \\ № ₿ ₱ ₹ † |
| 24 | +\par 1234567890 !@#$\%&*() []{};':",./ \\ № ₿ ₱ ₹ † |
30 | 25 | \par The quick brown fox jumps over the lazy dog. |
31 | 26 | \par Laŭ Ludoviko Zamenhof bongustas freŝa ĉeĥa manĝaĵo kun spicoj. |
32 | 27 | \par В чащах юга жил бы цитрус? Да, но фальшивый экземпляр! |
33 | | -]] |
34 | | -if string.find("&&FONT&&", "Arrows") then |
35 | | - font_dist = string.format(font_dist, "features=+ss01") |
36 | | -else |
37 | | - font_dist = string.format(font_dist, "") |
38 | | -end |
39 | | -contents = wrapper:format("specimen", font_dist, content_inner) |
40 | | -contents_overlay = wrapper:format("specimen_overlay", font_dist, content_inner) |
41 | | -contents_arrows = wrapper:format("arrows", font_arrows, content_inner) |
42 | | -SILE.doTexlike(contents) |
43 | | ---[[SILE.shaper = SILE.shapers.harfbuzz() |
44 | | -SILE.doTexlike(contents_overlay) |
45 | | -if string.find("&&FONT&&", "Arrows") then |
46 | | -SILE.outputter:pushColor({r = 1, g= 0, b = 0 }) |
47 | | -SILE.shaper = SILE.shapers.harfbuzz() |
48 | | -SILE.doTexlike(contents_arrows) |
49 | | -SILE.outputter:popColor() |
50 | | -end--]] |
51 | | -} |
52 | | -\frame[id=fontname,left=5%pw,right=95%pw,top=1%ph,bottom=1% + height(folio)] |
53 | | -\typeset-into[frame=fontname]{ |
54 | | -\noindent\font[family=TT2020Base,size=5pt]{&&FONT&&} |
| 28 | +\end{font} |
55 | 29 | } |
56 | 30 | \end{document} |
0 commit comments