1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-01 16:55:57 +02:00

Merge branch 'patch-1' of https://github.com/WhyNotHugo/nerd-fonts into WhyNotHugo-patch-1

This commit is contained in:
Ryan L McIntyre 2020-09-06 04:59:54 -07:00
commit 84bb81a937

View File

@ -816,12 +816,12 @@ class font_patcher:
def remove_glyph_neg_bearings(self, glyph):
""" Sets passed glyph's bearings 0.0 if they are negative. """
""" Sets passed glyph's bearings 0 if they are negative. """
try:
if glyph.left_side_bearing < 0.0:
glyph.left_side_bearing = 0.0
if glyph.right_side_bearing < 0.0:
glyph.right_side_bearing = 0.0
if glyph.left_side_bearing < 0:
glyph.left_side_bearing = 0
if glyph.right_side_bearing < 0:
glyph.right_side_bearing = 0
except:
pass