From 771b52f841f016f240c3b72721a2ba04e0071f80 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Sat, 15 Feb 2020 11:28:31 +0000 Subject: [PATCH] Fix #546 --- Extensions/Smooth_font.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extensions/Smooth_font.h b/Extensions/Smooth_font.h index 8bc8392..91f23a9 100644 --- a/Extensions/Smooth_font.h +++ b/Extensions/Smooth_font.h @@ -19,7 +19,7 @@ // This is for the whole font typedef struct { - const uint8_t* gArray = nullptr; //array start pointer + const uint8_t* gArray; //array start pointer uint16_t gCount; // Total number of characters uint16_t yAdvance; // Line advance uint16_t spaceWidth; // Width of a space character @@ -29,7 +29,7 @@ uint16_t maxDescent; // Maximum descent found in font } fontMetrics; -fontMetrics gFont = { 0, 0, 0, 0, 0, 0, 0 }; +fontMetrics gFont = { nullptr, 0, 0, 0, 0, 0, 0, 0 }; // These are for the metrics for each individual glyph (so we don't need to seek this in file and waste time) uint16_t* gUnicode = NULL; //UTF-16 code, the codes are searched so do not need to be sequential