Wez Furlong
59de97034a
belt and suspenders to clip the copy region
...
a debug assertion triggers for me on macos because we were trying
to copy out of bounds. This makes the copy routine safe again.
2020-01-05 17:58:14 -08:00
Wez Furlong
bd0859bef6
Make it possible to more easily tweak atlas padding
2019-12-28 11:55:42 -08:00
Wez Furlong
f493139305
clippy
2019-12-21 23:13:26 -08:00
Wez Furlong
9a2c7a1485
failure -> anyhow + thiserror
2019-12-14 21:43:05 -08:00
Wez Furlong
51c2646eee
fonts: remove some unused code and fixup some warnings
2019-12-14 12:29:38 -08:00
Wez Furlong
a9b0197075
fonts: add an Allsorts shaper
...
Adds the ability to specify `--font-shaper Allsorts` and use that
for metrics and shaping.
It is sufficient to expand things like ligatures, but there's something
slightly off about how the metrics are computed and they differ slightly
from the freetype renderer, which leads to some artifacts when rendering
with opengl.
One of my tests is to `grep message src/main.rs` to pull out the line
that has a selection of emoji. The heart emoji is missing from that
line currently.
Refs: https://github.com/wez/wezterm/issues/66
2019-12-14 08:46:06 -08:00
Wez Furlong
00b9f188f3
window: improve avx bounds check
2019-11-28 09:00:13 -08:00
Wez Furlong
517084ff2f
clippy
2019-11-24 07:20:41 -08:00
Wez Furlong
e3f6375551
fix brightness/color of emoji in the opengl renderer
2019-11-03 22:01:35 -08:00
Wez Furlong
4116d7d523
remove byte-swapping workaround for opengl
...
We handle this with a temporary buffer for the upload, which is
a little gross but avoids leaking that implementation aspect
out to the rest of the code.
2019-10-27 10:07:14 -07:00
Wez Furlong
d97a84f984
render iterm2 image protocol in the software renderer
...
This is still a bit rough because the terminal parser doesn't
understand the pixel sizes, so it relies on the hard coded
cell dimensions being accurate.
2019-10-26 23:30:39 -07:00
Wez Furlong
c6ce005b2a
make new opengl frontend basically work on macos
...
It doesn't yet handle underlines or strikethrough.
Notably, live resizing now works, which is nice!
2019-10-24 08:27:11 -07:00
Wez Furlong
999e651b17
window: impl Texture2d for SrgbTexture2d
2019-10-07 08:34:54 -07:00
Wez Furlong
378e7b326f
only use simd if the region is wide enough
...
Refs: https://github.com/wez/wezterm/issues/40
2019-10-07 07:41:11 -07:00
Wez Furlong
85311373a5
clippy
2019-10-01 22:20:52 -07:00
Wez Furlong
29095f8560
software: remove a little bit of overhead from draw_image
2019-09-30 08:36:23 -07:00
Wez Furlong
b2212c3105
software: improve alpha blending for draw_line
2019-09-30 08:17:47 -07:00
Wez Furlong
b5e07005b7
software: fix aligment check
2019-09-30 07:52:31 -07:00
Wez Furlong
b0efba9300
improve linear f32 -> srgb8 conversion
...
This uses a combination of lookup tables and simd to reduce the
cpu utilization by about ~15% compared to the prior brute force
implementation.
2019-09-30 00:45:35 -07:00
Wez Furlong
07fcc96f5a
window: disable alignment based optimization for fill_pixel
2019-09-29 20:59:20 -07:00
Wez Furlong
c6fd88d8c5
add basic simd support for clearing rectangles
2019-09-29 20:24:26 -07:00
Wez Furlong
569408de66
software: handle OutOfTextureSpace condition
2019-09-29 12:42:51 -07:00
Wez Furlong
389c477b16
software: ligatures now render, but scaled emoji need work
2019-09-28 10:06:47 -07:00
Wez Furlong
8e38f34b6d
fix a couple of warnings
2019-09-22 21:02:02 -07:00
Wez Furlong
68f81e23f7
software render can now render basic glyphs
2019-09-22 08:12:52 -07:00
Wez Furlong
0d7d438270
separate Sprite and SpriteSlice impls
2019-09-21 14:25:12 -07:00
Wez Furlong
709990b9e7
use euclid crate for point/rect
2019-09-21 13:05:50 -07:00
Wez Furlong
3dce78bd9c
copy and adapt our opengl texture atlas code for the window crate
2019-09-21 09:00:08 -07:00
Wez Furlong
050dde6b4f
clean up draw_image api
2019-09-21 07:44:28 -07:00
Wez Furlong
896586809f
add Rect::bottom_right
2019-09-21 07:31:44 -07:00
Wez Furlong
6d902d8a39
introduce a Rect type
2019-09-21 00:19:31 -07:00
Wez Furlong
6d23be0164
use Image to generate underline glyphs
2019-09-15 19:09:08 -07:00
Wez Furlong
e6265c93a4
add arbitrary line drawing with anti-aliasing
2019-09-15 19:09:08 -07:00
Wez Furlong
311760df90
introduce a paint context trait
2019-09-15 19:09:08 -07:00
Wez Furlong
a88f0f1beb
improve performance for clear operations
2019-09-15 19:09:08 -07:00
Wez Furlong
f2928053aa
resurrect bitmap render code from 236960e1a8
...
Earlier in the life of wezterm we had software rendering in src/xgfx.rs.
This is the bitmap portion of that code from rev
236960e1a8 , tweaked slightly for more
recent changes to the palette crate.
2019-09-15 19:09:08 -07:00