diff options
| author | b5f0d6c3 <[email protected]> | 2022-05-02 00:14:58 +0800 |
|---|---|---|
| committer | b5f0d6c3 <[email protected]> | 2022-05-02 00:14:58 +0800 |
| commit | 5c7cdcd396d94fc38115f07490aa98cc37d84c00 (patch) | |
| tree | 5eb7b4dd26ff18969151438f8a0e00b5e9bdc2ce /mkvlib/parser/sfnt/sfnt.go | |
| parent | 9b46f07cd6f1a82aa498d9fe7a67944bd2e971b3 (diff) | |
update mkvlib:sfnt
Diffstat (limited to 'mkvlib/parser/sfnt/sfnt.go')
| -rw-r--r-- | mkvlib/parser/sfnt/sfnt.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mkvlib/parser/sfnt/sfnt.go b/mkvlib/parser/sfnt/sfnt.go index fcc2b66..19098b2 100644 --- a/mkvlib/parser/sfnt/sfnt.go +++ b/mkvlib/parser/sfnt/sfnt.go @@ -674,17 +674,17 @@ func (f *Font) initialize(offset int, isDfont bool) error { if err != nil { return err } - buf, hasXHeightCapHeight, xHeight, capHeight, err := f.parseOS2(buf) + /*buf, hasXHeightCapHeight, xHeight, capHeight, err := f.parseOS2(buf) if err != nil { return err - } + }*/ buf, post, err := f.parsePost(buf, numGlyphs) if err != nil { return err } f.cached.ascent = ascent - f.cached.capHeight = capHeight + //f.cached.capHeight = capHeight f.cached.finalTableOffset = finalTableOffset f.cached.glyphData = glyphData f.cached.glyphIndex = glyphIndex @@ -701,16 +701,16 @@ func (f *Font) initialize(offset int, isDfont bool) error { f.cached.post = post f.cached.slope = [2]int32{run, rise} f.cached.unitsPerEm = unitsPerEm - f.cached.xHeight = xHeight + //f.cached.xHeight = xHeight - if !hasXHeightCapHeight { + /*if !hasXHeightCapHeight { xh, ch, err := f.initOS2Version1() if err != nil { return err } f.cached.xHeight = xh f.cached.capHeight = ch - } + }*/ return nil } |
