In BP code setting the size of text box font is also changing font family?

Hi,

I’m trying to change the size of the font in an Editable Text Box.

I’m using TB->Get Style and then breaking down the EditableTextBoxStyle, then the TextBoxStyle, then the SlateFontInfo, at each stage I’m copying the unchanged members into an equivalent Make <structure> and then assigning that back with TB->Set Style.

Although the following is “an eye chart” you can see that I’m not missing anything, or assigning wrong stuff:

However, when I wire this feature up into my Event Pre Construct it appears to be changing the font family? i.e. in the following diagram the box labeled X has value 0, whereas the box labeled Y appears to have changed the font (because it’s value should be 0):

image

I’m sure I must be doing something stoopid! But I can’t figure out what…

Any ideas?

Thanks.