export const translateLineHeight = ( segment: Pick ): string => { switch (segment.lineHeight.unit) { case 'PIXELS': return (segment.lineHeight.value / segment.fontSize).toString(); case 'PERCENT': return (segment.lineHeight.value / 100).toString(); default: return '1.2'; } };