Skip to content

Default fonts in img formatter are backwards #928

@Anteru

Description

@Anteru

(Original issue 1221 created by scolby33 on 2016-03-16T02:33:26.073910+00:00)

In the documentation, it is stated that the default font for the img formatter is '“Bitstream Vera Sans Mono” on Windows, Courier New on *nix.'

However, at lines 48-49 of pygments-main/pygments/formatters/img.py we have:

#!python

DEFAULT_FONT_NAME_NIX = 'Bitstream Vera Sans Mono'
DEFAULT_FONT_NAME_WIN = 'Courier New'

Bitstream Vera Sans Mono is not even shipped on OS X.

I think this is a duplicate of issue #868, but that has languished for two years now and, since this is such a simple fix, I figured I would bring it to attention again.

Metadata

Metadata

Assignees

Labels

T-bugtype: a bugX-importedimported from Bitbucket

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions