Qwerasd
06a37f32be
font/sprite: use offset curve approximation for undercurl
2024-10-06 01:43:11 -04:00
Qwerasd
c454ef627b
fix(font/sprite): avoid underflow
...
There's a degenerate case where height < line_pos
2024-10-05 22:12:59 -04:00
Qwerasd
fd49fb7338
font/sprite: improve double underline legibility with min 2px gap
...
At small thicknesses, the legibility of the double underline is not
great when it's a 1px line, a 1px gap, and another 1px line.
2024-10-05 22:08:17 -04:00
Qwerasd
156f735f8d
font/sprite: fix undercurl rendering
...
- Limit max amplitude relative to cell width to avoid being too wavy
- Fix application of xiaolin-wu's for anti-aliasing too always be at
least 1px thick.
- Fix height calculation to avoid clipping bottom of wave at small
sizes.
2024-10-05 22:01:43 -04:00
Mitchell Hashimoto
bbacee66d0
font/sprite: fix out of bounds right on curly underline
...
Fixes #2321
2024-09-29 09:39:32 -07:00
Mitchell Hashimoto
f67a647a12
font/sprite: bounds checking for pixel writes on Pixman
2024-09-29 09:38:38 -07:00
Qwerasd
9a87001fa6
font/sprite: correct underline placement calculation
2024-09-25 11:56:01 -06:00
Qwerasd
49a3008919
font/sprite: reduce uneven gaps in dotted underline
2024-09-23 20:08:57 -06:00
Qwerasd
b3a7901b79
font/sprite: rework underline rendering, adjust positioning
2024-09-23 18:22:11 -06:00
Qwerasd
6917bcacad
font/sprite: fix 1px gap at right edge of dotted and dashed underlines
2024-09-23 18:13:46 -06:00
Qwerasd
10b8ca3c69
spelling: normalize grey -> gray
2024-08-11 18:31:01 -04:00
Łukasz Niemier
f9be02a20f
chore: clean up typos
2024-08-05 13:56:57 +02:00
Mitchell Hashimoto
0f348e809e
font: strikethrough uses sprite rendering
2024-04-22 10:25:33 -07:00
Mitchell Hashimoto
796d1312ff
font/sprite: rect must be smaller than canvas dims
2024-02-24 13:19:49 -08:00
Mitchell Hashimoto
759c8cddb4
font/sprite: test for thick underline, assertion on x/y for rect
2024-02-24 09:30:04 -08:00
em-dash
0f19251aa6
fix crash in underline drawing math
2024-02-24 20:49:51 +11:00
Matthew Winter
a81c7b7bb2
feat: improve variable naming
2023-11-01 19:04:20 +11:00
Matthew Winter
212b30a163
feat: change minimum height to 2
2023-11-01 11:51:32 +11:00
Matthew Winter
d7a16e0245
feat: update undercurl thickness and wave height
2023-10-31 21:53:04 +11:00
Matthew Winter
60b69a32d0
feat: update undercurl thickness and wave height
2023-10-31 21:23:53 +11:00
Matthew Winter
58f1653a16
feat: cleanup types and reduce casting
2023-10-29 14:17:46 +11:00
Mitchell Hashimoto
a249e5973d
font/underline: some additional type annotations
2023-10-28 10:40:51 -07:00
Matthew Winter
6d971de87a
feat: add x_facter comment and remove old code
2023-10-29 03:13:17 +11:00
Matthew Winter
a5eb746cf5
feat: update undercurl with antialiasing
2023-10-29 02:49:31 +11:00
Mitchell Hashimoto
b98cc3d79f
config: add remaining font modifiers
2023-10-04 22:08:19 -07:00
Mitchell Hashimoto
314f9287b1
Update Zig ( #164 )
...
* update zig
* pkg/fontconfig: clean up @as
* pkg/freetype,harfbuzz: clean up @as
* pkg/imgui: clean up @as
* pkg/macos: clean up @as
* pkg/pixman,utf8proc: clean up @as
* clean up @as
* lots more @as cleanup
* undo flatpak changes
* clean up @as
2023-06-30 12:15:31 -07:00
Mitchell Hashimoto
56f8e39e5b
Update zig, mach, fmt
2023-06-25 11:08:20 -07:00
Mitchell Hashimoto
1d45df17e4
font: underline sprites should never go out of bounds for canvas
2023-06-22 20:11:57 -07:00
Mitchell Hashimoto
43554c1b64
font: remove old logging
2023-06-22 16:07:43 -07:00
Mitchell Hashimoto
e810a7bf91
font: fix double underline drawing with very low underline positions
2023-06-22 16:07:10 -07:00
Mitchell Hashimoto
cfb8108279
font: curly underline has a minimum wave height
...
This fixes rendering issues with some fonts where the underline position
is too close to the bottom of the cell causing a very shallow curl.
2023-06-22 16:01:00 -07:00
Mitchell Hashimoto
cf519bcd75
Use procedurally generated sprites for cursors rather than shaders
2023-03-04 15:14:10 -08:00
Mitchell Hashimoto
b21e18a9e6
font: start converting Box font to our abstract canvas interface
2022-12-13 16:16:56 -08:00
Mitchell Hashimoto
f871630fa4
move Atlas to font
2022-11-28 10:35:46 -08:00
Mitchell Hashimoto
bfc657395a
curly underlines
2022-11-27 16:11:15 -08:00
Mitchell Hashimoto
fee681ac78
dashed underlines
2022-11-27 15:44:12 -08:00
Mitchell Hashimoto
6a32a30a16
font: render dotted underlines
2022-11-27 15:39:18 -08:00
Mitchell Hashimoto
278668c953
font: draw single and double underlines as sprites
2022-11-27 15:14:49 -08:00