Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render monospaced fonts on Ubuntu? #9

Open
webhype opened this issue Aug 31, 2022 · 0 comments
Open

How to render monospaced fonts on Ubuntu? #9

webhype opened this issue Aug 31, 2022 · 0 comments

Comments

@webhype
Copy link

webhype commented Aug 31, 2022

Thanks, svg-render works great. I need to render SVGs that use "box drawing" ASCII art (terminal output, basically). Works great on Mac OS when I specify the Menlo font as font-family.

However, when I svg-render the same SVGs on a bare bones Ubuntu system, it obviously can't find Apple's Menlo font. Instead it uses a generic variable-spaced gothic Helvetica-like font.

However, I am almost sure that Ubuntu, even without graphical user interface, comes with at least ONE generic monospaced font. I tried specifying "Ubuntu Monospace" or "Ubuntu Mono" in the SVG, to no avail. Always renders the variable-spaced font.

Question: What is the path to making it render the SVGs on a Ubuntu system with a monospaced font? Maybe I just don't know the correct font-family name to pick. Ideally it would be the Menlo font or some open-source knockoff, but getting it to render ANY monospaced font at this point would be a victory.

Thanks for a great module!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant