tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
76.09k stars 3.07k forks source link

Ligature request: Mermaid's Entity Relationship Diagram #1377

Open H2WO4 opened 2 years ago

H2WO4 commented 2 years ago

Would it be possible to add ligatures for Mermaid's ERD relationship notation? As it is not a common use case, adding them as variants might be preferable.

Syntax specification:

Examples: }o--||, |o--|{

Possible problems may arise, as ||, |- and -| are already ligatures. Hard-coding every possibility could possibly work.

Design:

tonsky commented 2 years ago

I guess it could be done, but sounds obscure? Where is it used?

H2WO4 commented 2 years ago

It is used solely (to my knowledge) by Mermaid (the Markdown extension). Within that, it is used solely for Entity Relationship Diagrams (used, for example, to represent relational databases). I definitely agree that it's obscure, and would definitely understand if this is given low priority (and honestly, it should). It is just that Fira Code currently does not work well at all with this notation. Example: image

H2WO4 commented 2 years ago

Additionally, here is the official syntax specification: https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram?id=relationship-syntax