1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00
wezterm/wezterm-font/src
Wez Furlong 67d8848676 ls-fonts: refine output a bit
It now outputs something that you could conceivably put into
your config file, although the intent is to show the canonical
way to reference the individual fonts that were found, rather
than to specify a fully baked list to paste into a config.

eg:

```
; ./target/debug/wezterm ls-fonts
Primary font:
wezterm.font_with_fallback({
  -- /home/wez/.fonts/OperatorMonoSSmLig-Medium.otf, FontDirs
  {family="Operator Mono SSm Lig", weight="DemiLight"},

  -- /home/wez/.fonts/OperatorMonoSSmLig-Medium.otf, FontConfig
  {family="Operator Mono SSm Lig", weight="DemiLight"},

  -- /home/wez/.fonts/MaterialDesignIconsDesktop.ttf, FontDirs
  "Material Design Icons Desktop",

  -- /home/wez/.fonts/terminus-bold.otb, FontDirs
  {family="Terminus", weight="Bold"},

  -- /home/wez/.fonts/JetBrainsMono-Regular.ttf, FontDirs
  "JetBrains Mono",

  -- /home/wez/.fonts/NotoColorEmoji.ttf, FontDirs
  "Noto Color Emoji",

  -- /home/wez/.fonts/MaterialDesignIconsDesktop.ttf, FontConfig
  "Material Design Icons Desktop",

  -- /usr/share/fonts/terminus-fonts/ter-u32n.otb, FontConfig
  "Terminus",

  -- /home/wez/.fonts/JetBrainsMono-Regular.ttf, FontConfig
  "JetBrains Mono",

  -- /home/wez/.fonts/NotoColorEmoji.ttf, FontConfig
  "Noto Color Emoji",

  -- <built-in>, BuiltIn
  "Last Resort High-Efficiency",

})
```
2021-04-14 09:06:02 -07:00
..
locator fonts: under-specify fontconfig pattern, match ourselves 2021-04-14 07:34:42 -07:00
rasterizer fonts: use ParsedFont rather than FontDataHandle 2021-04-08 17:11:23 -07:00
shaper fonts: use cap-height metric to scale fallback fonts 2021-04-13 23:02:27 -07:00
db.rs Add wezterm ls-fonts subcommand 2021-04-12 09:44:27 -07:00
fcwrap.rs fontconfig: remove over-eager unloading 2021-04-14 07:38:01 -07:00
ftwrap.rs fonts: use cap-height metric to scale fallback fonts 2021-04-13 23:02:27 -07:00
hbwrap.rs harfbuzz: skip some unused bits 2020-12-05 14:19:47 -08:00
lib.rs fonts: allow specifying weight/stretch/italic for each fallback font 2021-04-12 22:30:55 -07:00
parser.rs ls-fonts: refine output a bit 2021-04-14 09:06:02 -07:00
units.rs split gui into wezterm-gui executable 2020-10-24 16:40:15 -07:00