ref: 8a560eb873e71c8045a9cbd60efc2a04e2f5e174
parent: 2e6c29140083dcb6e89b82adaf9e267659c4ab58
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Oct 18 10:25:44 EDT 2020
Shut up a GCC warning
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -1149,7 +1149,12 @@
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