pre not correct display
Categories
(Core :: Graphics: Text, enhancement)
Tracking
()
People
(Reporter: php.tux, Unassigned)
Details
Attachments
(1 file)
|
32.68 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:97.0) Gecko/20100101 Firefox/97.0
Steps to reproduce:
I make a simple "pre" tag with followed code:
<pre>get_class_methods($class);</pre>
The closed bracket is displayed as a "|" displayed.
Expected results:
Browser: Firefox v97
OS: Linux Mint 20.2 / Linux-Kernel 5.4.0-100
Firefox is install via official repository.
Updated•4 years ago
|
Comment 1•4 years ago
|
||
This looks like a poorly-hinted (or unhinted) font, being displayed without antialiasing, and the glyph shapes just don't rasterize at all well. The closing parenthesis isn't the only poorly-rasterized glyph in the screenshot; the opening brace is quite bad, and some letters (see "A" and "x") are rough too.
I don't think this is really a Firefox bug; it's a poorly-configured font setup; the solution is to either choose a different monospaced font, or different font rendering settings in the desktop environment.
Yes, you're right. I changed the font from "Monserat" to "monospace". Everything is displayed correctly. I'm just surprised that it is displayed correctly in "Opera".
It's not a bug. It can be closed.
Comment 3•4 years ago
|
||
Based on comment 2 I will close this as worksforme.
Thanks.
Description
•