change fontSize to float

main
cosmonaut 2022-04-13 10:10:39 -07:00
parent a30c901173
commit 6c8043760a
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ typedef struct Wellspring_TextBatch Wellspring_TextBatch;
typedef struct Wellspring_FontRange
{
uint32_t fontSize;
float fontSize;
uint32_t firstCodepoint;
uint32_t numChars;
uint8_t oversampleH;

View File

@ -241,7 +241,7 @@ uint32_t Wellspring_PackFontRanges(
for (i = 0; i < numRanges; i += 1)
{
currentFontRange = &ranges[i];
stbPackRanges[i].font_size = (float) currentFontRange->fontSize;
stbPackRanges[i].font_size = currentFontRange->fontSize;
stbPackRanges[i].first_unicode_codepoint_in_range = currentFontRange->firstCodepoint;
stbPackRanges[i].array_of_unicode_codepoints = NULL;
stbPackRanges[i].num_chars = currentFontRange->numChars;