Some fonts are replaced by Times New Roman
Reported by
tomas.ba...@gmail.com,
Feb 20 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Example URL: Steps to reproduce the problem: 1. Create a page specifying 'Segoe UI Semilight' or 'Campton Book' fonts (Segoe UI Semilight is standard Windows font, but not sure about Campton book) 2. Load 3. Times New Roman is displayed instead What is the expected behavior? The fonts should be displayed correctly. What went wrong? This is definitely relevant to the https://bugs.chromium.org/p/chromium/issues/detail?id=421305# bug, which has been closed as 'fixed' a long time ago. But it's not fixed at all in fact. I have only ~800 fonts in the Windows/Fonts directory In newer Chrome, the "disable-direct-write" is not available, so there is no workaround. Works in IE, but not in Firefox 51 or Chrome 56 Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? No Does this work in other browsers? Yes Chrome version: 56.0.2924.87 Channel: stable OS Version: 10.0 Flash Version: Shockwave Flash 24.0 r0
,
Feb 21 2017
,
Feb 21 2017
,
Feb 21 2017
font-family matches the family name, not the postscript name, of a font. Instead of font-family: Segoe UI Semilight do: font-family: Segoe UI; font-weight: 300; and it should render as expected. Thanks.
,
Feb 22 2017
Ok I understand, but why does the 'Segoe UI Semibold' work and semilight not? And why does it even work on older Chrome when I disable DirectWrite? And isn't the fact that it works in IE a strong enough argument?
,
Oct 2 2017
Getting back into this issue - the problem is in FontCacheSkiaWin.cpp in the typefacesHasWeightSuffix() function where the suffix should be mapped onto a font weight. The "semilight" option is completely missing from the list, probably because the FontWeight enum doesn't contain the required FontWeight350 value according to https://msdn.microsoft.com/en-us/library/windows/desktop/dd368082.aspx Also the ExtraBlack and UltraBlack suffixes are missing (both match to font weight 950) |
||||
►
Sign in to add a comment |
||||
Comment 1 by tomas.ba...@gmail.com
, Feb 20 2017160 bytes
160 bytes View Download
20.6 KB
20.6 KB View Download