Skip to main content
Question

Font issue using string variables in instances

  • November 7, 2024
  • 1 reply
  • 49 views

Oliver_Schwaiger

Hello everybody!

Me and my team are experiencing rather strange behavior when applying string variables to the font family property of a text. Especially if this text is nested inside a component.

I did report this as a bug already, but was wondering what the community is experiencing.
Here is the link so you all can test it.

brief scenario:

  1. Created a text component using a string variable for the font family
  2. Put an instance of the text component inside an auto layout and override the font family with a different variable
  3. alt+drag the auto layout to duplicate it [the text will switch back to the first (initial) variable even though the other variable seems to still be referenced].

Anybody having similar issues.
This is causing a lot of headache at the moment.

1 reply

Alycia Jones

I’m not having your same exact issue, but I am experiencing some funky behavior with string variables for font families as well. In my case I am using a font style with the string variable applied for text in a very simple tooltip component. When I change the copy in a component instance, the right side doesn’t hug properly; the text extends past the container slightly. If I break the type style and string variable from the font family then it fixes itself. Triple checked all my autolayout settings etc.

Type variables are still fairly new so maybe they are just buggy?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings