Sparkline examples copied directly from Textual Guide do not "render as advertised" #4347
-
ProblemBoth examples provided in the What is shown in the guidehttps://textual.textualize.io/widgets/sparkline/#__tabbed_2_1 First Docs Example
... yields this on my machine: Second Docs Example (Sparkline Colors) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
You appear to have an issue with your choice of terminal and/or font. Perhaps this search of discussions will help? |
Beta Was this translation helpful? Give feedback.
-
Here is how to fix Sparklines and possibly other widget renderings, in Windows 10 pro.
This fixed my Sparklines rendering problems 100%. Hopefully helps someone else. |
Beta Was this translation helpful? Give feedback.
-
-hmmm well, the second .... compared to the textual guide: https://textual.textualize.io/widgets/sparkline/#__tabbed_2_1 the delta between the rendering of the first sparkline example in the textual guide vs my own application is still pretty huge. will update if i find more. |
Beta Was this translation helpful? Give feedback.
Here is how to fix Sparklines and possibly other widget renderings, in Windows 10 pro.
install the
DejaVuSans Mono font
recommended in this related discussion ( #3117 )a) font source: https://www.nerdfonts.com/font-downloads
Native Powershell is not amenable to changing Fonts without Registry Edit, which possibly is fine but I did not want to do it. Also also native powershell doesnt have a fallback font in cases a character is missing.
For these reasons I used installed Windows Terminal which was also recommended in Textual discussions
Install the Regular Mono version of the DejaVuSans font onto the system by unzipping and double clicking the corresponding font file. Had never i…