Commit Graph
35 Commits
Author SHA1 Message Date
Wez Furlong 551630c3a6 add missing windows specific constraint 2019-03-13 08:04:23 -07:00
Wez Furlong bb8c2c7876 adjust windows font fallback
I still can't get the emoji to render on windows, but these font names
are more appropriate choices.
2019-03-02 13:09:29 -08:00
Wez Furlong dba88d2102 clippy 2019-02-24 12:01:08 -08:00
Wez Furlong d113068fb0 add default_prog configuration option
@PedroHLC request this and it is easy enough to add, and gave me
the opportunity to clean up some code a little bit.
2019-02-22 18:48:38 -08:00
Wez Furlong 7277559abc fixup linux build for changes I made over on macOS 2019-02-22 15:58:19 -08:00
Wez Furlong 332b0faeaa CoreText renderer is now the default on macOS
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
2019-02-22 15:51:36 -08:00
Wez Furlong a5b5f82c6c font fallback now also applies to italic, bold etc.
This means that emoji now render when the text is italic
2019-02-20 20:52:46 -08:00
Wez Furlong b0f7a9d797 inching towards sane emoji rendering with glutin frontend 2019-02-20 17:44:35 -08:00
Wez Furlong 314f7cc103 Allow runtime selection of gui system
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.
2019-02-19 23:39:13 -08:00
Wez Furlong 571562351d migrate wezterm to 2018 edition 2019-02-18 23:17:33 -08:00
Wez Furlong 3dfaf7111f allow runtime selection of font loader/renderer
This cleans up the rats nest of conditional build bits
and allows easier testing and comparison of the systems.
2019-02-18 22:02:31 -08:00
Wez Furlong 79fb3e206b use fontload + freetype on windows 2019-02-18 21:09:54 -08:00
Wez Furlong a6fd1b000d teach fontconfig loader about new font attributes 2019-02-18 11:42:08 -08:00
Wez Furlong 418aa1d458 start teaching rusttype about fallback 2019-02-18 10:22:31 -08:00
Wez Furlong 018418a0c2 introduce a FontAttributes type for the config
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.
2019-02-18 09:04:17 -08:00
Wez Furlong 3a4673f22c increase default font size a little 2019-02-17 17:58:57 -08:00
Wez Furlong e2461b2380 add concept of implicit hyperlink to termwiz
Moves that functionality from wezterm+term into termwiz
2018-08-05 09:13:55 -07:00
Wez Furlong 472d243a33 cut over to termwiz Cell 2018-08-04 09:35:39 -07:00
Wez Furlong 039eadc05f update rustfmt 2018-07-11 08:30:49 -07:00
Wez Furlong 6efce9943c std::env::home_dir is deprecated, use an alternative 2018-07-11 08:29:11 -07:00
Wez Furlong 57b438f867 Ensure that the TERM variable is set
This is important when being launched directly from the window manager.
2018-04-11 12:04:53 -07:00
Wez Furlong f1db5dac40 clippy 2018-03-03 13:00:56 -08:00
Wez Furlong 022083ffde Ugh, meant to amend this into the prior commit 2018-03-01 08:18:19 -08:00
Wez Furlong 82164ba783 Add automatic style rule generation
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
2018-03-01 08:10:21 -08:00
Wez Furlong 4092796db3 Fix an issue where the background color rendered gray instead of black
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.
2018-02-24 17:28:35 -08:00
Wez Furlong abc06620b8 add support for implicit hyperlinks 2018-02-24 15:43:02 -08:00
Wez Furlong 90dd732aee make selected and cursor text fg/bg configurable
Previously we only allowed changing the cursor bg color, now we
get 4 different color settings for this!
2018-02-23 07:57:52 -08:00
Wez Furlong a7f2757452 rustfmt update 2018-02-20 22:08:19 -08:00
Wez Furlong 9a5e7999da TODONE 2018-02-20 08:13:36 -08:00
Wez Furlong 6af3b63d57 make scrollback size configurable 2018-02-10 09:43:54 -08:00
Wez Furlong 6b182ffe52 implement an equivalent to xterm*boldColor
I love my tomato bold!
2018-02-10 08:36:34 -08:00
Wez Furlong 3075e47c89 Allow configuring colors 2018-02-10 08:16:20 -08:00
Wez Furlong 4338eecc3f Allow not specifying font_rules in the config file 2018-02-07 15:42:12 -08:00
Wez Furlong edd5911535 Add a small font styling engine
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.
2018-02-07 09:23:24 -08:00
Wez Furlong 7ade4434fe Add basic config file parsing
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.
2018-02-07 07:51:04 -08:00