font-family: font1,font2,font3;
其中font1是嵌入式eot / ttf字体,但问题是该字体小于其他字体,所以我想要为此字体(font1)使用不同的字体大小(1.8em).所有其他字体(font2,font3)保持不变.
问题是,我无法验证用户的浏览器是否使用font1,font2或font3.有没有任何css声明允许不同的字体大小不同的家庭?
谢谢.
解决方法
In situations where font fallback@H_301_16@ occurs,fallback fonts may not share@H_301_16@ the same aspect ratio as the desired@H_301_16@ font family and will thus appear less@H_301_16@ readable. The font-size-adjust@H_301_16@ property is a way to preserve the@H_301_16@ readability of text when font fallback@H_301_16@ occurs. It does this by adjusting the@H_301_16@ font-size so that the x-height is the@H_301_16@ same irregardless of the font used.
但是,现在仅支持Firefox,因此您可能需要寻找替代方案.
有关如何使用它的示例,请参阅:
http://webdesignernotebook.com/css/the-little-known-font-size-adjust-css3-property/@H_301_16@https://developer.mozilla.org/en/CSS/font-size-adjust@H_301_16@http://www.fonttester.com/help/css_property/font-size-adjust.html@H_301_16@http://www.w3.org/TR/css3-fonts/#relative-sizing-the-font-size-adjust-pro