I just looked at the wiki documentation and it seems to be a documentation error. The wiki refers to the value as FontSize, but I just looked at the client chat code, and It accepts a value called TextSize instead.
You may need to use a number instead of the Enum since TextSize accepts a number instead of fixed Enums. The documentations should probably be updated.