Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font fallback should allow selection of a Nastaliq font #276

Open
r12a opened this issue Mar 14, 2024 · 3 comments
Open

Font fallback should allow selection of a Nastaliq font #276

r12a opened this issue Mar 14, 2024 · 3 comments
Labels
doc:arab_ks doc:arab_ur doc:arfa gap The first comment in this issue is read by the gap-analysis document. i:fonts Fonts & font styles l:arb Arabic l:ks Kashmiri l:pes Persian l:ur Urdu p:basic The gap-analysis priority is Basic. s:arab Arabic script (Used for arb + pes) s:aran Arabic nastaliq script style x:alreq x:arab-ks x:arab-ug x:blink x:css-fonts x:gecko x:webkit

Comments

@r12a
Copy link
Contributor

r12a commented Mar 14, 2024

This issue is applicable to Urdu, Kashmiri, and other Arabic script orthographies.

Languages such as Urdu and Kashmiri are written in a nastaliq style of Arabic, and authors will typically want any font fallback to select another nastaliq font, rather than a naskh or other font.

More:

The GAP

Currently there is no way to tell the browser to fall back to a nastaliq font, rather than a naskh or other font.

Neither Gecko, Blink, nor Webkit support this. Before they can, CSS needs to provide a way for authors to indicate that a nastaliq generic font should be used.

Priority

This is a high priority for languages such as Urdu and Kashmiri, where nastaliq fonts are the norm, and incorrect substitutions may cause readability and cultural issues. It is also a useful feature for other languages, such as Persian or Kurdish, where nastaliq styles may be used for certain types of text.

Tests & results

Interactive test, font-family:generic(nastaliq) will apply a nastaliq font in Urdu

Action taken

Discussion document: Generic font families

CSS discussion threads:

Bug reports:
GeckoBlinkWebkit

Outcomes

The CSS Fonts 4 spec now defines a generic(ident) syntax which will be used for newly-introduced, and especially for script-specific, generics.

generic(nastaliq) has been added as one of the generic family names.

Browsers are not yet supporting that.

@r12a r12a added gap The first comment in this issue is read by the gap-analysis document. doc:arfa p:basic The gap-analysis priority is Basic. x:webkit x:blink x:gecko x:alreq x:css-fonts x:arab-ks doc:arab_ks x:arab-ug doc:arab_ug i:fonts Fonts & font styles l:pes Persian l:ur Urdu l:ks Kashmiri labels Mar 14, 2024
@r12a
Copy link
Contributor Author

r12a commented Mar 14, 2024

The first comment in this issue contains text that will automatically appear in one or more gap-analysis documents as a subsection with the same title as this issue. Any edits made to that comment will be immediately available in the Editor's draft of the document. Proposals for changes or discussion of the content can be made by adding comments below this point.

Relevant gap analysis documents include:
Arabic/PersianKashmiri

@r12a r12a removed the doc:arab_ug label Mar 14, 2024
@r12a
Copy link
Contributor Author

r12a commented Mar 15, 2024

Added bug reports.

@r12a r12a added s:arab Arabic script (Used for arb + pes) l:arb Arabic s:aran Arabic nastaliq script style labels Jun 29, 2024
@avidseeker
Copy link

Note that the opposite of this issue also holds, where Arabic speakers are not used to Nastaliq font, which is sometimes used erroneously by improper fontconfig on Linux. See Font config Gitlab issue.

Redhat pushed the fixed fontconfig, but other distros may face this issue like Arch Linux issue. The fontconfig fix is listed on the Arch Wiki

CCing @tonijarjour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc:arab_ks doc:arab_ur doc:arfa gap The first comment in this issue is read by the gap-analysis document. i:fonts Fonts & font styles l:arb Arabic l:ks Kashmiri l:pes Persian l:ur Urdu p:basic The gap-analysis priority is Basic. s:arab Arabic script (Used for arb + pes) s:aran Arabic nastaliq script style x:alreq x:arab-ks x:arab-ug x:blink x:css-fonts x:gecko x:webkit
Projects
Status: Browser bug raised
Development

No branches or pull requests

2 participants