Description
I created a component in one file (named syc_tab_item), then used it as an instance in another and scaled it. ‘fontSize’ in ‘testinstance’ file is 35.39, but when using figma rest api, it still returns 14.0.
(I tried creating another component with similar structure,but that case didn’t happen as i expected. It seems only happens on ‘syc_tab_item’)
it would be appreciated if someone could tell me how it happend.
rest api response(partly):
“style”: {
“fontFamily”: “PingFang SC”,
“fontPostScriptName”: “PingFangSC-Semibold”,
“fontWeight”: 600,
“textAutoResize”: “WIDTH_AND_HEIGHT”,
“fontSize”: 14.0,
“textAlignHorizontal”: “LEFT”,
“textAlignVertical”: “CENTER”,
“letterSpacing”: 0.0,
“lineHeightPx”: 20.0,
“lineHeightPercent”: 121.90476989746094,
“lineHeightPercentFontSize”: 142.85714721679688,
“lineHeightUnit”: “PIXELS”
}
Steps
- click ‘Assets’ in the left-top corner of the screen
- drop ‘syc_tab_item’ component into the center of the screen
- click ‘Move’ in the left-top corner of the screen and switch to ‘Scale’
- resize item created in step 2 (make sure fontSize value changed)
- request rest api: GET, the fontSize is still the same with original component node’s fontSize.