New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 697311 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Compat



Sign in to add a comment

Umlauts of a webfonts are not properly displayed on OSX

Reported by thb...@gmail.com, Mar 1 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.74 Safari/537.36

Example URL:
https://kabel.vodafone.de/meinkabel

Steps to reproduce the problem:
1. Open the site in question
2. Wait for a word with an umlaut

What is the expected behavior?
Umlauts like ä,ö, or ü should be displayed correctly (I can't check it right now but I think on Windows Chrome display them correctly)

What went wrong?
Umlauts are not displayed correctly. I attached screenshots from Safari and Chrome.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 57.0.2987.74  Channel: beta
OS Version: OS X 10.12.3
Flash Version:

 

Comment 1 by thb...@gmail.com, Mar 1 2017

The upload for the screenshots failed. So I try again, on Safari.png it looks like it should, on Chrome.png it doesn't.
Safari.png
684 KB View Download
Chrome.png
677 KB View Download
Components: Blink>Fonts

Comment 3 by e...@chromium.org, Mar 5 2017

Cc: drott@chromium.org behdad@chromium.org
Cc: brajkumar@chromium.org
Labels: M-58
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Mac OS 10.12.3 using chrome M57 #57.0.2987.74 by following steps mentioned in the original comment. Observed there is a rendering issues of few fonts in the provided site.

Tested this issue on 35.0.1849.0 and observed issue still persists on older version od chrome as well, so considering this is a non-regression issue and marking it as untriaged.

Thanks!

Comment 5 by e...@chromium.org, Mar 7 2017

Owner: drott@chromium.org
Status: Assigned (was: Untriaged)
Could you look into this when you get a chance drott?

Comment 6 by drott@chromium.org, Mar 8 2017

Status: ExternalDependency (was: Assigned)
Reproducible using http://roettsch.es/voda/voda.html with 
https://kabel.vodafone.de/static/fonts/ttf_vodafonelt-webfont.ttf on Chrome 57 beta, a modified Skia sample app as well as Firefox. Possible CoreText or font (metrics) issue.

It seems that all combined/component glyphs are truncated, same happens for glyphs like ¾ (three quarters) or ; (semicolon).

Comment 7 by drott@chromium.org, Mar 8 2017

sample_rendering_voda_chrome_57.png
14.4 KB View Download

Comment 8 by drott@chromium.org, Mar 8 2017

Filed  issue skia:6340  for this as well.
The font attached to the Skia issue contains an 'FFTM' table which is unique to FontForge and contains some date and time stamps. The source date for FontForge itself (essentially the build time) from this table is around Mon, 14 Sep 2009, so it's a bit old, but I don't think this bug has been fixed yet. Most likely, this is the same as  Issue 229010 .
Status: WontFix (was: ExternalDependency)
So do I understand correctly: Your assumption is that this font has gone through processing similar to what is described in comments 4, 5 in https://bugs.chromium.org/p/chromium/issues/detail?id=229010#c4 e.g. converting upem from 1000 to 2048 or a related conversion which then results in incorrect bounding box outputs for the resulting font file that we find on the Vodafone site? Thanks for providing this reference.

I have contacted Dalton Maag about this issue and I am awaiting their feedback.

Running https://kabel.vodafone.de/static/fonts/ttf_vodafonelt-webfont.ttf through ttx from fonttools and then regenerating a font from it, which by default recalculates glyph bounding boxes, the font starts to work, example bounding box differences for semicolon:

Fixed:
    <TTGlyph name="semicolon" xMin="88" yMin="-199" xMax="275" yMax="985">                                                                                                                            
      <component glyphName="comma" x="23" y="0" flags="0x1000"/>                                                                                                                                      
      <component glyphName="period" x="0" y="825" flags="0x1000"/>                                                                                                                                    
    </TTGlyph>       

Original:
    <TTGlyph name="semicolon" xMin="43" yMin="-97" xMax="146" yMax="904">                                                                                                                             
      <component glyphName="comma" x="23" y="0" flags="0x1000"/>                                                                                                                                      
      <component glyphName="period" x="0" y="825" flags="0x1000"/>                                                                                                                                    
    </TTGlyph>

Closing as WontFix, as this is an issue which needs fixing in the font.
Yeah, this has to be the same FontForge issue, the symptoms match up too well. Essentially what happens is that if you invoke a fontforge python script through python (instead of running the fontforge binary directly) and teh script resizes the font then the pre-computed bounding boxes for any composite only glyphs will be left unresized.

If you can get in touch with the authors of this font, be sure to point them at https://github.com/fontforge/fontforge/issues/528 . Also of interest are https://github.com/georgd/EB-Garamond/commit/b67738a422fbc72e51b236062e473ab10d35d157 , and https://github.com/georgd/EB-Garamond/commit/3424f22d866dbf79f62539dd6a1838849a75a798 . The first of these shows how to work around the issue, the second that EB-Garamond maintainers just decided not to do the resize since it isn't really needed. 

Comment 12 by drott@chromium.org, Mar 14 2017

Vodafone's agency tells me they have identified the subsetting problem and have a fix ready to go out in their next release for the website.

Sign in to add a comment