summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/optex/base/f-sourcepro.opm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/optex/base/f-sourcepro.opm')
-rw-r--r--Master/texmf-dist/tex/optex/base/f-sourcepro.opm39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/optex/base/f-sourcepro.opm b/Master/texmf-dist/tex/optex/base/f-sourcepro.opm
new file mode 100644
index 00000000000..a8e847104e0
--- /dev/null
+++ b/Master/texmf-dist/tex/optex/base/f-sourcepro.opm
@@ -0,0 +1,39 @@
+%% This is part of the OpTeX project, see http://petr.olsak.net/optex
+
+\_famdecl [Source Pro] \Sourcepro {SourceSerifPro,SourceSansPro,SourceCodePro}
+ {\serif \sans \mono \light \elight \bolder \medium \caps} {\rm \bf \it \bi} {Termes}
+ {[SourceSerifPro-Regular]}
+ {\_def\_fontnamegen {[Source\_typfV Pro-\_currV]:\_capsV\_fontfeatures}}
+
+\_wlog{\_detokenize{%
+Modifiers:^^J
+ \serif ..... Serif family (default)^^J
+ \sans ...... Sans family^^J
+ \mono ...... Code family^^J
+ \light ..... \rm=Light, \bf=Semibold^^J
+ \elight .... \rm=Extra light, \bf=Regular^^J
+ \bolder .... \rm=Semibold, \bf=Black^^J
+ \medium .... \rm=Medium, \bf=Bold (only for \mono family)^^J
+ \caps ...... caps & small caps, only for \sans (\serif: only \rm,\bf)^^J
+}}
+
+\_moddef \resetmod {\_fsetV typf=Serif,caps={} \_fvars Regular Bold RegularIt BoldIt }
+\_moddef \serif {\_fsetV typf=Serif }
+\_moddef \sans {\_fsetV typf=Sans }
+\_moddef \mono {\_fsetV typf=Code }
+\_moddef \light {\_fvars Light Semibold LightIt SemiboldIt }
+\_moddef \elight {\_fvars ExtraLight Regular ExtraLightIt RegularIt }
+\_moddef \bolder {\_fvars Semibold Black SemiboldIt BlackIt }
+\_moddef \medium {\_fsetV typf=Code \_fvars Medium Bold MediumIt BoldIt }
+\_moddef \caps {\_fsetV caps=+smcp;+onum; }
+\_moddef \nocaps {\_fsetV caps={} }
+
+\_initfontfamily % new font family must be initialized
+
+\_loadmath {[texgyretermes-math]}
+
+\_endcode
+
+See the file `f-heros.opm` for information about principles of such
+font-macro-files.
+