summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/typo-fkr.mkxl
blob: f56294dc057dec634eca6d77ca60a1e0056a31c1 (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}{}

\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]% % can be public implementor
  {\clf_setextrafontkerns{#1}}

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

\appendtoks
    \resetextrafontkerns
\to \everyresettypesetting

\protect