diff --git a/font-patcher b/font-patcher index aa701ce57..1a8e20589 100755 --- a/font-patcher +++ b/font-patcher @@ -553,6 +553,9 @@ class font_patcher: self.sourceFont.os2_winascent += 1 # Make the line size identical for windows and mac + # ! This is broken because hhea* is changed but os2_typo* is not + # ! On the other hand we need intact (i.e. original) typo values + # ! in get_sourcefont_dimensions() @TODO FIXME self.sourceFont.hhea_ascent = self.sourceFont.os2_winascent self.sourceFont.hhea_descent = -self.sourceFont.os2_windescent @@ -572,6 +575,9 @@ class font_patcher: 'width' : 0, 'height': 0, } + if self.sourceFont.os2_use_typo_metrics: + self.font_dim['ymin'] = self.sourceFont.os2_typodescent + self.font_dim['ymax'] = self.sourceFont.os2_typoascent # Find the biggest char width # Ignore the y-values, os2_winXXXXX values set above are used for line height