fix: tamil uu-matra is disjoined by one pixel

This commit is contained in:
minjaesong
2026-03-01 14:23:36 +09:00
parent 3c9bc38dfd
commit 5c6da36fa8
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@@ -169,10 +169,11 @@ def build_font(assets_dir, output_path, no_bitmap=False, no_features=False):
x += tg.props.width x += tg.props.width
continue continue
cols = min(tg.props.width, len(tg.bitmap[0])) if tg.props.width > 0 else len(tg.bitmap[0]) cols = min(tg.props.width, len(tg.bitmap[0])) if tg.props.width > 0 else len(tg.bitmap[0])
nudge = tg.props.nudge_x
for row in range(min(len(tg.bitmap), bm_height)): for row in range(min(len(tg.bitmap), bm_height)):
for col in range(cols): for col in range(cols):
dst_col = x + col dst_col = x + col - nudge
if dst_col < total_width and tg.bitmap[row][col]: if 0 <= dst_col < total_width and tg.bitmap[row][col]:
composite[row][dst_col] = 1 composite[row][dst_col] = 1
if tg.props.width > 0: if tg.props.width > 0:
x += tg.props.width x += tg.props.width