source-code-pro icon indicating copy to clipboard operation
source-code-pro copied to clipboard

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

Open Holzhaus opened this issue 4 years ago • 3 comments

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₀
│          │               │      │      │      │
│          ▼               ▼      ▼      ▼      │
└─────────╴⊕ ◀─ ... ◀──────⊕ ◀────⊕ ◀────⊕ ◀────┘

Holzhaus avatar Feb 19 '21 13:02 Holzhaus

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!

frankrolf avatar Feb 19 '21 15:02 frankrolf

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!

Holzhaus avatar Feb 19 '21 17:02 Holzhaus

it's the browser that messes up here

Yeah, sorry about that. It is a known bug in chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=807361#c_ts1600152903

Also see my comment in the other related issue https://bugs.chromium.org/p/chromium/issues/detail?id=1083930#c10

You should set some other font like PragmataPro.

ValZapod avatar Mar 18 '21 11:03 ValZapod