From 6870da5ce1e3edfd0eff88ab38f695ca4a0a8234 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 26 Jan 2020 12:06:15 -0800 Subject: [PATCH] add some docs for font fallback --- docs/config/fonts.markdown | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/config/fonts.markdown b/docs/config/fonts.markdown index 6393b45fd..80621303b 100644 --- a/docs/config/fonts.markdown +++ b/docs/config/fonts.markdown @@ -40,6 +40,25 @@ family = "Operator Mono SSm Lig Medium" # italic = false ``` +If you'd like to specify fallback fonts (eg: you've got a killer +monospace font, but it doesn't have glyphs for the asian script +that you sometimes work with), you can specify multiple fonts that +wezterm will use in the order you specify: + +```toml +[[font.font]] +family = "My Preferred Font" + +# This is searched for glyphs that aren't found in the first one +[[font.font]] +family = "My second best font" + +# This is searched for glyphs that aren't found in either of +# the first two +[[font.font]] +family = "My third best font" +``` + You may specify rules that apply different font styling based on the attributes of the text rendered in the terminal. Rules are applied in the order that they are specified in the configuration