字体样式:CSS 中的斜体与斜体 [英] font-style: italic vs oblique in CSS

查看:31
本文介绍了字体样式:CSS 中的斜体与斜体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这两者有什么区别:

font-style:italic
font-style:oblique

我尝试使用 W3Schools 编辑器,但无法说出不同之处.

I tried using the W3Schools editor but was unable to tell the difference.

我错过了什么?

推荐答案

在最纯粹的(字体设计师)意义上,倾斜是一种倾斜了一定度数(通常为 8-12 度)的罗马字体.斜体由字体设计师创建,其中特定字符(尤其是小写字母 a)的绘制方式不同,以创建更具书法感和倾斜的版本.

In the purest (type designer) sense, an oblique is a roman font that has been skewed a certain number of degrees (8-12 degrees, usually). An italic is created by the type designer with specific characters (notably lowercase a) drawn differently to create a more calligraphic, as well as slanted version.

某些字体代工厂随意创建了不一定经过设计师本人认可的斜体……有些字体本来就不是斜体或斜体……但人们还是这样做了.您可能知道,某些操作系统会在单击斜体"图标时使字体倾斜并动态创建斜线.不是一个愉快的景象.

Some type foundries have arbitrarily created obliques that aren't necessarily approved by the designers themselves... some fonts were meant not to be italicized or obliqued... but people did anyway. And as you may know, some operating systems will, upon clicking the 'italic' icon, skew the font and create an oblique on the fly. Not a pleasant sight.

最好仅在您确定字体设计为斜体时才指定斜体.

It's best to specify an italic only when you're sure that font has been designed with one.

这篇关于字体样式:CSS 中的斜体与斜体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆