I see what the problem is. With Golden Gate the font changes are meant to appear right away, and not wait for you to click OK. That’s why there is no OK button.
I will talk to the developers about that.
In the meantime, I had a chat with Claude, and he (it?) gave me some Ruby that gives you a live update font feature. Carefully copy this into Ruby Console (it’s on the Extensions/Develop menu) :
module LiveFont
FALLBACK_FONTS = ['Arial', 'Courier New', 'Georgia', 'Helvetica', 'Helvetica Neue',
'Menlo', 'Times New Roman', 'Verdana'].freeze
def self.font_families
@families ||= begin
js = "ObjC.import('AppKit');" \
"ObjC.deepUnwrap($.NSFontManager.sharedFontManager.availableFontFamilies).join('\\n')"
out = IO.popen(['osascript', '-l', 'JavaScript', '-e', js], err: File::NULL, &:read)
list = out.to_s.split("\n").map(&:strip).reject(&:empty?).sort
list.empty? ? FALLBACK_FONTS : list
rescue => err
puts "LiveFont: font list failed (#{err.message}), using fallback"
FALLBACK_FONTS
end
end
def self.apply_font(name, size, bold, italic)
model = Sketchup.active_model
model.start_operation('Change Font', true)
model.selection.each do |e|
next unless e.is_a?(Sketchup::Text)
f = (e.font || {}).dup
f[:name] = name if name && !name.empty?
f[:size] = size if size && size > 0
f[:bold] = bold # rename here if your hash uses a different key
f[:italic] = italic # rename here if your hash uses a different key
e.font = f
end
model.commit_operation
rescue => err
model.abort_operation
puts "LiveFont error: #{err.class}: #{err.message}"
end
def self.esc(s)
s.to_s.gsub('&', '&').gsub('"', '"').gsub('<', '<')
end
def self.show
t = Sketchup.active_model.selection.grep(Sketchup::Text).first
cur = t ? (t.font || {}) : {}
puts "Current font hash: #{cur.inspect}"
current_name = cur[:name].to_s
size = cur[:size] || 12
bold_attr = cur[:bold] ? ' checked' : ''
italic_attr = cur[:italic] ? ' checked' : ''
families = font_families.dup
families.unshift(current_name) unless current_name.empty? || families.include?(current_name)
options = families.map do |n|
sel = n == current_name ? ' selected' : ''
%(<option value="#{esc(n)}"#{sel}>#{esc(n)}</option>)
end.join
dlg = UI::HtmlDialog.new(dialog_title: 'Live Font', width: 320, height: 200)
dlg.set_html(<<~HTML)
<body style="font:13px sans-serif;padding:10px">
<label>Font <select id="f">#{options}</select></label><br><br>
<label>Size <input id="s" type="number" value="#{size}"></label><br><br>
<label><input id="b" type="checkbox"#{bold_attr}> Bold</label>
<label style="margin-left:12px"><input id="i" type="checkbox"#{italic_attr}> Italic</label>
<script>
function push() { sketchup.apply(f.value, parseFloat(s.value), b.checked, i.checked); }
f.onchange = s.oninput = b.onchange = i.onchange = push;
</script>
</body>
HTML
dlg.add_action_callback('apply') { |_, n, sz, b, i| apply_font(n, sz, b, i) }
dlg.show
end
end
LiveFont.show
When you press Return you will see a panel. Select the text objects and change the values, and they should live update.
I realize this may not help 3D text.