Temporarily fixed font wrapping by removing scaling.

This commit is contained in:
2021-05-25 20:04:18 -07:00
parent ffaaa91a9e
commit 79b7aa06ba
5 changed files with 40 additions and 90 deletions

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;