Page MenuHomePhabricator

Phabricator uses different monospace fonts for inline code snippets and block code snippets
Closed, ResolvedPublic

Description

Phabricator uses different monospace fonts for inline code snippets (using a single backtick `) and for block code snippets (using three backticks ``` or indentation).

This is most visible with characters like '0' (zero) or 'l' (lowercase L), which tend to be the most visible difference between monospace fonts.

pasted_file (163×1 px, 8 KB)

It looks like blocks use the font defined in Phabricator preferences (in my case, DejaVu Sans Mono) while inlines use the default system monospace font (in my case, Consolas).

Event Timeline

Aklapper triaged this task as Lowest priority.May 30 2021, 9:36 AM

Maybe things have changed over the last seven years since this was filed.
I don't consider this a problem nowadays?

0
is NotoSans Mono Regular 13px on my machine due to being <tt>.

0

is Noto Sans Mono Regular 12px on my machine due to being <pre>.

I still see the same problem.

I could contribute a patch upstream, if we know anyone willing to approve it. So far Phorge has not accepted any of my patches.

I still see the same problem.

Same as in my case (same font but different size)? Or also different fonts being used?

I could contribute a patch upstream, if we know anyone willing to approve it. So far Phorge has not accepted any of my patches.

https://we.phorge.it/D25341 has been accepted and you could land it.

Different size and font (same fonts as in 2016, though). Here's a current screenshot, if you like.

image.png (333×2 px, 33 KB)

https://we.phorge.it/D25341 has been accepted and you could land it.

That… was not obvious to me.

Aklapper claimed this task.

This issue should be resolved in phabricator.wikimedia.org since 2024-03-19 thanks to brennen's deployment in T358610. Please reopen if you still experience this issue.