w3c / w3c/afrlreq

Glyphs for characters in other blocks incorrectly falling back to system font

Open
#19 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

doc:adlm doc:nkoo gap i:fonts l:ff l:nqo p:ok s:nkoo
Dominant language
HTML
Stars
11
Forks
4
PR merge metrics
No merged PRs in 30d

Description

This issue is applicable to Adlam and N'Ko.

When text contains a punctuation mark such as an Arabic question mark, the glyph displayed should be that contained in the Adlam or N'Ko font, if it contains one.

The Gap

At least one browser on desktop and mobile render the Arabic question mark (and perhaps other punctuation) using a fallback font despite the font containing the appropriate glyph.

Example in N'Ko:

Incorrect question mark glyph

This was tested with the Noto Sans NKo font. In Gecko and Blink the question mark falls back to a different font.

It may be related to a script itemization issue where Adlam or N'Ko is not properly recognized. A request was made to the Unicode Consortium to fix the Script Extensions table.

Other characters from the Arabic and Devanagari script blocks exhibit the same behaviour. For example, a danda used in Limbu, or a tatweel used in Syriac.

More:

Priority

A question mark is visible, just not in the correct font. So marking as advanced.

Tests
Action taken

Gecko

The Unicode properties & algorithms group proposed an update to Script_Extensions for Adlam and N'ko to include the appropriate Arabic punctuation marks, and it was discussed in UTC. See PRI428g in https://www.unicode.org/L2/L2021/21069-utc167-properties-recs.pdf

Outcomes

The Unicode Consortium has fixed the script extensions table.

All 3 browser engines now do the right thing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked interactive test in w3c/glyph_character_tests issue 7 and review the Gecko Bugzilla issue 1834316, then check the Unicode Script_Extensions table changes cited in the issue. Done is confirmed when Adlam and N’Ko punctuation uses the appropriate font across all three browser engines; the issue reports that outcome already.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
internationalization
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.