<?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>199186</bug_id>
          
          <creation_ts>2019-06-25 01:07:11 -0700</creation_ts>
          <short_desc>[WinCairo] fonts/use-typo-metrics-1.html is failing as ImageOnlyFailure</short_desc>
          <delta_ts>2024-06-28 15:08: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>Platform</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=198909</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fred.wang</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1547645</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2019-06-25 01:07:11 -0700</bug_when>
    <thetext>[WinCairo] fonts/use-typo-metrics-1.html is failing as ImageOnlyFailure

It seems that GetOutlineTextMetrics doesn&apos;t preserve OS/2 USE_TYPO_METRICS flag for OpenType fonts.
fonts/lineheight5000-typolineheight2300.woff seems a WOFF generated from a OpenType font.
If I convert lineheight5000-typolineheight2300.woff to TTF, and converted back to WOFF, the test case will pass.

Firefox seems using HarfBuzz to get OS/2 section on Windows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547676</commentid>
    <comment_count>1</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2019-06-25 03:11:37 -0700</bug_when>
    <thetext>I wonder if the tools you use to convert to TTF and WOFF again might do extra sanitisation changes. 

Are you able to use the script to generate a TTF and then load directly the .ttf file with @font-face rule?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1547953</commentid>
    <comment_count>2</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2019-06-25 20:05:20 -0700</bug_when>
    <thetext>I created lineheight5000-typolineheight2300.ttf.
I confirmed USE_TYPO_METRICS flag is preserved, the test can pass.

diff --git a/mathml/tools/use-typo-lineheight.py b/mathml/tools/use-typo-lineheight.py
index 9768979f48..c98020868b 100644
--- a/mathml/tools/use-typo-lineheight.py
+++ b/mathml/tools/use-typo-lineheight.py
@@ -44,7 +44,7 @@ font.os2_windescent_add = False
 
 font.os2_use_typo_metrics = True
 
-path = &quot;../../fonts/math/lineheight%d-typolineheight%d.woff&quot; % (winHeight, typoLineHeight)
+path = &quot;../../fonts/math/lineheight%d-typolineheight%d.ttf&quot; % (winHeight, typoLineHeight)
 print(&quot;Generating %s...&quot; % path, end=&quot;&quot;)
 font.generate(path)
 if font.validate() == 0:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2043678</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-06-28 15:08:08 -0700</bug_when>
    <thetext>280480@main added the USE_TYPO_METRICS support for some fonts for Windows port.
However, fonts/use-typo-metrics-1.html is still failing. This ticket keeps tracking the issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>