Dan*_* T. 9 css css3 font-face google-chrome-devtools
假设我有以下字体外观定义:
@font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
src: url("../fonts/open-sans.regular.woff") format("woff");
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: url('../fonts/open-sans.light.woff') format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: url('../fonts/open-sans.semibold.woff') format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: url('../fonts/open-sans.bold.woff') format('woff');
}
Run Code Online (Sandbox Code Playgroud)
在Chrome的开发工具中,我可以分辨出正在使用的字体系列:
但有没有办法告诉使用哪个特定的字体文件?我正在尝试验证浏览器实际上是使用字体的粗体版本,例如,而不是在常规版本的字体上执行自己的"假"粗体.