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.73k stars 1.62k forks source link

Glyph Support Request: U+2295 CIRCLED PLUS / U+2297 CIRCLED TIMES / U+208B SUBSCRIPT MINUS #265

Open Holzhaus opened 3 years ago

Holzhaus commented 3 years ago

In order to use this font for drawing diagrams of digital circuits, it would be great if you could add support for some glyphs:

Codepoint Usage
U+2295 CIRCLED PLUS XOR gate
U+2297 CIRCLED TIMES AND gate
U+208B SUBSCRIPT MINUS Indices (in this case for bits)

Example: LFSR diagram

Vim (using Fira Code)

Screenshot from 2021-02-19 14-36-38

Rustdoc (using Source code Pro)

Screenshot from 2021-02-19 14-32-38

Plain text version

This may also look broken depending on your browser font:

     MSB                                    LSB
    ┌─────┐           ┌───┐  ┌───┐  ┌───┐  ┌───┐
┌──▶│ sₐ₋₁├┬──▶ ... ─▶│ s₃├┬▶│ s₂├┬▶│ s₁├┬▶│ s₀├┬───▶ output bit
│   └─────┘│          └───┘│ └───┘│ └───┘│ └───┘│
│          ▼               ▼      ▼      ▼      ▼
│sₐ        ⊗ ◀─pₐ₋₁        ⊗ ◀─p₃ ⊗ ◀─p₂ ⊗ ◀─p₁ ⊗ ◀─p₀
│          │               │      │      │      │
│          ▼               ▼      ▼      ▼      │
└─────────╴⊕ ◀─ ... ◀──────⊕ ◀────⊕ ◀────⊕ ◀────┘
frankrolf commented 3 years ago

This character is not supported in SCP, what you are seeing is font fallback (I’m really wondering why code editors would choose to fall back to a different-pitch font?) In your diagram, I see a few other characters that are not supported by SCP, such as ⦻ (U+29BB) – if that is it.

Please edit your issue to make it a glyph support request, perhaps describing some usage scenario for which other yet unsupported character may be needed. (those diagrams look interesting!) Thanks!

Holzhaus commented 3 years ago

This character is not supported in SCP, what you are seeing is font fallback (I’m really wondering why code editors would choose to fall back to a different-pitch font?)

Ah ok. To elaborate, the screenshot at the top is actually not a code editor, it's the HTML documentation generated by rustdoc, so it's the browser that messes up here :D

I see a few other characters that are not supported by SCP, such as ⦻ (U+29BB) – if that is it. Please edit your issue to make it a glyph support request, perhaps describing some usage scenario for which other yet unsupported character may be needed. (those diagrams look interesting!)

I'll edit the description. Thanks!