adobe-fonts / source-code-pro

Monospaced font family for user interface and coding environments
https://adobe-fonts.github.io/source-code-pro/
SIL Open Font License 1.1
19.83k stars 1.62k forks source link

Symbols desired #101

Open h-h-h-h opened 9 years ago

h-h-h-h commented 9 years ago

Hello,

a came across some useful symbols that Source Code Pro doesn't define, yet. Are you willing to define them?

Isn't there a stand-alone pencil with a rotation of WRITING HAND?

Thanks!

pauldhunt commented 9 years ago

is there any particular reason you feel that Source Code would benefit from including these symbols?

h-h-h-h commented 9 years ago

I needed them for GUI design with box drawing symbols and other characters. WASTEBASKET can have the meaning of "delete" and a pen the meaning of "edit". Maybe it's a valuable information for you what was already looked for, 'cause often times surely users just switch to another font. But I think Source Code Pro already is a pretty-looking typeface with box drawing symbols, arrow heads and more. Adding the symbols would be valuable for the described and other purposes.

h-h-h-h commented 9 years ago

There are some other useful symbols in this context:

Further, the symbols in the range from U+239B to U+23AD are a good extension to the box drawing symbols. They draw parentheses and brackets spanning multiple lines:

⎛
⎜
⎝
Parentheses
⎞
⎟
⎠

⎡
⎢
⎣
Square brackets
⎤
⎥
⎦

⎧
⎪
⎨
⎪
⎩
Curly brackets
⎫
⎪
⎬
⎪
⎭

This is useful for explanations and the like.

floam commented 8 years ago

This is useful for explanations and the like.

Better example, in mathematics. And this is stuff people use in terminals today - SymPy for example. Here's output in an isympy session:

In [8]: ((x-1)/(x**2 + 3)/(x+5), x)
Out[8]: 
⎛     x - 1         ⎞
⎜────────────────, x⎟
⎜        ⎛ 2    ⎞   ⎟
⎝(x + 5)⋅⎝x  + 3⎠   ⎠

In [9]: Integral(sqrt(1/x), x)
Out[9]: 
⌠           
⎮     ___   
⎮    ╱ 1    
⎮   ╱  ─  dx
⎮ ╲╱   x    
⌡           

Rendered with Menlo in Terminal.app:

screenshot 2016-03-07 at 4 50 05 am

It looks messed up (overlapping on the bottom of the parens, and separately the font weight/alignment on square root) with SCP selected as missing glyphs are being poorly substituted by the OS from other fonts:

screenshot 2016-03-07 at 4 49 03 am
h-h-h-h commented 7 years ago

@h-h-h-h: Isn't there a stand-alone pencil with a rotation of WRITING HAND?

Please note that while most fonts I inspected use a horizontal pencil for U+270F, the font Segoe UI Emoji uses a pencil with a rotation a right hand writing. That's the most useful and most needed symbol of those pencil symbols in my opinion!

polarathene commented 4 years ago

After dealing with font configuration on Linux, and finding that a font was overriding the glyphs of other fonts from having a higher priority when seeking fallbacks, I'd like to vote against something like this(since others seem to be for it).

Your OS (Windows/macOS I'm pretty sure handle this, Linux definitely) should be falling back to alternative fonts when glyphs are missing. Emoji/Symbols are a common enough case for this to deserve their own separate fonts, this is what the Noto fonts from Google(derived from Adobe iirc) have done.

That way, you're free to mix/match whatever fallback font you like(assuming your OS or editor has support for influencing the fallback selection, Linux does, and on macOS terminals like iTerm2 have a symbol font in settings). If you were to merge in requests here, then the next set of issues is arguments for style/design bias, black/white or colour versions, etc.

h-h-h-h commented 4 years ago

@polarathene: Fallback fonts mess up character sizes, at least on Windows. Not to do this is especially important with Source Code Pro, since it's a monospace font.

polarathene commented 4 years ago

I don't know what sort of control you'd have with fallback fonts on Windows. On Linux you can make a font scalable, so symbol/emoji adjust appropriately.

If this were to be supported, it should be some variant, as disabling glyphs is more difficult to do/maintain as a user than fallback fonts imo. If you can find a way to ensure what fallback font is used, perhaps Noto Emoji would work, or if you're ok with colour, Noto Color Emoji. It's considered monospace.