Commit Graph

41 Commits

Author SHA1 Message Date
Georg Hagen
0d2bcbbdf6 Add scale for label 2025-02-04 23:21:13 +01:00
Georg Hagen
c8d7af3178 Move some more classes 2025-01-26 18:16:18 +01:00
ohyzha
0583a7e25a fix inconsistent spacing for multiline text and support special characters 2025-01-23 18:47:09 +02:00
ohyzha
3a874f1ea6 reduce spacing between multiple lines 2025-01-23 18:47:09 +02:00
ohyzha
a73df1b4f3 text with smallest possible spacing between glyphs 2025-01-22 23:54:57 +02:00
Georg Hagen
968fa5a735 Fix label size and text bounding box 2025-01-13 23:46:05 +01:00
ohyzha
f2b164d6e8 Subpixel rendering (#186)
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/186
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
Co-authored-by: ohyzha <oleksii.hyzha.ext@madvoxel.com>
Co-committed-by: ohyzha <oleksii.hyzha.ext@madvoxel.com>
2025-01-13 11:05:54 +01:00
Georg Hagen
9cb3d4de85 Refactor FontAtlas class 2025-01-11 01:25:52 +01:00
Georg Hagen
f58064d724 Shrink GlyphInfo struct 2025-01-10 18:09:38 +01:00
Georg Hagen
e9a1c629d9 Switch to more compact TextGlyph vertex format 2025-01-05 02:05:10 +01:00
Georg Hagen
47a904f572 Move GetDefaultShader logic into function 2025-01-04 21:16:08 +01:00
Georg Hagen
fad309d96d Move FreetypeHelper and cleanup glyph creation 2025-01-04 11:59:13 +01:00
Georg Hagen
994ae12b80 Remove branching 2025-01-04 11:42:09 +01:00
Georg Hagen
ca93036f31 Change TextDrawable base class 2025-01-04 03:08:06 +01:00
Georg Hagen
94025c79c6 Unify text shader handling 2025-01-04 02:46:24 +01:00
Georg Hagen
884949f92f Deduplicate Atlas validity checking 2025-01-04 02:02:14 +01:00
Georg Hagen
f156ff5892 Update fallback glyph handling 2025-01-04 01:52:41 +01:00
Georg Hagen
f124a22910 Cleanup duplicated text shader 2025-01-04 01:52:11 +01:00
Georg Hagen
207d02aab4 Remove redundant lambda, use initializer, add nodiscard 2025-01-04 01:25:04 +01:00
Georg Hagen
d96ced96c0 Deduplicate shader creation function for text drawable 2025-01-04 01:15:25 +01:00
Georg Hagen
c288f3ccba Remove redundant namespaces 2025-01-04 01:05:31 +01:00
Georg Hagen
54441024b3 Delete duplicated variable 2025-01-04 01:02:37 +01:00
ohyzha
e8289c643b code refactoring 2024-12-31 10:14:59 +02:00
ohyzha
503e31947f make font atlas generator interface more uniform and implement bitmap font atlas rendering and generation 2024-12-31 10:14:59 +02:00
ohyzha
4f3336014a store text of text drawable 2024-11-04 22:52:05 +02:00
653be0a403 Fix build issues 2024-09-21 14:51:11 +02:00
ohyzha
e2ae1687ac rework label drawable and text drawable's API 2024-08-26 17:42:43 +03:00
ohyzha
4fce5fd1de add bounding box for text drawable and add possibility to share data among different instances 2024-08-22 13:27:08 +03:00
ohyzha
1f418fa673 support msdf 2024-08-13 10:53:38 +03:00
ohyzha
6a85f25b87 fix incorrect geometry buffer size 2024-08-08 21:35:16 +03:00
ohyzha
1659cee9eb render question mark if glyph is not loaded 2024-08-08 12:23:38 +03:00
ohyzha
a390470420 code cleanup 2024-08-07 21:55:58 +03:00
ohyzha
38d97f4c28 split font atlas generator to interface and implementation 2024-08-07 20:05:06 +03:00
ohyzha
c7c2a96b9c add opportunity to pack atlas and meta data in same file 2024-08-06 17:02:24 +03:00
ohyzha
cb409268a8 implement multiline text rendering 2024-08-06 10:33:28 +03:00
ohyzha
afccf5dee0 implement text rendering without msdfgen library 2024-08-06 10:33:28 +03:00
ohyzha
62a0e84634 minor fixes 2024-08-06 10:33:13 +03:00
ohyzha
232ad0a938 rework API for text rendering 2024-08-06 10:33:13 +03:00
ohyzha
dcf6e72f96 minor fixes 2024-08-06 10:33:13 +03:00
ohyzha
837861d6f2 fix mac build 2024-08-06 10:32:55 +03:00
ohyzha
875ad80337 give more meaningful names 2024-08-06 10:32:55 +03:00