Commit Graph

29 Commits

Author SHA1 Message Date
Martín Lucas Golini
ec47dffa30 Several fixes in soft-wrap implementation.
Added soft-wrap support in UITextView and UITooltip.
Added more soft-wrap tests, now testing also selection.
2026-02-03 01:41:15 -03:00
Martín Lucas Golini
bbb8fce43f Instead of using *::cell::text and tableview::cell::icon in breeze and styles we will just use *::tableview::cell. And leave the inner elements of PushButton unaltered (since the father already can alter them).
Did some fixes in `Text::findCharacterPos` and `Text::findCharacterFromPos`, also tentatively added support for soft-wrap in those function (I haven't tested much yet).
2026-02-01 21:46:42 -03:00
Martín Lucas Golini
b7d9fd0567 Soft-Wrap in Text support WIP. 2026-02-01 00:56:37 -03:00
Martín Lucas Golini
4654aea175 Fix issue with kerning when using tab characters (i do not want to apply kerning in tab characters). 2026-01-28 22:40:59 -03:00
Martín Lucas Golini
9561334401 Fixes for line widths calculation. 2026-01-27 23:49:02 -03:00
Martín Lucas Golini
efc361b654 LineWraps now also report real new line breaks (otherwise it will not be possible to partition into visual lines).
Added more text hard-wrap tests.
RGB now has a constructor that accepts Color. Color now has `toRGB()`.
2026-01-25 14:53:55 -03:00
Martín Lucas Golini
9d4fce4524 Implemented soft-wrap support in TextLayout.
Also fixed an old LineWrap::computeLineBreaks bug that wrapped too soon some texts, I had to update the tests (they where looking strange but I thought it was some unfortunate wrapping).
2026-01-25 00:26:54 -03:00
Martín Lucas Golini
1789540388 Separate TextLayout result into paragraphs with ShapedTextParagraph.
Change the `Text::wrapText` implementation to use the `LineWrap::computeLineBreaks` function, so it's consistent across eepp. Also renamed the function to `Text::hardWrapText` to be more descriptive.
Added new-line support in `LineWrap::computeLineBreaks`.
2026-01-24 17:59:09 -03:00
Martín Lucas Golini
baa16fe44d Some minor changes in TextLayout and LineWrap. 2026-01-24 13:55:58 -03:00
Martín Lucas Golini
b3748d05f2 Add yet another text rendering test. 2026-01-24 01:01:16 -03:00
Martín Lucas Golini
f8fe1d9687 Add multi-thread protection to: ModelSelection.
Make UIAbstractView::notifySelectionChange thread-safe.
Added new UI Test (FontRendering.UITextTest).
2026-01-14 20:12:45 -03:00
Martín Lucas Golini
b084cab449 Text::setFillColor improvements for shaped text. 2026-01-03 18:38:33 -03:00
Martín Lucas Golini
d5e10aa790 Improve color emoji rendering.
Add new test for emojis + text.
Enabled text-shaper by default.
Updated the NotoColorEmoji font with the latest version.
2025-12-30 17:52:31 -03:00
Martín Lucas Golini
218732b611 Added more tests. 2025-11-14 23:53:29 -03:00
Martín Lucas Golini
2008b57033 Added SheenBidi segmentation. 2025-11-10 00:53:28 -03:00
Martín Lucas Golini
491b15d6ca Some extra improvements and adjustments. 2025-11-02 17:58:05 -03:00
Martín Lucas Golini
58b8a815d2 Many text-shaper fixes and many more tests. 2025-11-02 13:47:15 -03:00
Martín Lucas Golini
128128db81 Merge branch 'develop' into text-shape 2025-11-02 00:56:07 -03:00
Martín Lucas Golini
79fb5b0a9f Improve text sizes tests. 2025-11-02 00:55:26 -03:00
Martín Lucas Golini
1b09a914b6 Add text size test. 2025-11-01 23:58:46 -03:00
Martín Lucas Golini
d4620b1f4b Some text shaping improvements. 2025-11-01 23:34:27 -03:00
Martín Lucas Golini
42390607aa Add an extra test for text shaper.
Do not disable AI assistant chat blocks when waiting or getting the AI response (allow to copy the contents).
2025-11-01 00:13:44 -03:00
Martín Lucas Golini
34c0c5cdc6 Add a few more tests for font and text rendering. 2025-10-26 22:36:36 -03:00
Martín Lucas Golini
a52e868a57 Fix font rendering tests pixel density. 2025-10-25 23:12:36 -03:00
Martín Lucas Golini
74ef41e029 Improve font rendering test suite.
Fixed some minor issues cleaning up memory while destroying the engine (this is to be able to create a new window and load resources without issues, a not very common behavior but needed for tests).
2025-10-25 21:15:18 -03:00
Martín Lucas Golini
984262ec83 Try using f3d-app/install-mesa-windows-action. 2025-10-25 16:55:19 -03:00
Martín Lucas Golini
9b351dc16d Test corrections. 2025-10-25 12:12:53 -03:00
Martín Lucas Golini
521631decf Fix ARGB images save when using WebP.
Upload artifacts.
2025-10-25 02:52:21 -03:00
Martín Lucas Golini
af5daa4717 Add Image::diff.
Fixed inavalid memory access due to double free in FontBMP and FontSprite.
Added FontRendering unit-tests.
2025-10-25 00:56:05 -03:00