diff --git a/meson.build b/meson.build index eb6ddbe..d83df99 100644 --- a/meson.build +++ b/meson.build @@ -10,12 +10,13 @@ ftxui_component = dependency('ftxui-component') sfml = dependency('sfml') lua = dependency('lua') sol2 = dependency('sol2') +freetype2 = dependency('freetype2') dependencies = [ catch2, fmt, ftxui_screen, ftxui_dom, ftxui_component, json, - sfml, lua, sol2 + sfml, lua, sol2, freetype2 ] runtests = executable('runtests', [ diff --git a/status.txt b/status.txt index ed01328..3049fb9 100644 --- a/status.txt +++ b/status.txt @@ -3,6 +3,8 @@ TODAY'S GOAL: 1. Why do Sliders only have to be kept around forever and can't go in containers like everything else? 2. Why are sliders not selected when I click on them? Is it a hover? 3. Why do fonts render blank? Also when I scroll they slowly disappear until there's a column. +4. Use freetype to iterate chars. +5. Why are all wchar converted chars in from_unicode 3 bytes not 2? * A designer tool to help find characters for foreground, background, and figure out their colors. diff --git a/tools/designer.cpp b/tools/designer.cpp index 45fce18..4c68cfc 100644 --- a/tools/designer.cpp +++ b/tools/designer.cpp @@ -13,6 +13,8 @@ #include #include #include +#include +#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"?"); } }