我正在将一本书转换为 ePub3 格式。它是数学的,我的转换系统为数学生成 MathML。我想使用的平台之一是 iBooks。然而,弄清楚发生了什么是……很难!如何纠正它是类似的。
第一个实验有很多丢失的字形,所以我嵌入了一些 STIX 字体文件来覆盖它们,这似乎解决了它(主要的,似乎还有一些我没有找到)。我现在遇到的问题是调整文本大小时出现的一些相当奇怪的行为。在某些尺寸下,某些字体会变得混乱。
理想情况下,如果有人能告诉我如何正确嵌入字体以防止这种情况发生,我会很高兴!如果做不到这一点,我会参考一些资源,我可以研究这些资源来弄清楚发生了什么以及如何解决它。
书本身可以下载。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;}
这是一个屏幕截图,显示了正确选择大小时的样子: