layout changes

glyphs in a box
This commit is contained in:
themancalledjakob 2024-08-21 14:46:47 +02:00
parent 56a8ffe114
commit ec7d619bab

View file

@ -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)