summaryrefslogtreecommitdiff
path: root/macros/optex/base/f-libertine.opm
blob: bd90bedf0fde6442b72156f8f49c4faa29caf358 (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
%% This is part of the OpTeX project, see http://petr.olsak.net/optex

\_famdecl [Linux Libertine] \Libertine {Free Linux Libertine fonts}
        {\sans \mono \caps \semibold} {\rm \bf \it \bi \initials \displ \keybr} {Libertinus}
        {[LinLibertine_R]}
        {\_def\_fontnamegen {[Lin\_subfamV _\_currV]:\_capsV\_fontfeatures}}

\_wlog{\_detokenize{%
Modifiers:^^J
 \sans ...... smaller serifs^^J
 \mono ...... non-proportional^^J
 \semibold .. semi-bold variants (changed only \bf, \bi)^^J
 \caps ...... caps & small caps^^J%
Special variants:^^J
 \initials .. special initials (only uppercase letters)^^J
 \displ ..... display variant, suitable at big sizes^^J
 \keybr ..... keyboard, emulates keyboard buttons^^J
}}

\_moddef \resetmod {\_fsetV subfam=Libertine,caps={} \_fvars R RB RI RBI }
\_moddef \sans     {\_fsetV subfam=Biolinum \_fvars R RB RI RBO }
\_moddef \mono     {\_fsetV subfam=Libertine \_fvars M MB MO MBO }
\_moddef \semibold {\_fsetV subfam=Libertine \_fvars R RZ RI RZI }
\_moddef \caps     {\_fsetV caps=+smcp;\_ffonum; }
\_moddef \nocaps   {\_fsetV caps={} }

\_famvardef \initials {\_fsetV subfam=Libertine \_fvars I . . . \rm}
\_famvardef \displ    {\_fsetV subfam=Libertine \_fvars DR . . . \rm}
\_famvardef \keybr    {\_fsetV subfam=Biolinum  \_fvars K . . . \rm}

\_initfontfamily % new font family must be initialized

\_loadmath {[LibertinusMath-Regular]}

\_endcode

This file declares Linux Libertine font family from font files. The
following fonts are provided:

normal:  "[LinLibertine_R]:\_fontfeatures"
         "[LinLibertine_RB]:\_fontfeatures"
         "[LinLibertine_RI]:\_fontfeatures"
         "[LinLibertine_RBI  ]:\_fontfeatures"
         "[LinLibertine_RZI]:\_fontfeatures"
         "[LinLibertine_RZ]:\_fontfeatures"
mono:    "[LinLibertine_M]:\_fontfeatures"  
         "[LinLibertine_MB]:\_fontfeatures"  
         "[LinLibertine_MO]:\_fontfeatures"  
         "[LinLibertine_MBO]:\_fontfeatures" 
sans:    "[LinBiolinum_RB]:\_fontfeatures" 
         "[LinBiolinum_RBO]:\_fontfeatures" 
         "[LinBiolinum_R]:\_fontfeatures" 
         "[LinBiolinum_RI]:\_fontfeatures"  
special: "[LinLibertine_I]:\_fontfeatures"   
         "[LinLibertine_DR]:\_fontfeatures"   
         "[LinBiolinum_K]:\_fontfeatures"

See an alternative `f-libertine-s.opm` where the same font family is
declared using font names used in operating system.