I'm needing to know how to access and change the font for a pre-existing text object. Everything that I have seen uses a new text object. I've tried looking at the bpy.ops.fonts structure, but can't seem to figure it out.
Thanks.
I'm needing to know how to access and change the font for a pre-existing text object. Everything that I have seen uses a new text object. I've tried looking at the bpy.ops.fonts structure, but can't seem to figure it out.
Thanks.
Example below is based on windows file location.
import bpy
my_name = 'ALGER.TTF' #name of text object
new_font = 'G:\\Blender Working folders\\Fonts\\ALGER.TTF' #file location of new font
for ob in bpy.data.objects:
if ob.name == my_name:
ob.data.font = bpy.data.fonts.load(new_font)
In edit mode before you start typing select from the Font Panel
This determines the font choice