Commit Graph

171 Commits

Author SHA1 Message Date
KitsuneAlex c85a70438e
Add build option for using FreeType runtime loader, mirror runtime loader in C-API 2024-05-15 06:08:43 +02:00
KitsuneAlex 695769cf0f
Implement msdfgen::adoptFreetypeFontRaw & msdf_ft_adopt_font C-API function for linkless FreeType interop 2024-05-15 01:46:04 +02:00
KitsuneAlex 241d109db6
Add msdf_shape_one_shot_distance function 2024-05-14 23:48:12 +02:00
KitsuneAlex 79c242ae0b
Add defines for MSDF_ERROR_CORRECTION_MODE and MSDF_DISTANCE_CHECK_MODE 2024-05-14 23:27:39 +02:00
KitsuneAlex 3d15f9309d
Change add_contour function to populate a handle with already owned memory instead of copying 2024-05-14 03:03:16 +02:00
KitsuneAlex 68dc012b32
Add msdf_shape_remove_contour and msdf_contour_remove_edge functions 2024-05-14 01:58:08 +02:00
KitsuneAlex 4974fb7203
Add API functions for all edge coloring algorithms & error correction algorithms 2024-05-13 06:15:26 +02:00
KitsuneAlex 2b6745f491
Fix typo in documentation 2024-05-13 02:52:55 +02:00
KitsuneAlex 8d08d7cec7
Add msdf_shape_simple_edge_colors function 2024-05-11 20:34:25 +02:00
KitsuneAlex a142c3d4b3
Rename msdf_ft_font_load(_data) to msdf_ft_load_font(_data) 2024-05-11 18:11:15 +02:00
KitsuneAlex 4e218cb11b
Add small description & author tags to new extension-C-API 2024-05-11 17:51:49 +02:00
KitsuneAlex 670ed9db6f
Add documentation to msdfgen-ext-c font import API 2024-05-11 17:48:10 +02:00
KitsuneAlex a4b286e686
Remove allocator API for the time being and add C-API for import-font extension 2024-05-11 17:32:14 +02:00
KitsuneAlex 3f68e015e5
Add missing null-check to msdf_shape_orient_contours function 2024-05-11 02:06:40 +02:00
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