summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/typo-fkr.mkxl
blob: 726e02646dbfde128adf8b597b9bc20cfdd3b2b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%D \module
%D   [       file=typo-fkr,
%D        version=2016.10.10,
%D          title=\CONTEXT\ Typesetting Macros,
%D       subtitle=Additional Font Kerning,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Typesetting Macros / Additional Font Kerning}

\registerctxluafile{typo-fkr}{autosuffix}

\definesystemattribute[extrafontkern][public]

\unprotect

% none  : not across fonts (but still within)
% min   : min value across fonts
% max   : max value across fonts
% mixed : mean value across fonts
% reset : disable

% \permanent\protected\def\setextrafontkerns[#1]% defined at the lua end
%   {\clf_setextrafontkerns{#1}}

\permanent\protected\def\resetextrafontkerns
  {\c_attr_extrafontkern\attributeunsetvalue}

\appendtoks
    \resetextrafontkerns
\to \everyresettypesetting

\protect