Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A well-known font called "Monospaced" but "monospace" is a generic family name.
font-family: Menlo, Consolas, "Andale Mono", "Lucida Console", "Nimbus Mono L", "DejaVu Sans Mono", monospace, "Courier New";
see: http://www.w3.org/TR/CSS21/fonts.html#propdef-font-family
Comment | File | Size | Author |
---|---|---|---|
#10 | font_rendering.patch | 469 bytes | droplet |
#10 | screenshot2.png | 177.52 KB | droplet |
#8 | screenshot.png | 490.68 KB | droplet |
#5 | drupal-1653406-5.patch | 828 bytes | tim.plunkett |
#3 | monospace.patch | 542 bytes | droplet |
Comments
Comment #1
sreynen CreditAttribution: sreynen commentedMakes sense. In the current list, Courier New will never be used, since every browser has a generic monospace font.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to 8.x. Moving to 7.x.
Comment #3
droplet CreditAttribution: droplet commentedComment #4
tim.plunkettDid anyone check git blame to see why this was done?
It was specifically done this way to avoid a bug in text size rendering with generic fonts.
See the links in #827528-32: No styling for PRE, CODE tags in Bartik for more detail.
This should be reverted and then closed (works as designed).
Comment #5
tim.plunkettHere's a revert and a comment so it doesn't get changed again.
Comment #6
sreynen CreditAttribution: sreynen commentedI hadn't considered it might be intentional. Reading over the discussion, it makes sense now, but just looking at the CSS, it seemed like a clear mistake. Adding the comment seems like a good way to avoid repeating this in the future.
Comment #7
webchickOk, committed and pushed to 8.x. Thanks!
I just added this:
...since that seemed to be the only browser we really care about in his post.
Comment #8
droplet CreditAttribution: droplet commentedahh. thanks.
I do a quick real test, anyone know what I missed.
Comment #9
tim.plunkettYou didn't adjust the font size at all.
See http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/, as mentioned in the comment in the patch.
Comment #10
droplet CreditAttribution: droplet commentedOkay. cleared caches and redo tests again.
To my understand..
IE8 & Opera 10 are 16px of SPAN
Others are smaller.
I tested Opera 12, IE8, IE9, FF 13, Chrome 21. Same results.
EDIT: also tested http://meyerweb.com/eric/css/tests/monospaced3.html in diff browsers.
Comment #11
tim.plunkettOH! I didn't see that @todo, it wasn't in my patch.
This is definitely relevant to more than IE.
Comment #12
webchickOops. :) That's what I get for trying to read CSS. :D
Committed and pushed to 8.x. Thanks. :)
Comment #14
cweagansFixing tags per http://drupal.org/node/1517250
Comment #14.0
cweagansadd more info