On Nov 10, 2015, at 14:29 , David Hoerl <dho...@mac.com> 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      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to