Skip to content

[BUG] Font Size unit change from Px to % breaks text/glyphs in module presets (5.0) #4305

Description

@mm2706

Make sure you're on the latest stable or beta build

  • I have tested this on the latest stable or beta release

Is this a bug in companion itself or a module?

  • I believe this to be a bug in companion and not a specific module

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Since updating to Companion 5.0, Font Size was changed from Px to percent. The problem: for presets that are defined by modules with a fixed Px size, the conversion doesn't work correctly – the text/glyph is rendered way too large and becomes completely invisible because it overflows the button.
What makes it worse: "Shrink to Fit" is disabled by default, so this doesn't just affect edge cases, it affects basically every impacted preset right after the update. Manually enabling "Shrink to Fit" fixes the display again.
The real issue here: I can't just recreate or adjust the preset myself, since it comes from the module (module-defined preset). So while I can enable "Shrink to Fit" on a per-preset basis, the actual conversion itself needs to be fixed.

Steps To Reproduce

  1. Module Preset with glyph ⏵, Font Size 60 (Px)
  2. In Companion 4.3: displays normally
  3. After updating to 5.0/ Or new Instance on 5.0: Font Size becomes 126 (%), glyph disappears completely
  4. Only after manually enabling "Shrink to Fit" or adjusting the size by hand does the glyph show up again

Expected Behavior

The Px to % conversion should render the text at roughly the same visual size as before or "Shrink to Fit" on by Default.

Environment (please complete the following information)

- Companion Version: 5.0-stable
- OS: macOS 26.5.2
- Browser: Safari 26.5.2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGSomething isn't workingarea/graphicsButton drawing

    Type

    No type

    Projects

    Status
    Waiting for input

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions