Skip to content

How to render monospaced fonts on Ubuntu? #9

Description

@webhype

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions