change fontSize to float
parent
a30c901173
commit
6c8043760a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue