php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #66131 Inconsistent font sizes
Submitted: 2013-11-20 23:51 UTC Modified: 2014-03-14 14:26 UTC
From: mytskine at gmail dot com Assigned: levim (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mytskine at gmail dot com
New email:
PHP Version: OS:

 

 [2013-11-20 23:51 UTC] mytskine at gmail dot com
Description:
------------
Some fonts size are in relative units (e.g. "1em") while others have a fixed size (e.g. code samples have a size of "14px").

Expected result:
----------------
Coherent font size : plain text and code sample should have roughly the same size.
Either fixed sizes for all, or relative sizes for all (preferred).

Actual result:
--------------
Depending on the default font of the browser, the code samples can be much larger than most of the text on the page (e.g. 14px/9px means a 56% larger code font).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-03-05 21:22 UTC] levim@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: levim
 [2014-03-05 21:22 UTC] levim@php.net
In the case of font sizes, this is intentional. For whatever reason, every monospace font I tested was rendered differently in ems across various browsers, but experienced no problems in fixed point fonts. I can re-investigate this to see if I can find a better solution; I am going to move to rem instead of em anyway.
 [2014-03-05 21:23 UTC] levim@php.net
In my previous comment I said "In the case of font sizes, this is intentional" but meant "In the case of font sizes for code samples, this is intentional"
 [2014-03-14 14:26 UTC] levim@php.net
-Status: Verified +Status: Closed
 [2014-03-14 14:26 UTC] levim@php.net
This should be fixed with the conversion from em to rem. See this commit: https://github.com/php/web-php/commit/ae01ce157383dcf7b763c66cc50a6c1c72ed4238

There are a few commits afterwards that do minor cleanup but everything seems to integrate better.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 07:01:28 2025 UTC