SketchUp 2027 – Font Selection and Text Input Not Working on macOS

Hello SketchUp Support Team,

I’m experiencing an issue with text input and font selection in SketchUp 2027 on my MacBook.

System Information:

  • Device: MacBook with Apple M1 Max chip

  • Operating System: macOS Golden Gate 27.2

  • Software: SketchUp 2027

Issues I’ve encountered:

  1. Unable to change fonts: When I try to change fonts through Entity Info or Model Info, nothing happens. The selected font does not change.

  2. Keyboard shortcuts triggered instead of typing: When I try to type text using the Text, Dimensions, or 3D Text tools, SketchUp interprets my keyboard input as application shortcuts instead of entering text.

  3. Edit 3D Text extension works normally: Interestingly, when I use the Edit 3D Text extension, I can type text and change fonts without any issues.

It seems that this problem only affects SketchUp’s built-in text tools.

Expected Behavior:
I should be able to type text normally and change fonts using the built-in Text, Dimensions, and 3D Text tools.

Actual Behavior:
Font changes are not applied, and keyboard input triggers SketchUp shortcuts instead of entering text.

Could you please investigate this issue and let me know if there is a fix or workaround available?

Thank you for your assistance!

Best regards

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('&', '&amp;').gsub('"', '&quot;').gsub('<', '&lt;')
  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.

Thank you so much for your help!

I followed your instructions, and everything is now working perfectly. The issue has been completely resolved.

I really appreciate your quick response and support!

Nor will it help dimension objects as their font properties are not yet exposed to the API.

ping @CraigTrickett

@Phil_K is likely to be the developer who looks into this. Here is what Claude suggested:

If you’re on the SketchUp dev side
The fix is to make the app respond to the font panel’s live messages:

  • Implement changeFont: on a responder in the chain, calling [[NSFontManager sharedFontManager] convertFont:currentFont] to get the new font.
  • Apply the font immediately, rather than on an OK handler.
  • Set the panel’s target with [NSFontManager sharedFontManager].target.
  • Consider keeping the Cancel/revert behavior by caching the original font when the panel opens.