| 2816 | } |
| 2817 | |
| 2818 | vec2s lf_text_dimension_ex(const char* str, float wrap_point) { |
| 2819 | LfFont font = get_current_font(); |
| 2820 | LfTextProps props = lf_text_render((vec2s){0.0f, 0.0f}, str, font, state.theme.text_props.text_color, wrap_point, |
| 2821 | (vec2s){-1, -1}, true, false, -1, -1); |
| 2822 | |
| 2823 | return (vec2s){(float)props.width, (float)props.height}; |
| 2824 | } |
| 2825 | |
| 2826 | vec2s lf_text_dimension_wide(const wchar_t* str) { |
| 2827 | return lf_text_dimension_wide_ex(str, -1); |
no test coverage detected