About font-feature-settings.

0 votes
asked Sep 19 in Question / help by Astonfe
Is it possible to use an option as `font-feature-settings: "cv10" 19`, or something similar, in activity diagrams or in mind maps?
commented 2 hours ago by The-Lu (91,520 points)

Hello A.,

Thank you for the request.

  • Where should this value be placed?

On:

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 115 49" width="345" height="147"><defs/><g><rect x="6" y="6" width="99.59" height="33.33" rx="12.5" ry="12.5" fill="#F1F1F1" stroke="#181818" stroke-width="0.5"/><text x="16" y="26.33" font-size="12" fill="#000000" xml:space="preserve" style="white-space: pre" font-family="sans-serif">Difficult waffles</text></g></svg>

We could add this functionality with:

!option svgStyle "font-feature-settings:'cv10' 19;"

Like with:

Ref.

FYI from CSS Fonts Module Level 4:

Authors should not use font-feature-settings to set any of the font features in the table below. Instead, please use the higher-level replacement properties, because:

  1. The higher-level properties cascade individually. You can set one without setting the whole font-feature-settings list
  2. Some higher-level properties can be synthesized for fonts that do not support the font feature.

Finally another question, perhaps we could in fact allow directly full CSS inclusion.

This gives the user the choice to add any parameters they wish.


In order to open the debate…

Regards,
Th.

commented 2 hours ago by Astonfe

Hi,
my question is mainly about the Iosevka Aile font, because I would like to avoid the slashed zero (I don't like it) in diagrams. The syntax

!option svgStyle "font-feature-settings:'cv10' 19;"

is very interesting but, if I'm not wrong, it's not available in the last PlantUML release.

commented 1 hour ago by The-Lu (91,520 points)

Hello A.,

 it's not available in the last PlantUML release.

Yes.. that is only a proposal in order to implement...

Regards,
Th.

commented 1 hour ago by The-Lu (91,520 points)

Then:

  • Could you answer the first question ?
  • Where should this value ("font-feature-settings:'cv10' 19") be placed on the SVG XML?
  • in in which XML tag or attribute?
Regards,
Th.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...