summaryrefslogtreecommitdiff
path: root/mkvlib/parser/sfnt
diff options
context:
space:
mode:
Diffstat (limited to 'mkvlib/parser/sfnt')
-rw-r--r--mkvlib/parser/sfnt/sfnt.go12
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
}