Commit Graph

84 Commits

Author SHA1 Message Date
KitsuneAlex 241d109db6
Add msdf_shape_one_shot_distance function 2024-05-14 23:48:12 +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 8d08d7cec7
Add msdf_shape_simple_edge_colors function 2024-05-11 20:34:25 +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 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 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 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 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 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
Chlumsky 75813f37b3 GPU-like pixel conversion 2024-04-21 19:04:58 +02:00
Chlumsky 6d252a7dc3 Asymmetrical range 2024-04-17 21:17:57 +02: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 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 f12d7ca000 Added macro config header to installation 2023-11-11 14:59:26 +01:00
Chlumsky 0eaeb51ea3 Fixed bug in error correction's diagonal interpolation test 2023-10-18 09:30:53 +02:00
Chlumsky bd5f145672 Inlined Vector2 and SignedDistance for performance, minor coding style change 2023-10-11 23:59:32 +02:00
Chlumsky e69b7962d1 Fixed include for qsort 2023-09-19 21:57:36 +02:00
Chlumsky 052f5fffd7 Removed dynamic_cast 2023-07-24 20:53:08 +02:00
Chlumsky 26143a3e9f Fixed #180 2023-07-12 08:22:54 +02:00
Chlumsky 0286aeb6eb Advanced SVG decoding 2023-04-15 17:33:32 +02:00
Chlumsky d576034d22 Added hidden option to disable variable fonts 2023-04-12 18:04:01 +02:00
Chlumsky 00d404686c Optimized includes 2023-04-07 12:02:22 +02:00
Chlumsky 34baf1706e Added CMake presets, core-only standalone, errors to stderr 2023-03-16 07:50:53 +01:00
Chlumsky 10577fca9e Enabled shared library build, vcpkg update 2023-01-15 12:08:15 +01:00
Chlumsky 1b2bee7d8e Removed SignedDistance::INFINITE constant 2021-12-21 21:28:56 +01:00
Chlumsky 0b633e75f7 Improved detection of numerical errors in cubic equation solver 2021-11-13 17:02:40 +01:00
Viktor Chlumský 22b3055247
CMake update (#131)
CMake build improvements & simplification
2021-09-30 08:19:54 +02:00
Chlumsky 1b3b6b9850 Very minor refactor 2021-07-09 15:35:25 +02:00
Chlumsky 35caf38378 MSDF error correction edge case fix 2021-07-08 19:44:18 +02:00
Chlumsky acb01df098 Edge coloring by edge to edge distance - experimental version 2021-05-28 19:26:41 +02:00