0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-21 21:23:06 -05:00

Improve paragraph indent (#191)

* Additional layout properties (#190)

* additional layout properties

* changeset

* add changelog

---------

Co-authored-by: Alex Sánchez <sion333@gmail.com>
This commit is contained in:
Jordi Sala Morales 2024-06-26 10:07:56 +02:00 committed by GitHub
parent 511b842b12
commit b00370410c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
"penpot-exporter": patch
---
Improve paragraph indent using letter spacing

View file

@ -63,14 +63,14 @@ export class Paragraph {
if (indent === 0) return;
return {
text: ' '.repeat(indent),
text: ' ',
fontId: 'sourcesanspro',
fontVariantId: 'regular',
fontSize: '5',
fontSize: '1',
fontStyle: 'normal',
fontWeight: '400',
lineHeight: '1',
letterSpacing: '0'
letterSpacing: indent.toString()
};
}