cleanup
This commit is contained in:
parent
ed5db93613
commit
d88c0c50cd
2 changed files with 4 additions and 4 deletions
|
@ -664,9 +664,6 @@ class ABC3D_PT_FontCreation(bpy.types.Panel):
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
wm = context.window_manager
|
wm = context.window_manager
|
||||||
scene = context.scene
|
|
||||||
|
|
||||||
abc3d_data = scene.abc3d_data
|
|
||||||
|
|
||||||
layout.row().operator(
|
layout.row().operator(
|
||||||
f"{__name__}.toggle_abc3d_collection", text="Toggle Collection"
|
f"{__name__}.toggle_abc3d_collection", text="Toggle Collection"
|
||||||
|
@ -677,6 +674,7 @@ class ABC3D_PT_FontCreation(bpy.types.Panel):
|
||||||
layout.row().operator(
|
layout.row().operator(
|
||||||
f"{__name__}.save_font_to_file", text="Export Font To File"
|
f"{__name__}.save_font_to_file", text="Export Font To File"
|
||||||
)
|
)
|
||||||
|
|
||||||
box = layout.box()
|
box = layout.box()
|
||||||
box.label(text="metrics")
|
box.label(text="metrics")
|
||||||
box.row().operator(
|
box.row().operator(
|
||||||
|
|
|
@ -485,7 +485,7 @@ def load_font_from_filepath(filepath, glyphs="", font_name="", face_name=""):
|
||||||
|
|
||||||
modified_font_faces = []
|
modified_font_faces = []
|
||||||
all_glyph_os = []
|
all_glyph_os = []
|
||||||
all_objects = []
|
|
||||||
for o in bpy.context.scene.objects:
|
for o in bpy.context.scene.objects:
|
||||||
if marker_property in o:
|
if marker_property in o:
|
||||||
if "type" in o and o["type"] == "glyph":
|
if "type" in o and o["type"] == "glyph":
|
||||||
|
@ -847,6 +847,7 @@ def set_text_on_curve(text_properties, reset_timeout_s=0.1, reset_depsgraph_n=4)
|
||||||
glyph_advance = 0
|
glyph_advance = 0
|
||||||
is_command = False
|
is_command = False
|
||||||
previous_spline_index = -1
|
previous_spline_index = -1
|
||||||
|
|
||||||
for i, c in enumerate(text_properties.text):
|
for i, c in enumerate(text_properties.text):
|
||||||
face = Font.fonts[text_properties.font_name].faces[text_properties.face_name]
|
face = Font.fonts[text_properties.font_name].faces[text_properties.face_name]
|
||||||
scalor = face.unit_factor * text_properties.font_size
|
scalor = face.unit_factor * text_properties.font_size
|
||||||
|
@ -899,6 +900,7 @@ def set_text_on_curve(text_properties, reset_timeout_s=0.1, reset_depsgraph_n=4)
|
||||||
)
|
)
|
||||||
if not replaced:
|
if not replaced:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
glyph = glyph_tmp.original
|
glyph = glyph_tmp.original
|
||||||
|
|
||||||
ob = None
|
ob = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue