New issue
Advanced search Search tips

Issue 633430 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Compat



Sign in to add a comment

local font-face not working as expected

Reported by gabriell...@gmail.com, Aug 2 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. run the attached file on chrome, the different font weights look different even though I have mapped all the font weights to the same local file so all the text should look the same. 

2. run the same attached file on FF or IE11. all the text looks the same as expected. 

What is the expected behavior?
I have mapped all the font weights to the same local file so all the text should look the same. 

Meaning I have code like the following in the file.

@font-face {
  font-family: "Segoe UI";
  font-weight: 100;
  src: local("Segoe UI");
}

@font-face {
  font-family: "Segoe UI";
  font-weight: 200;
  src: local("Segoe UI");
}

@font-face {
  font-family: "Segoe UI";
  font-weight: 300;
  src: local("Segoe UI");
}

@font-face {
  font-family: "Segoe UI";
  font-weight: 400;
  src: local("Segoe UI");
}

@font-face {
  font-family: "Segoe UI";
  font-weight: 500;
  src: local("Segoe UI");
}

@font-face {
  font-family: "Segoe UI";
  font-weight: 600;
  src: local("Segoe UI");
}

@font-face {
  font-family: "Segoe UI";
  font-weight: 700;
  src: local("Segoe UI");
}

@font-face {
  font-family: "Segoe UI";
  font-weight: 800;
  src: local("Segoe UI");
}

@font-face {
  font-family: "Segoe UI";
  font-weight: 900;
  src: local("Segoe UI");
}

html {
  font-family: "Segoe UI";
}

What went wrong?
chrome is ignoring my local @font-face rules. 

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes 

Chrome version: 52.0.2743.82  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 22.0 r0
 
font-weight-test2.html
1.6 KB View Download
Components: Blink>Fonts
Labels: M-54 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Windows-7, Ubuntu 14.04 and Mac OS 10.11.6 using chrome latest stable #52.0.2743.82.

This is a non-regression issue seen on earlier versions of chrome M35-35.0.1849.0 as well. Hence marking it as untriaged.

Thanks!

Comment 2 by e...@chromium.org, Aug 2 2016

Status: WontFix (was: Untriaged)
The local font file contains all of the different weights. This is intentional and working as expected.
I see in the rendered font section of computed style that it's using the following for font-weight 100, 200, 300.
Segoe UI Light—Local file(16 glyphs)

However I specified Segoe UI for those weights, not Segoe UI Light.
I'm not sure if/how to reopen bugs, filed another
https://bugs.chromium.org/p/chromium/issues/detail?id=634070
 Issue 634070  has been merged into this issue.
I think the dev team need to look at the issue again. As I said, it's not using the local font I specified.

I see in the dev tools > computed styles > rendered fonts that it's using Segoe UI Light the following for font-weight 100, 200, 300.

I specified Segoe UI for those weights, not Segoe UI Light.

Sign in to add a comment