From 6c8043760a6f7ed31b714795fc7175988344462c Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Wed, 13 Apr 2022 10:10:39 -0700 Subject: [PATCH] change fontSize to float --- include/Wellspring.h | 2 +- src/Wellspring.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;