Commit Graph

157 Commits

Author SHA1 Message Date
KitsuneAlex bc14445bd0
Fix broken documentation for msdf_shape_orient_contours 2024-05-10 05:18:09 +02:00
KitsuneAlex 382164d4e6
Add msdf_shape_orient_contours function 2024-05-10 05:14:48 +02:00
KitsuneAlex de0d52a9be
Change msdf_shape_add_contour to use a const handle 2024-05-06 23:50:41 +02:00
KitsuneAlex ef7cdfcb69
Change pointer from in- to out-pointers in msdf_contour_add_edge and msdf_shape_add_contour 2024-05-06 23:35:52 +02:00
KitsuneAlex 553d09bc1d
Add messages to static_asserts to make code conform to C++11 2024-05-04 23:30:38 +02:00
KitsuneAlex 90ea118682
Remove .clang-tidy file as it doesn't fit the style correctly 2024-05-04 22:32:55 +02:00
KitsuneAlex 7339d9f743
Remove stray msdf_free from bitmap_free function 2024-05-04 22:18:11 +02:00
KitsuneAlex 1b71bc0e6a
Rename sources from msdfgen_c to msdfgen-c 2024-05-04 19:51:36 +02:00
KitsuneAlex 95d0b35bc8
Merge branch 'feat-c-api' of github.com:KitsuneAlex/msdfgen into feat-c-api 2024-05-04 19:32:46 +02:00
KitsuneAlex 509f3d9b0c
Fix missing documentation 2024-05-04 19:32:35 +02:00
KitsuneAlex 5c5caf8967
Fix unfinished documentation for msdf_segment_get_type 2024-05-04 19:30:52 +02:00
KitsuneAlex 5b2abedc83
Add documentation to the main msdfgen-core functions 2024-05-04 18:36:33 +02:00
KitsuneAlex 98d4b31601
Add documentation to segment functions 2024-05-04 18:26:25 +02:00
KitsuneAlex ffec8aa22d
Add documentation to contour functions 2024-05-04 01:41:40 +02:00
KitsuneAlex 9a0199c6f3
Add documentation for msdf_shape functions 2024-05-04 00:43:57 +02:00
KitsuneAlex 0d55184a2b
Add documentation for msdf_allocator and msdf_bitmap functions 2024-05-04 00:18:17 +02:00
KitsuneAlex f82ab9bc2b
More const correctness 2024-05-03 23:46:44 +02:00
KitsuneAlex ad0aef556d
Finalize API, use handles for segments, don't expose edges in C 2024-05-03 22:55:47 +02:00
KitsuneAlex a267f24caa
Fix const correctness of segment API 2024-05-03 04:00:09 +02:00
KitsuneAlex 9b5cefeb47
Fix typo in new README section 2024-05-03 02:33:39 +02:00
KitsuneAlex bb07b5a7a9
Fix wrong identifier formatting for some API function parameters 2024-05-03 02:29:08 +02:00
KitsuneAlex c565b18e9d
Change name from msdf_shape_get_edge_counts to msdf_shape_get_edge_count for consistency 2024-05-03 02:05:33 +02:00
KitsuneAlex 021fc8af79
Remove unused typedef from API header & add simple example to README 2024-05-02 14:15:57 +02:00
KitsuneAlex df74428a86
Add additional size assertions for msdfgen::Range and use pointer magic to convert msdf_range_t into msdfgen::Range 2024-05-02 13:45:48 +02:00
KitsuneAlex f041dd492c
Implement missing checks for bitmap type in generate functions of C-API 2024-05-02 05:22:22 +02:00
KitsuneAlex 130f6ffaaf
Finish implementing actual msdfgen API functions 2024-05-02 05:02:44 +02:00
KitsuneAlex ac81d2dc1b
Implement segment API 2024-05-02 04:47:07 +02:00
KitsuneAlex 9d050afdad
Implement edge_holder API 2024-05-02 04:14:21 +02:00
KitsuneAlex 08020caec8
Implement contour API 2024-05-02 03:58:32 +02:00
KitsuneAlex b8203f024a
Implement shape API 2024-05-02 03:45:25 +02:00
KitsuneAlex cebe5fdab8
Implement Bitmap/BitmapRef interface 2024-05-02 03:35:33 +02:00
KitsuneAlex 6b32308b8a
Define barebones C API for msdfgen-core 2024-05-02 02:02:44 +02:00
KitsuneAlex cdaba2b212
Add clang-format and clang-tidy configurations 2024-05-02 02:02:09 +02:00
Chlumsky 5dc5f6260b Skia bug workaround, savePng crash fix 2024-04-23 17:35:09 +02:00
Chlumsky 75813f37b3 GPU-like pixel conversion 2024-04-21 19:04:58 +02:00
Chlumsky d034a702eb Alternative XML parser interface 2024-04-21 18:31:39 +02:00
Chlumsky c7a724c173 Minor FontCoordinateScaling tweaks 2024-04-21 12:17:13 +02:00
Chlumsky bc9f02e156 Fix for incorrect font coordinate scaling 2024-04-17 22:12:40 +02:00
Chlumsky 6d252a7dc3 Asymmetrical range 2024-04-17 21:17:57 +02:00
Chlumsky 937f31ff41 Simplified argument parsing 2024-03-10 11:45:49 +01:00
Chlumsky 64c3e24829 Renamed pseudo-distance to perpendicular distance 2024-03-10 10:30:59 +01:00
Chlumsky 35f92541c4 Edge coloring update, circles no longer white 2024-03-09 22:17:49 +01:00
Chlumsky 682381a03c Added getGlyphCount 2024-02-05 11:31:32 +01:00
Chlumsky b21499180d Fixed minor regression of previous commit 2024-01-06 23:30:16 +01:00
Chlumsky 49453c96f1 Replaced sscanf usage 2024-01-05 13:38:47 +01:00
Chlumsky 2357140784 Improved edge segment construction 2023-12-17 00:39:45 +01:00
Chlumsky 51f6b5b053 Minor CMake adjustment #191 2023-12-16 22:08:53 +01:00
Chlumsky f12d7ca000 Added macro config header to installation 2023-11-11 14:59:26 +01:00
Chlumsky f04dc6acd3 Support for SVG fill-rule 2023-11-08 12:01:43 +01:00
Chlumsky 0eaeb51ea3 Fixed bug in error correction's diagonal interpolation test 2023-10-18 09:30:53 +02:00