Temporarily fixed font wrapping by removing scaling.

This commit is contained in:
YourWishes committed 2021-05-25 20:04:18 -07:00
1 parent ffaaa91a9e
commit 79b7aa06ba
5 files changed
+40 -90

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@
#define FONT_NUM_CHARS 96
/** Passed to STBTT for scaling the font nicely */
#define FONT_TEXTURE_SIZE 64
#define FONT_TEXTURE_SIZE 24
/** Width of the loaded font texture */
#define FONT_TEXTURE_WIDTH 512
@@ -54,7 +54,7 @@ typedef struct {
int32_t lines;
/** Dimensions of the string */
float width, height, scale;
float width, height;
/** Array of precalculated quads */
stbtt_aligned_quad *quads;