[Solved] How to display Unicode math symbol operator characters large enough to comprehend?
[Solved] How to display Unicode math symbol operator characters large enough to comprehend?
- Subject: [Solved] How to display Unicode math symbol operator characters large enough to comprehend?
- From: David Hoerl <email@hidden>
- Date: Sun, 06 Dec 2015 17:34:37 -0500
On Nov 10, 2015, at 14:29 , David Hoerl <email@hidden> wrote:
Now that Swift supports the use of certain Unicode symbols for operators, I thought I'd try some.
Problem is I'm using Monaco 10 (ah, so old school) and the mathematical symbols are so small I can't really tell what they are. I looked in the "Fonts and Colors" prefs, but didn't see anything obvious to change.
Anyone else solve this?
I recently downloaded two DejaVu Sans fonts - one is a proportional font
(shows up in Font Book as a "Deja Sans Book") the other monospaced
("Deja Sans Mono Book")
In Xcode, select all options (CMD-A) in the Font and Colors pane, and
change the Font to Deja Vu Sans Mono. Then select just the "Function and
Method Names", then select "Deja Vu Sans" for the font.
The function and method names will be slightly "squished", but the
Unicode symbols are now nice and big.
So to try this out yourself:
In any Swift file, add this global operator:
infix operator ●■◆○□◇★☆♠♣♥♦♤♧♡♢ { }
func ●■◆○□◇★☆♠♣♥♦♤♧♡♢ (i: Int, j: Int) -> Int {
return i + j
}
Then somewhere (in some method), use it:
let z = 4 ●■◆○□◇★☆♠♣♥♦♤♧♡♢ 5
If you then toggle the Function and Method names option, you can see the
difference.
PS: some other characters to play with:
/*
«»‹›〖〗【】「」『』〈〉《》〔〕
※ •◦‣✓●■◆○□◇★☆♠♣♥♦♤♧♡♢
←→↑↓ ↔ ↖↗↙↘ ⇐⇒⇑⇓ ⇔⇗ ⇦⇨⇧⇩ ↞↠↟↡
↑↓→←⇞⇟↖↘ ◀▶▲▼ ◁▷△▽ ⇄ ⇤ ⇥ ↹
①②③④⑤⑥⑦⑧⑨⓪
*/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden