ArthurSonzogni / FTXUI

:computer: C++ Functional Terminal User Interface. :heart:
MIT License
6.49k stars 392 forks source link

Braille and Box Characters Not Appearing #511

Open ZclipseCode opened 1 year ago

ZclipseCode commented 1 year ago

Hi, I was trying to run the "Canvas_Animated.cpp" file but Braille and Box characters appear as "?" blocks. Is there a solution to this?

jcbhmr commented 1 year ago

Are you per chance on Windows using cmd.exe or PowerShell? They don't seem to have good emoji support. I've found that the newer fancy Windows Terminal works much better with FTXUI.

Here's another issue that shows a difference on Windows cmd.exe and PowerShell vs Windows Terminal: https://github.com/ArthurSonzogni/FTXUI/issues/27#issuecomment-658541413

Here's some more Stack overflow references:

ArthurSonzogni commented 1 year ago

Yes. I am sorry about this! This is indeed due to the font used by the Microsoft terminal.

There are some fallback in FTXUI against the lack of a proper terminal implementation: https://github.com/search?q=repo%3AArthurSonzogni%2FFTXUI%20FTXUI_MICROSOFT_TERMINAL_FALLBACK&type=code

But there is nothing that can be done about braille characters.

BKelso123 commented 1 year ago

@ArthurSonzogni Thank you for answering this question. I am wondering what font you developed the tool with. I would like to change my font to match whatever font you used when making it.

ArthurSonzogni commented 1 year ago

@ArthurSonzogni Thank you for answering this question. I am wondering what font you developed the tool with. I would like to change my font to match whatever font you used when making it.

Hi @BKelso123, I didn't developed FTXUI with a particular font. It depends on the terminal developers are using. FTXUI is just sending text.

By analogy, it is like asking some what "web browser" they developed a "website".

But if you are interested, I am on Linux. I use various terminals. I am using mostly kitty terminal emulator with JetBrains Mono font.