Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by ikegami (Patriarch)
on Oct 19, 2007 at 20:05 UTC ( [id://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)

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://646064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-25 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found