• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Solved] How to display Unicode math symbol operator characters large enough to comprehend?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Prev by Date: Re: New C++ warning about comparing this==NULL
  • Next by Date: Every now and again, the Swift compiler loses its mind?
  • Previous by thread: Re: Can't add *.proto files to a target
  • Next by thread: Every now and again, the Swift compiler loses its mind?
  • Index(es):
    • Date
    • Thread