MCPcopy Create free account
hub / github.com/cococry/leif / lf_get_text_end

Function lf_get_text_end

leif.c:2844–2848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2842}
2843
2844float lf_get_text_end(const char* str, float start_x) {
2845 LfFont font = get_current_font();
2846 LfTextProps props = text_render_simple((vec2s){start_x, 0.0f}, str, font, state.theme.text_props.text_color, true);
2847 return props.end_x;
2848}
2849
2850void lf_text(const char* text) {
2851 // Retrieving the property data of the text

Callers

nothing calls this directly

Calls 2

get_current_fontFunction · 0.85
text_render_simpleFunction · 0.85

Tested by

no test coverage detected