A barely working tool to find font characters and pick their color.

This commit is contained in:
Zed A. Shaw 2024-12-07 13:42:30 -05:00
parent 6b3ce5eb3d
commit 0edd948101
17 changed files with 406 additions and 72 deletions

View file

@ -36,13 +36,13 @@ struct SFMLRender {
sf::Texture $font_texture;
sf::Glyph $base_glyph;
sf::Sprite $bg_sprite;
sf::FloatRect $bg_bounds;
sf::FloatRect $grid_bounds;
sf::Text $ui_text;
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> $converter;
sf::Color $default_fg;
sf::Color $default_bg;
ANSIParser $ansi;
sf::FloatRect $ui_bounds;
sf::FloatRect $text_bounds;
SFMLRender();
@ -67,6 +67,6 @@ struct SFMLRender {
int font_size() { return $map_font_size; }
void clear() { $window.clear(); }
void display() { $window.display(); }
Point mouse_position();
bool mouse_position(Panel &panel, Point &out);
static void init_terminal();
};