I've added dingbats to the fallback list on macos as that is needed
for some symbols we use in tools at work.
With that, and some tweaks for allowing for missing letter glyphs
when loading a symbol font as a fallback, we can make that the
default for macOS
Closes https://github.com/wez/wezterm/issues/5
This allows choosing between X11 and Glutin, which simplifies some
conditional code and allows some short term flexibility on unix
systems. However, what it really opens up is running a future
headless server mode (think: tmux).
This change comes with the cost of temporarily breaking creating
a new window on x11.
This has a little more structure than the linux specfic
fontconfig_pattern and can be used in a future diff to
derive a fontconfig_pattern.
This is a breaking change for the config file format.
This looks reasonable with Liberation Sans Mono (which has italics!)
and Deja Vu Sans Mono (which has bold but not italics).
Fixes: https://github.com/wez/wezterm/issues/6
When using the default monospace font on ubuntu (typicaly
DejaVuSansMono), the texture atlas would end up the bottom left pixel
being a shade of gray.
Since we were using (0,0) coords for whitespace cells, all whitespace
cells would appear shaded gray.
We now reserve a black pixel in the bottom left of the underline texture
and switch to that for whitespace instead.
I added Debug support to the ColorPalette while tracking this down,
and figured that I might as well keep it.
This enables selecting an italic font when the cell is italic,
but has more power beyond just that simple property.
This runs a little hot on the CPU so there's probably some caching and
tweaking that can be done to make the evaluation a bit cheaper.
So that we no longer assume Operator Mono SSm.
We now default to `monospace`. I just tried this and the font metrics
appear to be wonky, so there's some tweaking to do.