Commit Graph

1153 Commits

Author SHA1 Message Date
Francesco Abbate ce664f85b1 Move rendering buffers pointers computations inside FontRendererBlendGammaSubpixel
The logic is to disentangle the code between renderer.c and FontRenderer
so that this latter has a simple, logical interface.
2020-06-11 17:33:57 +02:00
rxi 95b70b1b16 Revert "Removed __APPLE__ `#ifdef` from main.c"
This reverts commit 6a7e214d1c.
2020-06-11 15:05:39 +01:00
Francesco Abbate 18865fd32f Remove font renderer debug code 2020-06-09 16:55:26 +02:00
rxi ba6c14846b Added file-header pattern support to `syntax` 2020-06-08 16:11:22 +01:00
Francesco Abbate 047039a750 Require Lua 5.2 in Meson build 2020-06-08 12:35:36 +02:00
Francesco Abbate ba4c8dbbb5 Remove unneeded checks in get_font_vmetrics 2020-06-08 09:36:07 +02:00
Francesco Abbate bddc947b99 Fix pixel off-by-one error in subpixel font renderer hspan 2020-06-08 09:35:52 +02:00
Francesco Abbate 74de184e50 Move notes.md inside lib/font_renderer 2020-06-07 16:00:06 +02:00
rxi db471c0554 Version 1.07 2020-06-07 14:02:45 +01:00
Francesco Abbate e86ee053f3 Update version in meson build 2020-06-07 09:59:55 +02:00
Francesco Abbate 43d229a399 Remove no longer used tests and stb truetype dep 2020-06-07 09:59:31 +02:00
rxi 6a7e214d1c Removed __APPLE__ `#ifdef` from main.c 2020-06-07 08:57:57 +01:00
Francesco Abbate fc148d7a51 Merge remote-tracking branch 'rxi/master' into font-rendering-tests 2020-06-07 00:19:03 +02:00
Francesco Abbate e82d766c2b Add more debug information in font's bitmap images 2020-06-07 00:15:38 +02:00
Francesco Abbate b978873a58 Fix font's descender rounding to integer 2020-06-07 00:14:41 +02:00
Francesco Abbate 81289d651e Move font resize in a separate function 2020-06-06 19:11:14 +02:00
Francesco Abbate 8e796831f2 Fixed integer signed comparison warning 2020-06-06 19:03:41 +02:00
Francesco Abbate 646a594e89 Add optional const qualifiers 2020-06-06 14:58:19 +02:00
Francesco Abbate 609b31a3b9 Remove unused debug code 2020-06-06 14:54:11 +02:00
Francesco Abbate 229037293b Fix error in glyph lcd convolution 2020-06-06 14:53:44 +02:00
Francesco Abbate dcf6b06629 Cleanup debug code 2020-06-06 13:08:39 +02:00
Francesco Abbate d17fde1b13 WIP: debugging stuff 2020-06-06 10:52:50 +02:00
rxi 877d940c0e language_js improvements 2020-06-05 22:38:06 +01:00
Francesco Abbate 7b541b7de8 Do not use additional padding space in covers temporary array 2020-06-05 17:36:08 +02:00
Francesco Abbate ad8cdf2b92 Found a working condition but some details needs attention 2020-06-05 17:32:36 +02:00
Francesco Abbate 2e2db2d690 WIP testing ahead of time coverage convolution 2020-06-05 15:27:55 +02:00
Francesco Abbate baf8cec837 Cosmetic change to floor_div function 2020-06-05 14:16:08 +02:00
Francesco Abbate c5575de058 Move font renderer in a separate folder as a library 2020-06-04 18:52:01 +02:00
Francesco Abbate 2171ea17fb Add correct copyright information 2020-06-04 18:14:02 +02:00
Francesco Abbate ac36cfc59c Remove unused code files 2020-06-04 18:13:28 +02:00
Francesco Abbate a2a4668887 Add some comments and remove unused code 2020-06-04 17:23:39 +02:00
Francesco Abbate 67124de130 Add some explanatory comments 2020-06-04 17:17:10 +02:00
Francesco Abbate dc5b668389 Fix resize of bounding rectangle in BakeFontBitmap function 2020-06-04 17:08:55 +02:00
Francesco Abbate c433017d75 Fix remove unnecessary function templating 2020-06-04 16:46:37 +02:00
Francesco Abbate a0e7d16167 Implement subpixel LCD font rendering 2020-06-04 16:29:28 +02:00
rxi bd0644a5bb Added resetting of selection on intermediate find-text failure 2020-06-04 14:04:46 +01:00
rxi 3569abcb53
Merge pull request #133 from 6r1d/master
Fix for keypad enter issue
2020-06-04 13:17:33 +01:00
rxi dc766a644f
Merge pull request #137 from dslul/patch-1
Don't tell the system to disable compositing under X11
2020-06-03 14:34:50 +01:00
Daniele Laudani 95ee03fb37
move BYPASS_COMPOSITOR near other SetHint 2020-06-03 15:05:55 +02:00
Daniele Laudani 7aa462e43d
Don't tell the system to disable compositing under X11
Fixes #123
2020-06-03 14:38:44 +02:00
rxi 18de4552e2 Made tab's text left-aligned if wider than the tab 2020-06-03 13:34:10 +01:00
U-ST\francesco abbate f61ffc4710 Add missing resource file on windows 2020-06-03 12:22:17 +02:00
rxi 4b167e86c6 Fixed bug in Highlighter.invalidate() when setting first_invalid_line
The value should not be updated if the current first_invalid_line is less than
the new invalid line index
2020-06-02 22:50:03 +01:00
Francesco Abbate 9bd4a8b9de Merge remote-tracking branch 'rxi/master' into font-rendering-tests 2020-06-02 23:28:52 +02:00
Francesco Abbate 01a4981210 Use static libgcc and libstdc++ when doing release build 2020-06-02 23:20:22 +02:00
Francesco Abbate e01ba599ba Optimize glyph set bitmap rectangles by trimming empty regions 2020-06-02 18:46:44 +02:00
Francesco Abbate d46cf80226 Adjust xadvance computation to use rounding instead of truncate 2020-06-02 17:52:02 +02:00
Francesco Abbate 39d7d49586 Reduce y padding in BakeFontBitmap 2020-06-02 17:51:26 +02:00
Francesco Abbate ae032cd185 Ember blender with gamma correction into FontRenderer 2020-06-02 17:18:52 +02:00
Francesco Abbate bc74b2860d Add gamma correct pixel blender 2020-06-02 14:47:06 +02:00