IBM / plex

The package of IBM’s typeface, IBM Plex.
SIL Open Font License 1.1
9.69k stars 576 forks source link

Unable to disable Arabic ligatures in CSS with Plex Sans from Google Fonts #409

Closed shadysamir closed 3 years ago

shadysamir commented 3 years ago

I am using Plex Sans Arabic from Google fonts. I would like to disable ligatures. I tried the following CSS rules but it makes no difference:

font-feature-settings: "liga" 0;
font-variant-ligatures: none;
BoldMonday commented 3 years ago

Arabic ligatures are part of the Required Ligatures feature with the tag rlig.

https://docs.microsoft.com/en-us/typography/opentype/spec/features_pt#tag-rlig

shadysamir commented 3 years ago

Perfect. Using rule:

font-feature-settings: "rlig" 0;

disabled ligatures. Thanks

shadysamir commented 3 years ago

Of course disabling that renders لا and essential ligatures in an undesirable way. Will need to figure out different solutions. But the issue itself is addressed. Remains closed.

BoldMonday commented 3 years ago

AFAIK the rlig feature only contains essential ligatures for Arabic. Which ligatures are not essential to you?

shadysamir commented 3 years ago

I would like the font to be rendered like this:
image
not like this:
image

I would at least consider محمد unessential, while لما is debatable, but لا is definitely essential

BoldMonday commented 3 years ago

I can’t comment on that since these are the decisions made by the designers of Plex Sans Arabic. But it’s possible that the latest version of the fonts hosted in this repository are a little different.