46

I'm seeing something weird this morning while editing questions (and answers). Instead of the normal monospaced font I usually see, the text is some smaller proportional font. Oddly, I'm seeing the correct font while typing this post but I've tried editing half a dozen different posts on SO and they all show the wrong font. Last night everything was fine. The font used to display the message is fine. It's only an issue inside the editing box.

And it turns out that going back and editing this post, I am now seeing the same incorrect proportional font. Very weird. Why would I see the correct font when originally posting and the wrong font when I go back and edit?

Did some CSS or something else change in the last 10 hours?

I'm using Safari 11.0.1 on macOS 10.12.6 if it matters.

Here's a screenshot from typing in a new question:

enter image description here

Here's a screenshot while editing this question:

enter image description here

17
  • @MartijnPieters Just added some screenshots. I've restarted Safari and cleared the cache with no effect.
    – rmaddy
    Commented Feb 13, 2018 at 16:58
  • 3
    Ah, yes, reproduced, and now I see it in Chrome too.
    – Martijn Pieters Mod
    Commented Feb 13, 2018 at 17:03
  • 3
    Same in answers, actually. New posts are fine, editing existing posts gives you a proportional font.
    – Martijn Pieters Mod
    Commented Feb 13, 2018 at 17:04
  • 1
    There's CSS that defines textarea:not(.s-input) to have font-family: Arial,"Helvetica Neue",Helvetica,sans-serif as part of a large number of form element selectors, all with :not(.s-input). The textarea has a class of "wmd-input", which is defined as having a font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif, but that selector is less specific. Commented Feb 13, 2018 at 17:13
  • 2
    @MikeMcCaughan: on a new post (new question, new answer on a question page), the editor has the id wmd-input, so the specific textarea#wmd-input rule applying a monospaced font applies. When editing an existing post, the id changes to wmd-input-<number>, so the specific rule no longer applies.
    – Martijn Pieters Mod
    Commented Feb 13, 2018 at 17:22
  • @MartijnPieters I was looking at the classes on the textarea while editing this meta post. It does indeed have an id like that, but it has class="wmd-input processed" on there. Don't know if that's a meta thing or what. Commented Feb 13, 2018 at 17:27
  • @MikeMcCaughan: it happens on both Meta and the main site.
    – Martijn Pieters Mod
    Commented Feb 13, 2018 at 17:43
  • @rmaddy Re: Did some CSS or something else change in the last 10 hours? If you want to see the version of the site, it's down at the bottom-right of the page, e.g. now it says " rev 2018.2.13.28925" which looks suspiciously like a date and time of some sort. Commented Feb 13, 2018 at 18:14
  • @AndrewMorton Thanks. I don't think I've ever looked at the bottom of the page in all the years I've been on this site. Yeah, that version number sure seems like a good hint something changed quite recently.
    – rmaddy
    Commented Feb 13, 2018 at 18:19
  • 1
    Can reproduce in Firefox 58 Commented Feb 13, 2018 at 19:20
  • 1
    I would've sworn that the editor is proportional by default (i.e. already for new posts). I distinctively remember getting nontrivial indentation right in several successive steps. So either this is nothing new or I'm getting confused between main and chat... Commented Feb 13, 2018 at 19:47
  • 12
    @AndrasDeak No, it's always been a monospaced font for new posts and editing posts. I rarely use chat so I don't know what it uses. I've been coding 38 years in fixed-width fonts. This morning's sudden use of a proportional font was like a hot poker to the eye. I can't fathom how people can code with such a font.
    – rmaddy
    Commented Feb 13, 2018 at 19:52
  • I think this is the first bug I've dealt with on SO. What's the process to get this resolved? Is this meta post enough?
    – rmaddy
    Commented Feb 13, 2018 at 21:16
  • 3
    yes, please bring back the old font. It's a lot harder to micro-format with the newer one.
    – cs95
    Commented Feb 13, 2018 at 21:48
  • 1
    @rmaddy Coding in proportional fonts makes sense in certain languages that don't necessarily need vertical alignment after the first non-whitespace character, Haskell comes to mind. The official book on C++ uses a proportional typeface for C++ code samples too.
    – Dai
    Commented Feb 13, 2018 at 22:49

1 Answer 1

12

Fixed now, see Font in editor for editing posts has become proportional on MSE.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .