catdad-experiments / catdad-experiments/svg-render
How to render monospaced fonts on Ubuntu?
- Dominant language
- JavaScript
- Stars
- 9
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.