wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.7k stars 790 forks source link

Force/override a font for a range of codepoints #346

Open bew opened 3 years ago

bew commented 3 years ago

Is your feature request related to a problem? Please describe. It's not really a problem, but it can be really handy to select a font for some codepoints, to ensure the rest of a font does not leak with unwanted glyphs, when you only wanted some symbols from that font, to override the symbols from another font.

I'm happy with the current fallback system, so this is pretty low priority

Describe the solution you'd like A config similar to Kitty's symbol_map: https://sw.kovidgoyal.net/kitty/conf.html#opt-kitty.symbol_map

Extracted doc:

Example: symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols

Map the specified unicode codepoints to a particular font. Useful if you need special rendering for some symbols, such as for Powerline. Avoids the need for patched fonts. Each unicode code point is specified in the form U+<code point in hexadecimal>. You can specify multiple code points, separated by commas and ranges separated by hyphens. symbol_map itself can be specified multiple times.

Syntax is: symbol_map codepoints Font Family Name

tecosaur commented 7 months ago

I'm aware this doesn't help make it technically any easier, but I'd like to just note that this is the feature keeping me on Kitty :slightly_smiling_face: