mirror of
https://github.com/nicbarker/clay.git
synced 2026-08-03 13:49:08 +00:00
[Renderers/Tigr] Modified measure text function
Get a better estimate of the texts total measurements
This commit is contained in:
parent
43882c6994
commit
12d09ed512
1 changed files with 2 additions and 2 deletions
|
|
@ -60,8 +60,8 @@ static inline Clay_Dimensions Clay_Tigr_MeasureText(Clay_StringSlice str, Clay_T
|
|||
|
||||
char* cstr = Clay_to_Cstr(&toTerminate);
|
||||
|
||||
int text_width = tigrTextWidth(tfont, cstr);
|
||||
int text_height = tigrTextHeight(tfont, cstr);
|
||||
int text_width = tigrTextWidth(tfont, cstr) * (config->fontSize/8);
|
||||
int text_height = tigrTextHeight(tfont, cstr) * (config->fontSize/8);
|
||||
|
||||
free(cstr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue