mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 03:44:52 +01:00
PDF Output: Fix an error when using fonts with vertical metrics. Fixes #1852036 [fail to convert azw3 to pdf in calibre 4.3](https://bugs.launchpad.net/calibre/+bug/1852036)
This commit is contained in:
parent
bc0c9c1fcc
commit
a268eb52d1
2 changed files with 3 additions and 2 deletions
|
|
@ -14,7 +14,7 @@
|
|||
from calibre.utils.fonts.sfnt.glyf import GlyfTable
|
||||
from calibre.utils.fonts.sfnt.gsub import GSUBTable
|
||||
from calibre.utils.fonts.sfnt.head import (
|
||||
HeadTable, HorizontalHeader, OS2Table, PostTable
|
||||
HeadTable, HorizontalHeader, OS2Table, PostTable, VerticalHeader
|
||||
)
|
||||
from calibre.utils.fonts.sfnt.kern import KernTable
|
||||
from calibre.utils.fonts.sfnt.loca import LocaTable
|
||||
|
|
@ -29,6 +29,7 @@ class Sfnt(object):
|
|||
TABLE_MAP = {
|
||||
b'head' : HeadTable,
|
||||
b'hhea' : HorizontalHeader,
|
||||
b'vhea' : VerticalHeader,
|
||||
b'maxp' : MaxpTable,
|
||||
b'loca' : LocaTable,
|
||||
b'glyf' : GlyfTable,
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ def read_data(self, hmtx):
|
|||
self.left_side_bearings = a[1::2]
|
||||
|
||||
|
||||
class VericalHeader(UnknownTable):
|
||||
class VerticalHeader(UnknownTable):
|
||||
|
||||
version_number = FixedProperty('_version_number')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue