There is no possible way to read text styles that are inherited from a style override in at least some cases.
Please see this example:
The output we receive from v1/files/:key is the following:
{
"id": "1:2",
"name": "Frame 1",
"type": "FRAME",
"scrollBehavior": "SCROLLS",
"blendMode": "PASS_THROUGH",
"children": [
{
"id": "1:6",
"name": "This is not working",
"type": "TEXT",
"scrollBehavior": "SCROLLS",
"blendMode": "PASS_THROUGH",
"absoluteBoundingBox": {
"x": -43,
"y": 146,
"width": 377,
"height": 51
},
"absoluteRenderBounds": {
"x": -40.58975601196289,
"y": 155.5,
"width": 370.986328125,
"height": 40.56817626953125
},
"constraints": {
"vertical": "TOP",
"horizontal": "LEFT"
},
"relativeTransform": [
[
1,
0,
247
],
[
0,
1,
405
]
],
"size": {
"x": 377,
"y": 51
},
"fills": [
{
"blendMode": "NORMAL",
"type": "SOLID",
"color": {
"r": 0,
"g": 0,
"b": 0,
"a": 1
}
}
],
"fillGeometry": [],
"strokes": [],
"strokeWeight": 1,
"strokeAlign": "OUTSIDE",
"strokeGeometry": [],
"exportSettings": [],
"effects": [],
"characters": "This is not working",
"style": {
"fontFamily": "Inter",
"fontPostScriptName": null,
"fontWeight": 400,
"paragraphSpacing": 20,
"textAutoResize": "WIDTH_AND_HEIGHT",
"fontSize": 42,
"textAlignHorizontal": "CENTER",
"textAlignVertical": "TOP",
"letterSpacing": 0,
"lineHeightPx": 50.82954406738281,
"lineHeightPercent": 100,
"lineHeightUnit": "INTRINSIC_%"
},
"layoutVersion": 4,
"characterStyleOverrides": [
0,
0,
0,
0,
0,
0,
0,
0,
22,
22,
22
],
"styleOverrideTable": {
"22": {
"fontFamily": "Inter",
"fontPostScriptName": null,
"fontWeight": 400,
"textAutoResize": "WIDTH_AND_HEIGHT",
"fontSize": 42,
"letterSpacing": 0,
"lineHeightPx": 50.82954406738281,
"lineHeightPercent": 100,
"lineHeightUnit": "INTRINSIC_%",
"inheritTextStyleId": "1:7"
}
},
"styles": {
"text": "1:7"
},
"lineTypes": [
"NONE"
],
"lineIndentations": [
0
]
}
],
It has no indication of the bolded “not” text.
Another thread on here indicated that one could possibly read the styles themselves with v1/files/:key/nodes?id=1:7
but that returns equally useless data:
{"name":"Untitled","lastModified":"2024-07-08T04:57:09Z","thumbnailUrl":"https://s3-alpha.figma.com/thumbnails/6d10bb51-26f0-4325-bb71-8ff35b328552?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAQ4GOSFWCR2CQHY4J%2F20240707%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20240707T120000Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=1b8448c61c015792e4c6e15f6fd2ca09056e93470a44b1af7cbd92e087c0eec8","version":"6160118581","role":"owner","editorType":"figma","linkAccess":"view","nodes":{"1:7":{"document":{"id":"1:7","name":"TestTextStyle","type":"TEXT","scrollBehavior":"SCROLLS","blendMode":"PASS_THROUGH","absoluteBoundingBox":{"x":0,"y":0,"width":160,"height":51},"absoluteRenderBounds":{"x":3.698863983154297,"y":10.036930084228516,"width":152.99574279785156,"height":40.03125},"constraints":{"vertical":"TOP","horizontal":"LEFT"},"fills":[{"blendMode":"NORMAL","type":"SOLID","color":{"r":0,"g":0,"b":0,"a":1}}],"strokes":[],"strokeWeight":0,"strokeAlign":"INSIDE","exportSettings":[],"effects":[],"characters":"Rag 123","style":{"fontFamily":"Inter","fontPostScriptName":null,"fontWeight":400,"paragraphSpacing":20,"textAutoResize":"WIDTH_AND_HEIGHT","fontSize":42,"textAlignHorizontal":"LEFT","textAlignVertical":"TOP","letterSpacing":0,"lineHeightPx":50.82954406738281,"lineHeightPercent":100,"lineHeightUnit":"INTRINSIC_%"},"layoutVersion":4,"characterStyleOverrides":[],"styleOverrideTable":{},"lineTypes":["NONE"],"lineIndentations":[0]},"components":{},"componentSets":{},"schemaVersion":0,"styles":{}}}}
The bold text is still nowhere to be found indicated anywhere and impossible to know.
Can we please get an ETA on a fix on this? The previous issue we reported has gone unaddressed for over 2 weeks now.