I am trying the get the vertical bars to be aligned in the output of the following program
print(' |\n |')
The special 'N' is U+1D4A9.
Using ipython in my terminal (I am using Ubuntu) the alignment is fine:
But if I run the exact same code in spyder the output will not be aligned:
Note that I am using the exact same font and font size in both examples (Ubuntu Mono 12). I have also tried to get it aligned by inserting all types of varying size unicode spaces without success. I have also tested jupyter and it doesn't align there either.
My main question is how can I get this to align in both the terminal and in spyder/jupyter. It would also be interesting to know why it doesn't align now as I am using the exact same font. Differences in the font renderers?
Here is also the output from the terminal in text (looks slightliy misaligned in my browser):
In [1]: print(' |\n |')
|
|



