0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-09 00:20:05 -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
src/ui

View file

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

File diff suppressed because it is too large Load diff