jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Apache License 2.0
39.53k stars 7.4k forks source link

Allow users to customize OpenType font features in text #4184

Open tats-u opened 4 months ago

tats-u commented 4 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I want to use some alternative glyph in favorite fonts (e.g. slashed zero & kerning). This can be implemented using OpenType font features.

Inkscape can designate these features in text.

image

image

image

Describe the solution you'd like A clear and concise description of what you want to happen.

Allow users to customize font-feature-settings or font-variant-* in CSS in text.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

No other ways

Additional context Add any other context or screenshots about the feature request here.

https://developer.mozilla.org/docs/Web/CSS/font-feature-settings https://rsms.me/inter/#features https://github.com/JetBrains/JetBrainsMono?tab=readme-ov-file#opentype-features https://github.com/tonsky/FiraCode/wiki/How-to-enable-stylistic-sets

MohiuddinSumon commented 1 week ago

https://github.com/jgraph/drawio/discussions/4073

please also allow using custom ttf from installed font / direct font file