diff options
author | Karl Berry <karl@freefriends.org> | 2017-07-13 23:12:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-07-13 23:12:08 +0000 |
commit | 89aa998bcb48fde73fb8c02e28350ca8b9042bc6 (patch) | |
tree | 5d32265a3f46be10802647d7fb209fd650415341 /Master/texmf-dist/tex/latex/microtype/mt-CharisSIL.cfg | |
parent | 5a237aa2394aa120794c276d4af43957742d3da4 (diff) |
microtype (8jul17)
git-svn-id: svn://tug.org/texlive/trunk@44791 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/microtype/mt-CharisSIL.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/microtype/mt-CharisSIL.cfg | 70 |
1 files changed, 50 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/microtype/mt-CharisSIL.cfg b/Master/texmf-dist/tex/latex/microtype/mt-CharisSIL.cfg index 7423b898f31..da5b1ed162f 100644 --- a/Master/texmf-dist/tex/latex/microtype/mt-CharisSIL.cfg +++ b/Master/texmf-dist/tex/latex/microtype/mt-CharisSIL.cfg @@ -38,7 +38,7 @@ %% ------------------------------------------------------------------------ %% \ProvidesFile - {mt-CharisSIL.cfg}[2013/03/13 v1.0 microtype config. file: Charis SIL (RS)] + {mt-CharisSIL.cfg}[2017/07/07 v1.1 microtype config. file: Charis SIL (RS)] %%% ----------------------------------------------------------------------- %%% INHERITANCE @@ -448,32 +448,62 @@ χ = {50,50}, } + % quick and dirty -- maybe we'll promote this to a + % regular key some time +\define@key{MT@pr@c}{command}{\csname #1\endcsname} + + % glyph names have changed with version 5.0 of Charis SIL: + % before: /a.SC, /b.SC, ... + % after: /a.sc, /b.sc, ... +\ifx\MT@lua\@undefined + \gdef\MT@get@CHARIS@SC{ + % test whether glyph "a.sc" exists + \ifnum\numexpr\XeTeXglyphindex "a.sc"\relax > 0 + \gdef\MT@CHARIS@SC{sc}% + \else + \gdef\MT@CHARIS@SC{SC}% + \fi + } +\else + \gdef\MT@get@CHARIS@SC{ + \gdef\MT@CHARIS@SC{\MT@lua{ + % check font version + if (tonumber(fontloader.info(font.getfont(font.current()).filename).version) < 5) then; + tex.print("SC"); + else; + tex.print("sc"); + end + }} + } +\fi + \SetProtrusion [ name = Charis-sc, - load = Charis-default ] + load = Charis-default, + command = {MT@get@CHARIS@SC} ] { encoding = {EU1,EU2,TU}, family = Charis SIL, shape = {sc} } { % ᴀ = {100,100}, % etc., doesn't work with \textsc - /a.SC = {100,100}, - /c.SC = {50, }, - /d.SC = { ,50}, - /f.SC = { ,50}, - /g.SC = {50, }, - /j.SC = {100, }, - /k.SC = { ,50}, - /l.SC = { ,50}, - /f_l.SC = { ,50}, - /o.SC = {50,50}, - /oe.SC = {50, }, - /q.SC = {50,70}, - /r.SC = { ,50}, - /t.SC = {50,100}, - /v.SC = {50,50}, - /w.SC = {50,50}, - /x.SC = {50,50}, - /y.SC = {50,50} + /a.\MT@CHARIS@SC = {100,100}, + /c.\MT@CHARIS@SC = {50, }, + /d.\MT@CHARIS@SC = { ,50}, + /f.\MT@CHARIS@SC = { ,50}, + /g.\MT@CHARIS@SC = {50, }, + /j.\MT@CHARIS@SC = {100, }, + /k.\MT@CHARIS@SC = { ,50}, + /l.\MT@CHARIS@SC = { ,50}, + /f_l.\MT@CHARIS@SC = { ,50}, + /o.\MT@CHARIS@SC = {50,50}, + /oe.\MT@CHARIS@SC = {50, }, + /q.\MT@CHARIS@SC = {50,70}, + /r.\MT@CHARIS@SC = { ,50}, + /t.\MT@CHARIS@SC = {50,100}, + /v.\MT@CHARIS@SC = {50,50}, + /w.\MT@CHARIS@SC = {50,50}, + /x.\MT@CHARIS@SC = {50,50}, + /y.\MT@CHARIS@SC = {50,50} } \endinput |