Daniel Imms
ea79194925
Make the clear threshold relative to fg/bg difference
2022-07-10 08:49:09 -07:00
Daniel Imms
89b320a5e2
Clear glyph pixels when all channels differ < 35
...
Fixes #3892
Also helps with #3877
2022-07-10 07:22:33 -07:00
Daniel Imms
d24a27d93e
Fix clipping of non-powerline chars
...
See microsoft/vscode#152478
2022-06-17 08:01:10 -07:00
Daniel Imms
fb950fcbe5
Fix webgl clipping powerline y axis
...
Fixes #3861
2022-06-14 15:09:00 -07:00
Megan Rogge
6b16732192
exclude box and block glyphs from contrast ratio demands ( #3844 )
2022-06-01 17:05:27 -07:00
Daniel Imms
c502272373
Support selection foreground in webgl
...
Part of #3810
2022-05-16 09:40:07 -07:00
Daniel Imms
7c87f5b47a
Start to use new API in search addon
2022-05-10 05:31:49 -07:00
Daniel Imms
d29388394c
Get Webgl rendering fg/bg overrides
2022-05-10 04:53:31 -07:00
Daniel Imms
0c6877f46f
Move color to common, work with IColor
...
IColor is needed for the minimum contrast ratio function currently.
2022-05-09 14:00:39 -07:00
Megan Rogge
da33543ffb
align isPowerlineGlyph across renderers ( #3743 )
2022-04-20 14:25:46 -07:00
Megan Rogge
38f0dd9be2
apply to dom and webgl too ( #3742 )
2022-04-19 18:46:39 -07:00
Daniel Imms
51d18e533f
Merge branch 'master' into dev_wlw
2022-03-31 09:00:09 -07:00
Tobias Speicher
28dcd38a53
refactor: replace deprecated String.prototype.substr()
...
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com >
2022-03-25 20:41:06 +01:00
儿时
1e8901630c
Replace all getOption/setOption usage with options
2022-03-02 11:25:20 +08:00
Acid Chicken (硫酸鶏)
dbd3766a9d
chore: reflect reviews
2021-11-13 01:36:46 +09:00
Acid Chicken (硫酸鶏)
935a1ba903
fix(xterm-addon-webgl): wide characters overflow the cache canvas
2021-11-13 00:32:24 +09:00
Daniel Steinberg
59f940c19c
Set text baseline conditionally by browser.
2021-10-22 19:20:21 +00:00
meganrogge
c1413ce58d
fix #3427
2021-08-19 18:24:49 -07:00
Daniel Imms
53dbcbafb2
Ensure underscore is within cell bounds
...
Fixes #3423
2021-08-19 07:05:42 -07:00
Daniel Imms
338d94daf9
Fix webgl alignment issues
...
No idea why this worked but it did
2021-08-19 05:41:49 -07:00
Daniel Imms
3be97841a3
Rename setting customGlyphs
2021-08-19 05:20:40 -07:00
Daniel Imms
54ce0172b4
Add test custom glyph button to demo
2021-08-18 09:48:27 -07:00
Daniel Imms
011026a8d1
Get webgl glyphs scaling to cell size, invalidate on option change
2021-08-18 08:29:07 -07:00
Daniel Imms
da0928102b
Support shade char with patterns
2021-08-18 08:19:23 -07:00
Daniel Imms
fe7f28a7a0
Fix block elements on webgl, scale block elements to cell
2021-08-18 07:38:02 -07:00
Daniel Imms
0aaa20f873
Start of webgl integration
2021-08-18 07:31:35 -07:00
Daniel Imms
aad6f8147e
Increase underline/strikethrough width with font size
2021-07-09 07:44:10 -07:00
Daniel Imms
bc702d28ff
Support webgl strikethrough, fix underline position
...
Fixes #580
2021-07-09 07:39:19 -07:00
Daniel Imms
96dd021ca4
Support underline in webgl renderer
...
Fixes #2251
2021-07-09 07:32:25 -07:00
Daniel Imms
00fa7bec42
Null out secondary ligature chars in cache
2021-04-02 11:32:02 -07:00
Daniel Imms
b03a25f4c7
Webgl ligature support
...
Fixes #3094
2021-04-02 11:15:57 -07:00
Daniel Imms
6b3fd2f31a
Merge branch 'master' into spacing_eslint
2021-04-02 07:45:31 -07:00
Daniel Imms
f19d7f0b70
Require spacing of objects outside of test files
2021-04-02 07:08:06 -07:00
Daniel Imms
62f5b8291d
Use ideographic over middle
...
This seems to correctly center the glyphs within the cell, making powerline
fonts appear perfectly aligned.
Fixes #3281
2021-04-01 17:05:29 -07:00
Daniel Imms
62ca4b7e13
Correct restricted glyph padding
2021-04-01 17:00:02 -07:00
Daniel Imms
b6d3120086
Restrict all sides of powerline glyphs
2021-04-01 16:55:27 -07:00
Daniel Imms
117f990055
Don't pad powerline glyphs
...
Fixes #3278
2021-04-01 16:39:59 -07:00
Daniel Imms
e07b9684bb
Expose API to clear texture atlas
...
Using canvases on Electron (and plain Chromium I believe), when resuming
from sleep the graphics card may release the texture which results in
the terminal display and char atlas being corrupt. This API allows the
consumer to clear the texture atlas right after resuming, atlas warm up
is not done to simplify this process because the fact that atlases are
shared between multiple terminals complicates this.
Related microsoft/vscode#69665
2020-09-06 14:50:09 -07:00
Puneethnaik
61432ab65d
Made changes according as per Review Comments.
2020-06-09 23:34:53 +05:30
Daniel Imms
9ece6b1fbc
Center webgl text vertically
...
Fixes #2613
2020-04-21 18:20:10 -07:00
Daniel Imms
ca68a38f2c
Merge branch 'master' into 2604_color_naming
2019-12-27 02:58:22 +11:00
Daniel Imms
ee74130806
Standardize how colors helper lib is structured
...
Fixes #2604
2019-12-26 12:12:08 +11:00
Daniel Imms
929914da5d
Merge pull request #2626 from Tyriar/2634_texture_atlas
...
Expose texture atlas as API and use in demo
2019-12-12 09:45:19 +11:00
Daniel Imms
31669cbad6
Expose texture atlas as API and use in demo
...
Part of #2623
2019-12-11 14:26:12 -08:00
Daniel Imms
93cdee3bab
Support hidden in WebGL renderer
...
Fixes #2596
2019-12-09 19:39:59 -08:00
Daniel Imms
1ff1809ab7
Support opaque inverse background in webgl, add test
2019-11-25 15:06:28 -08:00
Daniel Imms
afe6cb6b86
Remove unused imports/functions
2019-11-25 09:12:39 -08:00
Daniel Imms
5aa3157672
Return inverse colors correctly
...
This probably wasn't causing a bug since the opposite values were
being returned, it was wrong and made the code confusing though.
2019-11-14 22:12:36 -08:00
Daniel Imms
c95337a742
Remove unneeded params from webgl funcs
2019-11-14 21:57:15 -08:00
Daniel Imms
2c959dfb2e
Keep a working AttributeData in WebglCharAtlas
2019-11-13 06:52:17 -08:00