0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-09 08:30:08 -05:00
This commit is contained in:
Jordi Sala Morales 2024-04-10 08:24:53 +00:00
parent 6dfe4dd582
commit 29fd52717f
No known key found for this signature in database
GPG key ID: C5127140107F55FD
2 changed files with 6304 additions and 6304 deletions

View file

@ -48,7 +48,7 @@ export const createPenpotText = (
type: Symbol.for('text'), type: Symbol.for('text'),
content: { content: {
type: 'root', type: 'root',
verticalAlign: translateVerticalAlign(node.textAlignVertical), // verticalAlign: translateVerticalAlign(node.textAlignVertical),
children: [ children: [
{ {
type: 'paragraph-set', type: 'paragraph-set',
@ -58,13 +58,13 @@ export const createPenpotText = (
fontStyle: 'normal', fontStyle: 'normal',
children: children, children: children,
textTransform: translateTextTransform(node), textTransform: translateTextTransform(node),
textAlign: translateHorizontalAlign(node.textAlignHorizontal), // textAlign: translateHorizontalAlign(node.textAlignHorizontal),
fontId: 'gfont-' + slugify(node.fontName.family.toLowerCase()), // fontId: 'gfont-' + slugify(node.fontName.family.toLowerCase()),
fontSize: node.fontSize.toString(), fontSize: node.fontSize.toString(),
fontWeight: node.fontWeight.toString(), fontWeight: node.fontWeight.toString(),
type: 'paragraph', type: 'paragraph',
textDecoration: translateTextDecoration(node), textDecoration: translateTextDecoration(node),
letterSpacing: node.letterSpacing, // letterSpacing: node.letterSpacing,
fills: translateFills(node.fills /*, node.width, node.height*/), fills: translateFills(node.fills /*, node.width, node.height*/),
fontFamily: node.fontName.family fontFamily: node.fontName.family
} }

File diff suppressed because it is too large Load diff