<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>271048</bug_id>
          
          <creation_ts>2024-03-15 03:04:50 -0700</creation_ts>
          <short_desc>Font fallback should allow selection of a Nastaliq font</short_desc>
          <delta_ts>2024-03-22 03:05:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="r12a">ishida</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>karlcow</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>vitor.roriz</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2021267</commentid>
    <comment_count>0</comment_count>
    <who name="r12a">ishida</who>
    <bug_when>2024-03-15 03:04:50 -0700</bug_when>
    <thetext>Interactive test, font-family:generic(nastaliq) will apply a nastaliq font in Urdu
https://github.com/w3c/character_phrase_tests/issues/63



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:

- Arabic &amp; Persian Layout Requirements (https://www.w3.org/TR/alreq/#h_writing_styles)
- Urdu (Nastaliq Arabic) Orthography Notes/Font styles (https://r12a.github.io/scripts/arab/ur.html#writing_styles)
- Nastaliq system fonts (https://r12a.github.io/scripts/fontlist/index.html?script=arab#nastaliq)

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.

The CSS Fonts 4 spec now defines (https://drafts.csswg.org/css-fonts-4/#generic-family-name-syntax) a generic(ident) syntax which will be used for newly-introduced, and especially for script-specific, generics.

generic(nastaliq) (https://drafts.csswg.org/css-fonts-4/#generic(nastaliq)-def) has been added as one of the generic family names.

This issue is being tracked by the W3C at https://github.com/w3c/alreq/issues/276</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2023072</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-22 03:05:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/125226454&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>