24
Jun

iBooks 扼杀字体,苹果正破坏标准

作者认为苹果这么做既损害标准,又伤及自身。

哦苹果,你在干什么?犯了这么大的错。你给电子书加了一道 DRM,又搞残 iBooks 1.1,现在好了,它无法识别 CSS 给 body、p、div 和 span 元素指定的字体了。

你规定电子书设计师不必选择字体,认为这会导致「不良的用户体验」。你错了。苹果的设计师精心挑选字体,因为字体事关紧要。你已为 iBooks 和 iPad 划定了字体。而现在你却不让设计师为自己的电子书选择字体。这是非常短视的决定。

ePub 规范要求阅读器支持 font-family,的确,在多数内联元素中,你也提供对 font-family 的支持,例如 b、em、code,甚至块级元素也没问题,例如 dl 和 li。那么,为什么不支持更重要的 p、div 和 span 呢?

你的控制欲,要么最终把这些标准弄的支离破碎,要么搞坏 iBooks。为何会损害标准?因为这会鼓励设计人员使用花招来骗过不支持标准的 iBooks。为何会损害 iBooks?因为版式精美的标准电子书在别的阅读器上一切正常,在 iPad 上却不忍卒读。

要不回到 IE 5 的时代好了?

请看截图,这些字段加入了统一的声明:{font-family:sans-serif} 。而这是与该 ePub 文件有关的 XHTML 文件和完全标准的 CSS 文件。点进去看看,在与标准兼容的浏览器上会有什么效果?(提示:所有字体应以 Sans-serif 呈现。)

但,倘若把该 ePub 文件下载到你的 iPad 上,便会有如下的效果。

原文链接;作者:Liz Castro

15 Comments so far

Leave a comment

Name(required)
Mail (will not be published)(required)
Website

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs must be fully qualified (eg: http://apple4.us),and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.

    @Apple4us

    友情链接

    最近的评论