spacing incorrect with monospace font and line drawing characters

  • Thread starter Thread starter Carl Hagenmaier
  • Start date Start date
C

Carl Hagenmaier

It seems that spacing is incorrect for the unicode line drawing characters
even if a monospace font is used.

I would expect the "X"s to line up vertically in the following example

<pre>
abcdeX
┉┉┉┉┉X
</pre>

but they do not. Any suggestions for workarounds?

-C
 
How characters line up is totally dependent on the font. What monospace
font are you using?


Carl Hagenmaier said:
It seems that spacing is incorrect for the unicode line drawing characters
even if a monospace font is used.
 
The behavior doesn't seem to change with font. I've tried Courier, Courier
new, and Lucida Console. Firefox displays the page correctly with all three
of these fonts. I would imagine Firefox uses the same font files.

-C
 
I think the problem is most likley that none of the readily-available
monospace fonts actually include that character. If you enter the same
lines into Word or Wordpad, you get the "no glyph" square box. IE is
probably substituting a character from another font when the designated
font doesn't have it, and because of that, the characters don't line up.
I seem to recall the Firefox has a completely different rendering engine,
so it's not surprising that it gives different results.
 
Back
Top