Skip to content

Text for C-API. #2340

Answered by hermet
Jean-Amaro asked this question in Q&A
May 31, 2024 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

@Jean-Amaro Please have a look at the API prototypes the ThorVG developers are pushing, and let us know if you have any concerns in advance. Thanks.

TVG_API Tvg_Paint* tvg_text_new(void);
TVG_API Tvg_Result tvg_text_set_font(Tvg_Paint* paint, const char* name, float size, const char* style);
TVG_API Tvg_Result tvg_text_set_text(Tvg_Paint* paint, const char* text);
TVG_API Tvg_Result tvg_text_set_fill_color(Tvg_Paint* paint, uint8_t r, uint8_t g, uint8_t b);
TVG_API Tvg_Result tvg_text_set_linear_gradient(Tvg_Paint* paint, Tvg_Gradient* gradient);
TVG_API Tvg_Result tvg_text_set_radial_gradient(Tvg_Paint* paint, Tvg_Gradient* gradient);
TVG_API Tvg_Result tvg_load_font(const char* path);
T…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Jean-Amaro
Comment options

Answer selected by Jean-Amaro
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants