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:
parent
511b842b12
commit
b00370410c
2 changed files with 8 additions and 3 deletions
5
.changeset/sixty-colts-sleep.md
Normal file
5
.changeset/sixty-colts-sleep.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"penpot-exporter": patch
|
||||
---
|
||||
|
||||
Improve paragraph indent using letter spacing
|
|
@ -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()
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue