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:
commit
84bb81a937
10
font-patcher
10
font-patcher
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user