mirror of
https://github.com/acedanger/dotfiles.git
synced 2025-12-05 22:30:13 -08:00
78 lines
1.6 KiB
Lua
78 lines
1.6 KiB
Lua
---@module "picker.assets.fonts.droid-sans-nf"
|
|
---@author sravioli, akthe-at
|
|
---@license GNU-GPLv3
|
|
|
|
---@class PickList
|
|
local M = {}
|
|
|
|
local wt = require "wezterm"
|
|
|
|
M.get = function()
|
|
return { id = "droid-sans-nf", label = "Droid Sans Nerd Font" }
|
|
end
|
|
|
|
M.activate = function(Config, _)
|
|
local monaspace_features =
|
|
{ "dlig", "ss01", "ss02", "ss03", "ss04", "ss05", "ss06", "ss07", "ss08" }
|
|
|
|
Config.font = wt.font_with_fallback {
|
|
{
|
|
family = "DroidSansM Nerd Font",
|
|
weight = "Regular",
|
|
harfbuzz_features = {
|
|
"cv06",
|
|
"cv12",
|
|
"cv14",
|
|
"cv16",
|
|
"cv25",
|
|
"cv26",
|
|
"cv28",
|
|
"cv29",
|
|
"cv31",
|
|
"cv32",
|
|
"ss03",
|
|
"ss04",
|
|
"ss05",
|
|
"ss07",
|
|
"ss09",
|
|
},
|
|
},
|
|
{ family = "Noto Color Emoji" },
|
|
{ family = "LegacyComputing" },
|
|
}
|
|
|
|
Config.cell_width = 0.9
|
|
Config.font_rules = {
|
|
{
|
|
intensity = "Normal",
|
|
italic = true,
|
|
font = wt.font_with_fallback {
|
|
{
|
|
family = "Monaspace Radon",
|
|
style = "Normal",
|
|
weight = "Regular",
|
|
stretch = "Expanded",
|
|
harfbuzz_features = monaspace_features,
|
|
},
|
|
{ family = "Symbols Nerd Font" },
|
|
},
|
|
},
|
|
{
|
|
intensity = "Bold",
|
|
italic = true,
|
|
font = wt.font_with_fallback {
|
|
{
|
|
family = "Monaspace Krypton Var",
|
|
style = "Italic",
|
|
weight = "Black",
|
|
harfbuzz_features = monaspace_features,
|
|
scale = 1.1,
|
|
},
|
|
{ family = "Symbols Nerd Font" },
|
|
},
|
|
},
|
|
}
|
|
end
|
|
|
|
return M
|