diff --git a/src/code.ts b/src/code.ts index 273ddef..13c2bed 100644 --- a/src/code.ts +++ b/src/code.ts @@ -71,7 +71,7 @@ function traverse(node): NodeData { } if (node.type == "TEXT") { - const styledTextSegments = node.getStyledTextSegments(["fontName", "fontSize", "fontWeight", "lineHeight", "letterSpacing", "fills"]); + const styledTextSegments = node.getStyledTextSegments(["fontName", "fontSize", "fontWeight", "lineHeight", "letterSpacing", "textCase", "textDecoration", "fills"]); let font = { fontName: styledTextSegments[0].fontName, fontSize: styledTextSegments[0].fontSize.toString(), @@ -80,6 +80,8 @@ function traverse(node): NodeData { lineHeight: styledTextSegments[0].lineHeight, letterSpacing: styledTextSegments[0].letterSpacing, fills: styledTextSegments[0].fills, + textCase: styledTextSegments[0].textCase, + textDecoration: styledTextSegments[0].textDecoration, textAlignHorizontal: node.textAlignHorizontal, textAlignVertical: node.textAlignVertical, children: styledTextSegments diff --git a/src/ui.tsx b/src/ui.tsx index 2fdaf7c..5bc443b 100644 --- a/src/ui.tsx +++ b/src/ui.tsx @@ -166,7 +166,33 @@ export default class PenpotExporter extends React.Component { return { lineHeight: val.lineHeight, @@ -176,8 +202,8 @@ export default class PenpotExporter extends React.Component