summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/expl3/l3font.sty
blob: 78a6f23ec48bf24b4435d578a3c35cc279d8abbf (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
%%
%% This is file `l3font.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% l3font.dtx  (with options: `package')
%% 
%% 
%% EXPERIMENTAL CODE
%% 
%% Do not distribute this file without also distributing the
%% source files specified above.
%% 
%% Do not distribute a modified version of this file.
%% 
%% 
%% File: l3font.dtx Copyright (C) 1990-2011 LaTeX3 project
%%
%% It may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this
%% license or (at your option) any later version.  The latest version
%% of this license is in the file
%%
%%    http://www.latex-project.org/lppl.txt
%%
%% This file is part of the ``expl3 bundle'' (The Work in LPPL)
%% and all files in that bundle must be distributed together.
%%
%% The released version of this bundle is available from CTAN.
%%
%% -----------------------------------------------------------------------
%%
%% The development version of the bundle can be found at
%%
%%    http://www.latex-project.org/svnroot/experimental/trunk/
%%
%% for those people who are interested.
%%
%%%%%%%%%%%
%% NOTE: %%
%%%%%%%%%%%
%%
%%   Snapshots taken from the repository represent work in progress and may
%%   not work or may contain conflicting material!  We therefore ask
%%   people _not_ to put them into distributions, archives, etc. without
%%   prior consultation with the LaTeX Project Team.
%%
%% -----------------------------------------------------------------------
\RequirePackage{l3names}
\GetIdInfo$Id: l3font.dtx 2175 2011-03-03 12:16:46Z will $
          {L3 Experimental Font Loading}
\ProvidesExplPackage
  {\filename}{\filedate}{\fileversion}{\filedescription}
\package_check_loaded_expl:
\cs_new_protected:Npn \font_set:Nnn #1#2#3 { \tex_font:D #1 = #2 ~at~ #3 \scan_stop: }
\cs_new_protected:Npn \font_gset:Nnn #1#2#3 {
  \tex_global:D \tex_font:D #1 = #2 ~at~ #3 \scan_stop:
}
\cs_generate_variant:Nn \font_set:Nnn {c}
\cs_generate_variant:Nn \font_gset:Nnn {c}
\cs_set_eq:NN \font_set_eq:NN \tex_let:D
\cs_set_protected:Npn \font_gset_eq:NN { \tex_global:D \tex_let:D }
\cs_set:Npn \font_set_to_current:N #1 {
  \exp_after:wN \font_set_eq:NN \exp_after:wN #1 \tex_the:D \tex_font:D
}
\cs_set:Npn \font_gset_to_current:N #1 {
  \tex_global:D \exp_after:wN \font_set_eq:NN \exp_after:wN #1 \tex_the:D \tex_font:D
}
\luatex_if_engine:TF
{
  \cs_new:Npn \font_suppress_not_found_error:
    {\luatexsuppressfontnotfounderror=\c_one}
  \cs_new:Npn \font_enable_not_found_error:
    {\luatexsuppressfontnotfounderror=\c_zero}
}
{
  \xetex_if_engine:TF
  {
    \cs_new:Npn \font_suppress_not_found_error:
      {\suppressfontnotfounderror=\c_one}
    \cs_new:Npn \font_enable_not_found_error:
      {\suppressfontnotfounderror=\c_zero}
  }
  {
    \cs_new:Npn \font_suppress_not_found_error:
    {
      \msg_kernel_warning:nnx {l3font} {cmd-pdftex-unavail}
      {\font_suppress_not_found_error:}
    }
  }
}
\msg_kernel_new:nnn {l3font} {cmd-pdftex-unavail} {
  The~ command~ `\exp_not:n{#1}'~ is~ not~ available~ for~ the~ pdfTeX~ format.
}
\prg_new_conditional:Nnn \font_if_null:N {p,TF,T,F} {
  \if_meaning:w #1 \tex_nullfont:D
    \prg_return_true:
  \else:
    \prg_return_false:
  \fi:
}
%% 
%%
%% End of file `l3font.sty'.