<?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>231495</bug_id>
          
          <creation_ts>2021-10-10 20:30:52 -0700</creation_ts>
          <short_desc>On iOS 15, when the canvas font is set to -apple-system, calling fillText with Chinese characters would cause the whole canvas area to blank.</short_desc>
          <delta_ts>2021-10-11 09:42:08 -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>Canvas</component>
          <version>Safari 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>230187</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HTML5</keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>luonan.666</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1802510</commentid>
    <comment_count>0</comment_count>
      <attachid>440751</attachid>
    <who name="">luonan.666</who>
    <bug_when>2021-10-10 20:30:52 -0700</bug_when>
    <thetext>Created attachment 440751
render blank demo

On iOS 15, when the canvas font is set to -apple-system, calling fillText with Chinese characters would cause the whole canvas area to blank.

first, set ctx.font = &apos;28px -apple-system&apos;;
and then, draw some chinese, ctx.fillText(&apos;你好&apos;, 10, 50); 
then the whole canvas area becomes blank. but English letters could render correctly. 

Just change the font-family to &apos;Arial&apos;, everything works fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1802648</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-10-11 09:20:45 -0700</bug_when>
    <thetext>I cannot reproduce this with OS 15.1 beta. I think that it was a known issue, but cannot find the bug to dupe to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1802657</commentid>
    <comment_count>2</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-10-11 09:42:08 -0700</bug_when>
    <thetext>Likely, 230187.

*** This bug has been marked as a duplicate of bug 230187 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>440751</attachid>
            <date>2021-10-10 20:30:52 -0700</date>
            <delta_ts>2021-10-10 20:30:52 -0700</delta_ts>
            <desc>render blank demo</desc>
            <filename>canvasfont.html</filename>
            <type>text/html</type>
            <size>511</size>
            <attacher>luonan.666</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgICA8bWV0YSBjaGFyc2V0
PSJVVEYtOCI+CiAgICA8bWV0YSBodHRwLWVxdWl2PSJYLVVBLUNvbXBhdGlibGUiIGNvbnRlbnQ9
IklFPWVkZ2UiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmlj
ZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xLjAiPgogICAgPHRpdGxlPkRvY3VtZW50PC90aXRsZT4K
PC9oZWFkPgo8Ym9keT4KICAgIDxjYW52YXMgaWQ9ImNhbnZhcyI+PC9jYW52YXM+CiAgICA8c2Ny
aXB0PgogICAgICAgIGNvbnN0IGNhbnZhcyA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJjYW52
YXMiKTsKICAgICAgICB2YXIgY3R4ID0gY2FudmFzLmdldENvbnRleHQoJzJkJyk7CiAgICAgICAg
Y3R4LmZvbnQgPSAnMjhweCAtYXBwbGUtc3lzdGVtJzsKICAgICAgICBjdHguZmlsbFRleHQoJ+S9
oOWlvScsIDEwLCA1MCk7ICAgICAgICAKCgogICAgPC9zY3JpcHQ+CjwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>