I’m leaving this here just in case someone needs it. If you have not updated Ren’py, the FieldValue might not take min and max argument, so you can rearrange it this way to get it to work.
bar value FieldValue(persistent, "text_size", offset=text_size_minimum, range=text_size_maximum-text_size_minimum, step=1.0, style=u'slider')