Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: How scalars work (about numbers, text strings, and binary strings)

by ikegami (Pope)
on Oct 19, 2007 at 20:05 UTC ( #646064=note: print w/ replies, xml ) Need Help??


in reply to Re^3: How scalars work (about numbers, text strings, and binary strings)
in thread How scalars work (about numbers, text strings, and binary strings)

It's not that monospace fonts have characters that aren't monospaced, is that very few of them have the necessary characters. When a character is missing, the OS will use an alternate font for that character.

For example, the "Courier New" on this machine doesn't have any of the "BOX DRAWINGS HEAVY" characters (such as U+250F, BOX DRAWINGS HEAVY DOWN AND RIGHT, ┏), only "BOX DRAWINGS LIGHT" characters (such as U+250C, BOX DRAWINGS LIGHT DOWN AND RIGHT, ┌).

You used characters not present in my "Courier New", including "BOX DRAWINGS HEAVY DOWN AND RIGHT". Those characters are being fetched from another font, perhaps Arial, causing the diagram to be distorted.

Had you used only characters present in my "Courier New", such as "BOX DRAWINGS LIGHT DOWN AND RIGHT", the diagram would not be distorted.

So yes, totally a font issue, though not quite the one you described.


Comment on Re^4: How scalars work (about numbers, text strings, and binary strings)
Re^5: How scalars work (about numbers, text strings, and binary strings)
by Juerd (Abbot) on Oct 19, 2007 at 21:29 UTC

    Interesting. The default monospace font in Ubuntu appears to be DejaVu Sans Mono. I've changed the lines to thin ones, so it works both in your font and in mine.

    Juerd # { site => 'juerd.nl', do_not_use => 'spamtrap', perl6_server => 'feather' }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://646064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-08-23 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (178 votes), past polls