Skip to content

Formspec: Add font customization to tooltips#16995

Open
CrazyladMT wants to merge 2 commits intoluanti-org:masterfrom
CrazyladMT:tooltip-custom-font
Open

Formspec: Add font customization to tooltips#16995
CrazyladMT wants to merge 2 commits intoluanti-org:masterfrom
CrazyladMT:tooltip-custom-font

Conversation

@CrazyladMT
Copy link
Copy Markdown
Contributor

@CrazyladMT CrazyladMT commented Mar 4, 2026

Fixes #14537.

Does what the title says - adds the option to customize the font used for tooltips.

To do

This PR is Ready for Review.

How to test

Use style_type[tooltip;font=bold] or any of the other options.

Screenshot From 2026-03-04 12-43-26

@Wuzzy2
Copy link
Copy Markdown
Contributor

Wuzzy2 commented Mar 4, 2026

Does this affect the font style of all tooltips, i.e. including item tooltips from items?

@CrazyladMT
Copy link
Copy Markdown
Contributor Author

CrazyladMT commented Mar 4, 2026

Does this affect the font style of all tooltips, i.e. including item tooltips from items?

Yes. All tooltips are rendered with GUIFormSpecMenu::showTooltip if I'm not mistaken, and it is in that function where the font is set.

Except the cursed GUITable.

@Zughy Zughy added @ Script API Roadmap The change matches an item on the current roadmap Feature ✨ PRs that add or enhance a feature Formspec @ Client / Audiovisuals labels Mar 5, 2026
@CrazyladMT CrazyladMT force-pushed the tooltip-custom-font branch from 3f26322 to 1e548c6 Compare April 10, 2026 16:59
@CrazyladMT CrazyladMT force-pushed the tooltip-custom-font branch from 1e548c6 to e35c472 Compare April 17, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@ Client / Audiovisuals Feature ✨ PRs that add or enhance a feature Formspec Roadmap The change matches an item on the current roadmap @ Script API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Customizable tooltip font

3 participants