What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

When browsing from my HTC Droid Incredible, running Android 2.2 w/ Sense, code blocks are not fixed-width.

Minor issue, no doubt.

example

share|improve this question
    
Minor or not, I'd still like to see this fixed on my HTC Incredible too. :) –  wawa Oct 13 '10 at 3:05
1  
seems to be a known bug in the Android browser: code.google.com/p/android/issues/detail?id=11356 –  balpha Oct 13 '10 at 10:32
1  
I'm seeing variable-width fonts using Chrome 29 on Android 4.3 today. Is this a possible regression? –  Daniel Pryden Aug 27 '13 at 5:58
add comment

1 Answer

up vote 4 down vote accepted

The pre style defines a LOT of standard fonts that work across Windows, Linux, and Mac.

font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 
             'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', 
             monospace, serif;

none of those fonts work on the Android browser? I dare say that is not a bug in us.

edit: also possibly related to
Not enforcing fixed width font family

share|improve this answer
    
Not sure when this changed, but all is fine on Android 2.3.x and 4.x today. (That is, unless lines need to be wrapped, and one expected that all browsers use the same width, which they don't, of course. But that still uses fixed width fonts then.) –  Arjan Apr 14 '12 at 10:36
    
thanx for this :) –  Darshak Mar 20 '13 at 5:46
add comment

You must log in to answer this question.

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