Before freetype2 use to iterate through the font's glyphs diretly.

This commit is contained in:
Zed A. Shaw 2024-12-09 08:25:16 -05:00
parent c483649e20
commit 9ab064126f
3 changed files with 7 additions and 2 deletions

View file

@ -13,6 +13,8 @@
#include <locale>
#include <codecvt>
#include <vector>
#include <ft2build.h>
#include FT_FREETYPE_H
using namespace fmt;
using namespace ftxui;
@ -55,7 +57,7 @@ struct FontGrid {
try {
return $converter.to_bytes(input);
} catch(...) {
return "?";
return $converter.to_bytes(L"?");
}
}