Skip to content

Code blocks by darkfish are not correctly rendered on Firefox #830

@scivola

Description

@scivola

Problem

Here is a part of the screen shot of https://ruby.github.io/rdoc/.

Screenshot-of-rdoc-documentation

The color of texts in a code block is black, so we cannot read it.

Cause

Under certain conditions, Firefox cannot render Source Code Pro font correctly: it ignores specified font color.
https://bugzilla.mozilla.org/show_bug.cgi?id=1520157

To solve it, Adobe released an new version of Source Code Pro:
adobe-fonts/source-code-pro#217 (comment)

Although the bug of Firefox still remain, the new version of Source Code Pro will work as expected.

Solution

The version of Source Code Pro used in rdoc is too old.
Replacing it with the new version will resolve this issue!
https://github.com/adobe-fonts/source-code-pro/releases

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