mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-06 07:12:28 +01:00
Overlays: check return value of stbtt_InitFont
This commit is contained in:
parent
6731feb751
commit
5267c87ca7
|
|
@ -185,9 +185,10 @@ namespace rsx
|
||||||
|
|
||||||
// Check if the character exists in the font
|
// Check if the character exists in the font
|
||||||
stbtt_fontinfo info;
|
stbtt_fontinfo info;
|
||||||
stbtt_InitFont(&info, bytes.data(), stbtt_GetFontOffsetForIndex(bytes.data(), 0));
|
if (stbtt_InitFont(&info, bytes.data(), stbtt_GetFontOffsetForIndex(bytes.data(), 0)) != 0)
|
||||||
|
{
|
||||||
font_found = stbtt_FindGlyphIndex(&info, c) != 0;
|
font_found = stbtt_FindGlyphIndex(&info, c) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!font_found)
|
if (!font_found)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue