summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/fontloader-luaotfload/test-fontloader-2017-08-18.tex
blob: 1cdb8eeb5ec0950eb22d2e98534dbbd3089a4c34 (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
% !Mode:: "TeX:UTF-8:Main"
%needs a fontloader 2017-08-18 or later **and** a luatex 1.06!!!

\documentclass{article}


\directlua{fonts.handlers.otf.registerpalette("demo", {
        { g = 0 },
        { g = 0.5, b=0, r=1 },
        { r = 1  },
        { r = 0, b= 1, g= 0},
    }
    )}


\begin{document}
\font\Emoj={file:seguiemj.ttf:mode=node;colr=yes;}
     \Emoj \char"2661 \char"1F34D \char"1F986
     
\font\Emoj={file:seguiemj.ttf:mode=node;colr=demo;}
     \Emoj \char"2661 \char"1F34D \char"1F986

\font\cow={file:koeielettersot.ttf:mode=node;colr=demo;} at 30pt
    \cow ABC

\end{document}