diff --git a/include/Wellspring.h b/include/Wellspring.h index 8b12ff7..960a8d4 100644 --- a/include/Wellspring.h +++ b/include/Wellspring.h @@ -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; diff --git a/src/Wellspring.c b/src/Wellspring.c index 1e16127..0c16de5 100644 --- a/src/Wellspring.c +++ b/src/Wellspring.c @@ -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;