Why number sign "#"
(known as hashtag symbol on social media) or at sign "@"
are not consistent with the style of other letters of alphabet?
On the other hand "&"
or "$"
match the style of other letters.
Using default font:
Style[Partition[{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
"K", "L", "M", "N", "#", "@", "O", "P", "Q", "R", "$", "&", "S",
"T", "U", "V", "W", "X", "Y", "Z"}, 6] // Grid, 50]
Using specific font family:
Style[Partition[{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
"K", "L", "M", "N", "#", "@", "O", "P", "Q", "R", "$", "&", "S",
"T", "U", "V", "W", "X", "Y", "Z"}, 6] // Grid,
FontFamily -> "Lucida Console", 50]
Specifically I need mono-spaced font, like for example "Lucida Console" is, but the result is simply ugly.
Do you have recommendation for a nice mono-spaced font that correctly displays both "#"
and "@"
?
Update:
I found out Mathematica itself uses weird font for "@#"
: (see the distorted edges of "@"
, "#"
has no distorted edges probably just because it is composed only of horizontal and vertical lines)
Rasterize["A # @ $ &" , ImageSize -> 600, RasterSize -> 1000]
Update 2:
On wikipedia number sign page they use non-italic font throughout the whole page but anyway the symbol of "#"
is displayed as if it was italic. Why in mathematica we have this ugly "square like" shape and not nice "rhombus like" shape for "#"
?
Update 3:
I even downloaded this beautiful roboto font and I tested it in other software and it nicely display "rhombus like" shape for "#"
- Then I used this font in Mathematica and guess what? - All letters were OK but the same ugly "square shape" for "#"
. - What is wrong with Mathematica?
\[NumberSign]
character. $\endgroup$\[NumberSign]
is similarly inconsistent with other letters as it is with ordinary"#"
. $\endgroup$Column[Style["Aa # @ \[NumberSign] "<>#, FontFamily -> #] & /@ $FontFamilies]
(or$FontFamilies[[i ;; j]]
if you just want some) $\endgroup$\[NumberSign]
and#
for Lucida Console miight siimply have to do with Lucida Console. Check out the other characters inStyle["\[NumberSign]" <> StringJoin[Table[FromCharacterCode[n], {n, 32, 128}]], FontFamily -> "Lucida Console"]
. Compare with, say,Times
, which appears to format as expected except for Mathematica's slot symbol. Or, it could simply be that more characters are special Mathematica characters than I thought; I'm not sure. $\endgroup$