Open shiba2046 opened 1 year ago
Same issue for it and there's minimal reproducibility example
from rich.console import Console
console = Console(record=True)
console.print("中文测试")
console.save_svg("output.svg")
Output:
In Mono font for example, width of the CJK characters are usually twice as wide as English characters, but in export_svg
method, every character are in the same width.
First of all I'm a great fan of your work, I love it.
I've encountered the following problem. When rendering a table with Chinese characters, it displays nicely in terminal. However when exporting it to svg, the characters are all stacked together make them unreadable. This is also present in the svg example on the project
Upon inspecting the svg code, I think it's that the
textLength
property is maybe too small.Is there a way to overide this and make it wider?