|
|
|
@ -805,12 +805,22 @@ class MAGNUM_TEXT_EXPORT AbstractFont: public PluginManager::AbstractPlugin { |
|
|
|
Containers::Optional<Containers::ArrayView<const char>>(*_fileCallback)(const std::string&, InputFileCallbackPolicy, void*){}; |
|
|
|
Containers::Optional<Containers::ArrayView<const char>>(*_fileCallback)(const std::string&, InputFileCallbackPolicy, void*){}; |
|
|
|
void* _fileCallbackUserData{}; |
|
|
|
void* _fileCallbackUserData{}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* clang-cl on Windows complains about this field being unused if the
|
|
|
|
|
|
|
|
templated setFileCallback() isn't called. Well, sure, it isn't used |
|
|
|
|
|
|
|
in that particular case, but what am I supposed to do?! */ |
|
|
|
|
|
|
|
#ifdef CORRADE_TARGET_CLANG_CL |
|
|
|
|
|
|
|
#pragma GCC diagnostic push |
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wunused-private-field" |
|
|
|
|
|
|
|
#endif |
|
|
|
/* Used by the templated version only */ |
|
|
|
/* Used by the templated version only */ |
|
|
|
struct FileCallbackTemplate { |
|
|
|
struct FileCallbackTemplate { |
|
|
|
void(*callback)(); |
|
|
|
void(*callback)(); |
|
|
|
const void* userData; |
|
|
|
const void* userData; |
|
|
|
/* GCC 4.8 complains loudly about missing initializers otherwise */ |
|
|
|
/* GCC 4.8 complains loudly about missing initializers otherwise */ |
|
|
|
} _fileCallbackTemplate{nullptr, nullptr}; |
|
|
|
} _fileCallbackTemplate{nullptr, nullptr}; |
|
|
|
|
|
|
|
#ifdef CORRADE_TARGET_CLANG_CL |
|
|
|
|
|
|
|
#pragma GCC diagnostic pop |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
Float _size{}, _ascent{}, _descent{}, _lineHeight{}; |
|
|
|
Float _size{}, _ascent{}, _descent{}, _lineHeight{}; |
|
|
|
UnsignedInt _glyphCount{}; |
|
|
|
UnsignedInt _glyphCount{}; |
|
|
|
|