Font for code blocks

I noticed that the font for code blocks is now a non-monospace serif font… was this intentional? It’s really ugly looking at code blocks in posts now.

Example:


import java.util.ArrayList;

public class MyAwesomeClass {
    public static void main(String[] args) {
        ArrayList<String> items = new ArrayList<>();
        items.add("pie");
        items.add("java");
        items.add("JGO");
        items.add("airplanes");
        
        for(String s : items) {
            System.out.printf("I like %s!\n", s);
        }
    }
}

Mine is monospaced. Seems like it always has been. Did you mean that serifs were recently added? I hadn’t noticed.

Looks monospaced to me.

This is what I get (and have always gotten):

Did you mess with stylesheets?

Interesting… Can you post a picture of what you see?

What the…

Maybe you changed the user style sheets of the browser. Looks monospaced for me too. Checked on Chrome and Opera.

I can’t make it more platform independent than it currently is…


div.syntax *
{
   font-family: monospace;
   font-size: 10pt;
}

Your browser / OS is missing some crucial fonts :slight_smile:

I’ll investigate later today, maybe one of those pesky extensions modify my CSS… sigh

Investigation complete… I couldn’t find the exact root cause, but apparently some fonts on my system got FUBAR-ed. This was made evident by the font in Windows Calculator being broken as well! I re-installed the Windows 8.1 fonts from another 8.1 install and all is well now.