Have you ever had situation where you copied something (usually from a command line terminal) that's aligned and paste it, and find that it's not aligned anymore?
This is because command line terminals usually use a fixed-width font, but the default font in Windows is usually not. A fixed-width font (also called monospaced font) means that every character in the font will always have the same width. Hence, lines would always align.
See this example where 10 '.' and 10 numbers are used:
Fixed-width (Consolas)
..........
0123456789
Non fixed-width (Arial)
..........
0123456789
So the simple solution for the aforementioned scenario is just to change the font where you paste it and viola, your text is aligned again.
A few of my favourite fixed width fonts: Consolas (comes with Windows), Bitstream Vera Sans Mono. Also notable: Courier New, Ubuntu Sans Mono, Inconsolata.
Comments
Post a Comment