GetTextBoundsParams.Font property is incorrect (confusing)

The GetTextBoundsParams.Font property is correctly documented / described as Font data type (and is correctly linked), yet for some reason the website suggests in both summary and longer version of properties (in the property header) that the .Font type is Enum.Font (which is not correct).

image
(then after scrolling a little more)


I have honestly no idea how to fix it and there is nothing linking that class to Enum.Font in the class yaml setting file.

Page URL: https://create.roblox.com/docs/reference/engine/classes/GetTextBoundsParams

The best implementation moving forward should really be Font:GetTextBounds(text: string, width: number?) as it means the font related parameters are enclosed as the self type on the method.

This does mean we now have three implementations of the same basic operation, but I see it as an end-all-be-all approach.

Hi @Etheroit, thanks a lot for the report on website bug. It has been fixed (see page). Please let us know if you have any issues or feedback. :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.