[Bug Report, UE5.4.1] UMG, MakeSlateFontInfo Font Size

Steps to reproduction;

  • Create a User Interface widget blueprint
  • Add text block to Hierarchy, fill it with placeholder text
  • Make text layer variable
  • Go to Graph Editing view
  • Create SetFont node off of textBlock variable
  • Drag off “In Font Info” pin and create MakeSlateFontInfo node
  • Set font family
  • Create new fontSize float, default value 10 attach to Size in MakeSlateFontInfo node
  • Compile, Save, go back to Designer view

Placeholder text will add 16.67 an unknown value, sometimes a decimal, to the fontSize float var value, making whatever text you design in UMG the wrong size

edit - further testing shows it’s not a constant value that’s added to the fontSize, attempting to use subtract float nodes to correct it will is not a fix, it does additional hidden math that is not accurate.