diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/t2/cyrfinst/derivatives/ot2cj.etx')
-rw-r--r-- | Master/texmf-dist/tex/generic/t2/cyrfinst/derivatives/ot2cj.etx | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/t2/cyrfinst/derivatives/ot2cj.etx b/Master/texmf-dist/tex/generic/t2/cyrfinst/derivatives/ot2cj.etx new file mode 100644 index 00000000000..9f0d9a38b6c --- /dev/null +++ b/Master/texmf-dist/tex/generic/t2/cyrfinst/derivatives/ot2cj.etx @@ -0,0 +1,46 @@ +\relax + +% OT2cj.etx -- install a OT2-encoded faked small-caps & oldstyle font +% +% This is used exclusively to install faked small-caps fonts; +% real small caps fonts are installed using the default OT2.etx. + +\encoding + +\setcommand\lc#1#2{#1small} +\setcommand\uc#1#2{#1} +\setcommand\lclig#1#2{#1small} +\setcommand\uclig#1#2{#1} +\setcommand\digit#1{#1oldstyle} + +% The default letter spacing is 1/10 of the design size, with small +% caps 80% the size of large caps. + +\setint{smallcapsscale}{800} + +\ifisglyph{space}\then + \setint{interword}{\width{space}} +\else\ifisglyph{i}\then + \setint{interword}{\width{i}} +\else + \setint{interword}{333} +\fi\fi + +\ifisint{monowidth}\then + \setint{smallcapsextraspace} + {\div{\scale{\int{interword}}{\sub{1000}{\int{smallcapsscale}}}}{2}} + \setint{smallcapsspacing}{0} +\else + \setint{smallcapsextraspace}{0} + \setint{smallcapsspacing}{50} +\fi + +\ifisint{capspacing}\then + \setint{letterspacing}{\int{capspacing}} +\else + \setint{letterspacing}{\int{smallcapsspacing}} +\fi + +\inputetx{OT2} + +\endencoding |