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
Francesco Abbate
c41d6a82e1
Adjust BakeFontBitmap issues
2020-06-01 17:23:18 +02:00
Francesco Abbate
c2949edcd7
Check for errors when loading fonts
2020-06-01 17:01:42 +02:00
Francesco Abbate
b734390388
Use font_renderer in aGG font testing program
2020-06-01 16:57:33 +02:00
Francesco Abbate
e291e7269a
Hack to fix font size rendering to align with STB original rendering
2020-06-01 15:33:14 +02:00
Francesco Abbate
c333425770
Remove stb from Meson dependencies for Lite
2020-06-01 15:28:07 +02:00
Francesco Abbate
98f5c16932
Remove unused variable
2020-06-01 15:16:07 +02:00
Francesco Abbate
5ca7471fc7
Cosmetic code's cleanup
2020-06-01 14:45:07 +02:00
Francesco Abbate
fa06862177
Completely remove usage of stb_truetype
2020-06-01 14:43:45 +02:00
Francesco Abbate
91a82d8ae4
Add missing function to free FontRenderer
2020-06-01 14:42:57 +02:00
Francesco Abbate
0389bd000a
Fix y offset in BakeFontBitmap
...
Compute Y offset more accurately and the way it is required in
renderer.c.
Instead of returning y offset wrt the baseline position returns it
wrt the top position (the baseline plus the font's ascent).
2020-06-01 14:33:46 +02:00
Francesco Abbate
4c6e15b66c
Rename GlyphSetA to GlyphSet
2020-06-01 14:08:50 +02:00
Francesco Abbate
3a8cb05ea6
Replace stb's BakeBitmapFont with AGG based font's renderer
2020-06-01 12:56:23 +02:00
Francesco Abbate
ca6b7bc902
Render correctly codepoints in agg font render test and fix bounding box
2020-06-01 11:26:25 +02:00
Francesco Abbate
edb103716a
Add function to render a single unicode codepoint
2020-06-01 11:25:22 +02:00
Francesco Abbate
4ec521dd37
Add correct glyphs bitmap location rects with AGG
2020-05-31 13:53:27 +02:00
Francesco Abbate
7c57b1d6ca
Adjust the font's height when creating the bitmap
...
Now the font's height to compute the bitmap is computed correcty but:
- STB truetype takes the pixel height as a float
- AGG takes an integer
2020-05-30 20:01:37 +02:00
Francesco Abbate
4334d09bab
More notes
2020-05-30 18:07:40 +02:00
Francesco Abbate
103336945e
Add pixel format to render font in bitmap format
...
The purpose it to add later subpixel by storing the bitmap with RGB
channels to have subpixel LCD coverage information.
The colorization and gamma blending will be done when blitting the glyph
on the destination surface.
2020-05-30 18:07:31 +02:00
Francesco Abbate
010966d60d
Add correct font's height calculation using AGG
...
Compute the height like in renderer.c
2020-05-30 16:26:10 +02:00
Francesco Abbate
0fea5d9d25
Add in agg_font_render method to get face's units to em
2020-05-30 16:25:13 +02:00
Francesco Abbate
d9dea5d122
More notes on font rendering
2020-05-30 15:19:33 +02:00
Francesco Abbate
155e76df5f
Add font vmetrics in AGG font renderer test
2020-05-30 15:19:12 +02:00
Francesco Abbate
4701c2899c
Add function in agg_font_freetype to take face's height
2020-05-30 15:18:36 +02:00
Francesco Abbate
f77261afa4
Initial working version of agg font rendering test
2020-05-29 18:41:55 +02:00
Francesco Abbate
a7904eba3b
Fix errors in renderer lcd
2020-05-29 18:41:14 +02:00
Francesco Abbate
0e713f7692
WIP: to use AGG font renderer to create a coverage bitmap
2020-05-29 16:00:29 +02:00
Francesco Abbate
20626ab911
Add small test program for stb_truetype
2020-05-29 12:54:36 +02:00
Francesco Abbate
4a8df09829
Fix y coordinate orientation in font rendering call
2020-05-29 09:27:00 +02:00
Francesco Abbate
31d7cb5ce0
Fix LCD font rendering for BGRA32 pixel format
...
Now the sizing of fonts is determined by stb_truetype while the
rendering is done via AGG so they are not aligned.
There seems to be an error also about Y text positioning.
2020-05-28 16:08:48 +02:00
Francesco Abbate
23a080ca45
WIP: compiles but completely broken
...
AGG files imported from AGG repository, sdl-testing branch.
the pixfmt_bgra32_lcd is just implemented and is not tested.
2020-05-28 12:15:24 +02:00
Francesco Abbate
79487074c0
Add missing gui_app flag in meson build
2020-05-25 16:18:06 +02:00
Francesco Abbate
7b9def299d
Add dl library because it may be needed by SDL2
...
Should be fixed to be added only when needed.
2020-05-25 12:23:46 +02:00
Francesco Abbate
618078829c
Add meson build configuration
...
Currently the editor will not work if it is not installed.
There is also a caveat about the 'data' directory which is installed
in the bin directory. This may work but does not seem ok because it is
pollution a shared bin directory and the 'data' folder may not be unique
to Lite.
2020-05-25 12:22:23 +02:00
rxi
61a2a2c4e5
Version 1.05
2020-05-24 13:52:10 +01:00
rxi
c2d27ab3f7
Removed `core.project_dir`
2020-05-24 13:50:32 +01:00
rxi
82e33dd2de
Moved event-waiting when not focused to after run_threads()
2020-05-24 13:43:34 +01:00
rxi
946c125fd4
Changed `core.redraw` to be set to `true` by default
...
As the window isn't created until the first frame is drawn this is required to
assure the window is ever shown without relying on the assumption that some
other part of the program would have set this to true
2020-05-24 08:04:47 +01:00
rxi
61092fbb99
Changed fuzzy matching to favour matching case
2020-05-23 15:08:38 +01:00
rxi
28b1844a8b
Added support for dropping a folder onto the window
2020-05-23 11:31:08 +01:00
rxi
e45b3e2bc0
Minor renaming in rootview
2020-05-23 09:40:42 +01:00
rxi
e6a2770e2e
Merge branch 'master' of https://github.com/rxi/lite
2020-05-22 18:59:59 +01:00
rxi
71fb50ece0
Merge pull request #111 from waywardmonkeys/fix-tmpnam-warning
...
Enable LUA_USE_POSIX, fix tmpnam warning on macOS.
2020-05-22 18:59:42 +01:00
rxi
e7320c2291
Made RootView:open_doc() try to use previous node if current node is locked
2020-05-22 15:50:27 +01:00
rxi
35b642d434
Added rencache invalidation on window-exposed event
...
Fixes #63
2020-05-22 09:00:48 +01:00
rxi
35ce3d32a9
Fixed string quoting on windows in `system.exec()`
2020-05-22 08:11:05 +01:00