From ec7d619bab292d9a6f454944a66007d6dc80118b Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Wed, 21 Aug 2024 14:46:47 +0200 Subject: [PATCH] layout changes glyphs in a box --- __init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 779051f..1012be1 100644 --- a/__init__.py +++ b/__init__.py @@ -346,17 +346,19 @@ class ABC3D_PT_FontList(bpy.types.Panel): n = 16 n_rows = int(len(available_glyphs) / n) box.row().label(text=f"Glyphs:") + subbox = box.box() for i in range(0, n_rows + 1): text = ''.join([f"{u}" for ui, u in enumerate(available_glyphs) if ui < (i+1) * n and ui >= i * n]) scale_y = 0.5 - row = box.row(); row.scale_y = scale_y + row = subbox.row(); row.scale_y = scale_y; row.alignment = 'CENTER' row.label(text=text) n_rows = int(len(loaded_glyphs) / n) box.row().label(text=f"Loaded Glyphs:") + subbox = box.box() for i in range(0, n_rows + 1): text = ''.join([f"{u}" for ui, u in enumerate(loaded_glyphs) if ui < (i+1) * n and ui >= i * n]) scale_y = 0.5 - row = box.row(); row.scale_y = scale_y + row = subbox.row(); row.scale_y = scale_y row.label(text=text)