export const translateLineHeight = ( segment: Pick ): number | undefined => { switch (segment.lineHeight.unit) { case 'PIXELS': return segment.lineHeight.value / segment.fontSize; case 'PERCENT': return segment.lineHeight.value / 100; } };