fix(Styler): pass font params to compute_rich_text in draw_tooltip #70

Merged
hugou74130 merged 1 commit from fix/draw-tooltip-font-params into main 2026-03-27 14:29:54 +00:00
hugou74130 commented 2026-03-27 14:25:47 +00:00 (Migrated from github.com)

Summary

  • Fix draw_tooltip crashing with nil font_name when hovering controls with tooltips
  • draw_tooltip was calling compute_rich_text without font_name and font_size, unlike
    draw_rich_text which properly defaults to ugui.standard_styler.params

Fix

Pass font_name and font_size from ugui.standard_styler.params to compute_rich_text in
draw_tooltip.

## Summary - Fix `draw_tooltip` crashing with `nil font_name` when hovering controls with tooltips - `draw_tooltip` was calling `compute_rich_text` without `font_name` and `font_size`, unlike `draw_rich_text` which properly defaults to `ugui.standard_styler.params` ## Fix Pass `font_name` and `font_size` from `ugui.standard_styler.params` to `compute_rich_text` in `draw_tooltip`.
abart27 (Migrated from github.com) approved these changes 2026-03-27 14:29:45 +00:00
Sign in to join this conversation.
No description provided.