mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-06-14 17:44:05 +09:00
nudge-y fixed
This commit is contained in:
Binary file not shown.
@@ -281,11 +281,13 @@ def build_font(assets_dir, output_path, no_bitmap=False, no_features=False):
|
|||||||
if advance == 0:
|
if advance == 0:
|
||||||
x_offset -= g.props.nudge_x * SCALE
|
x_offset -= g.props.nudge_x * SCALE
|
||||||
|
|
||||||
|
y_offset = -g.props.nudge_y * SCALE
|
||||||
|
|
||||||
contours = trace_bitmap(g.bitmap, g.props.width)
|
contours = trace_bitmap(g.bitmap, g.props.width)
|
||||||
|
|
||||||
pen = T2CharStringPen(advance, None)
|
pen = T2CharStringPen(advance, None)
|
||||||
if contours:
|
if contours:
|
||||||
draw_glyph_to_pen(contours, pen, x_offset=x_offset)
|
draw_glyph_to_pen(contours, pen, x_offset=x_offset, y_offset=y_offset)
|
||||||
traced_count += 1
|
traced_count += 1
|
||||||
charstrings[name] = pen.getCharString()
|
charstrings[name] = pen.getCharString()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user