-
Notifications
You must be signed in to change notification settings - Fork 0
/
font.lua
55 lines (49 loc) · 1.01 KB
/
font.lua
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
local wezterm = require("wezterm")
local fontName = "MonaspiceNe Nerd Font Mono"
return {
font = wezterm.font(fontName),
font_size = 15.0,
-- For some reason if we use MonaspiceNe this cannot be figured out by wezterm
font_rules = {
-- Bold
{
intensity = "Bold",
italic = false,
font = wezterm.font(fontName, { weight = "Bold" }),
},
-- Bold-and-italic
{
intensity = "Bold",
italic = true,
font = wezterm.font(fontName, {
weight = "Bold",
style = "Italic",
}),
},
-- normal-intensity-and-italic
{
intensity = "Normal",
italic = true,
font = wezterm.font(fontName, {
style = "Italic",
}),
},
-- half-intensity-and-italic (half-bright or dim); use a lighter weight font
{
intensity = "Half",
italic = true,
font = wezterm.font(fontName, {
weight = "Light",
style = "Italic",
}),
},
-- half-intensity-and-not-italic
{
intensity = "Half",
italic = false,
font = wezterm.font(fontName, {
weight = "Light",
}),
},
},
}