mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2025-01-10 09:00:08 -05:00
881ccabe86
* fixes in text nodes * fix comment * allow design.penpot.app * wip * wip * add position data * wip agaaain * added translate growtype * use a random url just to get a 404 on gfonts call * leave the config, just in case someone wants to try it * translated line height & letter spacing; Created new type for text positionData * text strokes * several fixes * compiled penpot lib with fix * updated penpot lib * fix lint * remove proxy * correctly translate font style * fix grow type to reflect vertical trim * Fix font segments * remove comment * changeset --------- Co-authored-by: Alex Sánchez <sion333@gmail.com>
9 lines
231 B
TypeScript
9 lines
231 B
TypeScript
import { TextFontStyle } from '@ui/lib/types/text/textContent';
|
|
|
|
export const translateFontStyle = (style: string): TextFontStyle => {
|
|
if (style.toLowerCase().includes('italic')) {
|
|
return 'italic';
|
|
}
|
|
|
|
return 'normal';
|
|
};
|