This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Here I mentioned range subtraction and range restriction operators, which I have since found, as 2a64 and 2a65, which are on this Unicode chart. Only they say anti-restriction, which means the same. I am blowed if I can get it to display anywhere. I even tried putting \u2a64 or %c . . . 0x2a64 into JOptionPane and got little squares. On Gedit and "bash" it appears as a square with 2a64 in.
Anybody know anything about this? Are these new symbols in Unicode? Have they been added since Java6 came out? Anybody know how to display them?
Which font are you using? I wouldn't imagine that most common fonts have those; you'll probably have to resort to a special math font.
Joined: Oct 13, 2005
Thank you very much.
On JOptionPane it would appear to be the usual sans-serif font they use in Java. But I thought that was Unicode compliant; whenever I tried anything else in JOptionPane it has come out nicely. I also have no difficulty getting things like ▷ (\u25b7) to show on "bash".
bash: ▷: command not found
And I could easily copy and paste to OpenOffice; I tried the following fonts: Nimbus Roman no 9, courier 10-pt, Bitstream Vera Sans, Tarablus, and the ▷ appeared clearly.
Joined: Mar 22, 2005
I don't think there are any fonts that include the full range of Unicode characters - it would be huge! E.g., there's a font from Microsoft -Unicode Arial or some such- that has most of the CJK characters - it's more than 20MB, and probably still doesn't have math symbols.
Googling something like "unicode math fonts" should find appropriate ones. There are also tools that show for all installed fonts which characters are included; for OS X, UnicodeChecker (and UnicodeFontInfo) come to mind.
On my machine, only a font called "Apple Symbols" has the 2a64 and 2a65 characters.
Joined: Oct 13, 2005
The nearest I could find so far was DejaVu fonts. There is somebody working on the range 2a**, so I shall log onto their forum and see if I can put in a request.
Thank you very much, Paul. Caslon appeared promising from that page, but doesn't seem to support my glyphs (and I already had it). I have put in a request on the Deja Vu mailing list.