我正在将书籍转换为ePub3格式。这是数学的,我的转换系统为数学生成MathML。我想与之合作的平台之一是iBooks。然而,搞清楚发生了什么是困难的!如何纠正它是相似的。我在哪里开始在epub3中调试字体问题?
第一个实验有很多缺失的字形,所以我嵌入了一些STIX字体文件来覆盖它们,似乎可以修复它(对于主体,似乎还有一些我没有追踪到)。当我调整文本大小时,现在遇到的问题是一些相当奇怪的行为。在某些尺寸下,某些字体会变得不合适。
理想情况下,如果有人能告诉我如何正确地嵌入字体,以免发生这种情况,我很乐意!如果不这样做,我会找到一些我可以研究的资源的参考,以了解发生了什么以及如何解决问题。
这本书本身可以是downloaded。在CSS的相关部分(我认为):
@font-face {font-family: 'STIXGeneral'; font-weight: regular; font-style: normal; src: url(STIXGeneral.otf) format('opentype'); }
@font-face {font-family: 'STIXGeneral'; font-weight: regular; font-style: italic; src: url(STIXGeneralItalic.otf) format('opentype'); }
@font-face {font-family: 'STIXGeneral'; font-weight: regular; font-style: normal; src: url(STIXGeneralBol.otf) format('opentype'); }
@font-face {font-family: 'STIXGeneral'; font-weight: regular; font-style: italic; src: url(STIXGeneralBolIta.otf) format('opentype'); }
@font-face {font-family: 'STIXIntegral'; font-weight: regular; font-style: normal; src: url(STIXIntDReg.otf) format('opentype'); }
@font-face {font-family: 'STIXIntegral'; font-weight: regular; font-style: normal; src: url(STIXIntDBol.otf) format('opentype'); }
math {font-family: serif, STIXGeneral, STIXIntegral;}
这里是什么样子时,选择了尺寸恰到好处像截图:
你给的链接被打破 - 没有什么像http://www.math.ntnu.no/~stacey/code/ –
Whoopsie!谢谢@CharlesStewart。现在修复。 –