FTXUI icon indicating copy to clipboard operation
FTXUI copied to clipboard

Braille and Box Characters Not Appearing

Open ZclipseCode opened this issue 3 years ago • 4 comments

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?

ZclipseCode avatar Nov 18 '22 05:11 ZclipseCode

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:

  • https://stackoverflow.com/questions/64940181/cannot-display-emojis-in-windows-powershell-or-wsl-linux-terminal-using-python
  • https://stackoverflow.com/questions/67722300/print-emojis-in-windows-terminal-python
  • https://stackoverflow.com/questions/62738819/does-all-windows-command-prompt-not-support-emoji
  • https://stackoverflow.com/questions/64191470/windows-powershell-is-not-printing-emoji

jcbhmr avatar Nov 18 '22 18:11 jcbhmr

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.

ArthurSonzogni avatar Nov 22 '22 17:11 ArthurSonzogni

@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.

BKelso123 avatar Apr 05 '23 19:04 BKelso123

@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.

ArthurSonzogni avatar Apr 06 '23 07:04 ArthurSonzogni