summaryrefslogtreecommitdiff
path: root/macros/luatex/optex/f-xcharter.opm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-02-13 03:00:51 +0000
committerNorbert Preining <norbert@preining.info>2020-02-13 03:00:51 +0000
commit8379012d545fd6a59fae8842d97d14ec0c2b27d7 (patch)
tree740889c25a2f4eb83c4433954ec856b568728575 /macros/luatex/optex/f-xcharter.opm
parent2dbfa6c67f1c50ff228326c6ec6cccfdecb61735 (diff)
CTAN sync 202002130300
Diffstat (limited to 'macros/luatex/optex/f-xcharter.opm')
-rw-r--r--macros/luatex/optex/f-xcharter.opm27
1 files changed, 27 insertions, 0 deletions
diff --git a/macros/luatex/optex/f-xcharter.opm b/macros/luatex/optex/f-xcharter.opm
new file mode 100644
index 0000000000..98db483ea4
--- /dev/null
+++ b/macros/luatex/optex/f-xcharter.opm
@@ -0,0 +1,27 @@
+%% This is part of OpTeX project, see http://petr.olsak.net/optex
+
+\_fontdecl [XCharter] \XCharter {An extension of Bitstream Charter}
+ {\caps \slant} {\rm \bf \it \bi} {TX}
+ "[XCharter-Roman]"
+
+\_wlog{\_detokenize{%
+Modifier:^^J
+ \caps ...... caps & small caps^^J
+}}
+
+\_protected\def \XCharter {%
+ \_def \_currfamily {XCharter}%
+ \_def \_fontnamegen {"[XCharter-\_currV]:\_capsV\_fontfeatures"}%
+ \_resetmod
+}
+\_moddef \resetmod {\_fsetV caps={} \_fvars Roman Bold Italic BoldItalic }
+\_moddef \slant {\_fvars Roman Bold Slanted BoldSlanted }
+\_moddef \caps {\_fsetV caps=+smcp;+onum; }
+
+\_initfontfamily % new font family must be initialized
+
+\_endcode
+
+See the file `f-heros.opm` for information about principles of such
+font-macro-files.
+