From 8a560eb873e71c8045a9cbd60efc2a04e2f5e174 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 18 Oct 2020 14:25:44 +0100 Subject: [PATCH] Shut up a GCC warning --- src/Font.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Font.cpp b/src/Font.cpp index 5b089f93..6d637de0 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -1149,7 +1149,12 @@ Font* LoadFreeTypeFontFromData(const unsigned char *data, size_t data_size, size if (FT_New_Memory_Face(font->library, font->data, (FT_Long)data_size, 0, &font->face) == 0) { // Select a rough size, for vector glyphs - FT_Size_RequestRec request = {FT_SIZE_REQUEST_TYPE_CELL, cell_height << 6, cell_height << 6, 0, 0}; // 'cell_height << 6, cell_height << 6' isn't a typo: it's needed by the Japanese font + FT_Size_RequestRec request; + request.type = FT_SIZE_REQUEST_TYPE_CELL; + request.width = cell_height << 6; // 'cell_height << 6' isn't a typo: it's needed by the Japanese font + request.height = cell_height << 6; + request.horiResolution = 0; + request.vertResolution = 0; FT_Request_Size(font->face, &request); // If an accurate bitmap font is available, however, use that instead