diff --git a/ai2html.js b/ai2html.js index f8c76c4..52e9266 100644 --- a/ai2html.js +++ b/ai2html.js @@ -429,6 +429,7 @@ var cssTextStyleProperties = [ 'font-size', 'font-weight', 'font-style', + 'font-stretch', 'color', 'line-height', 'height', // used for point-type paragraph styles @@ -2759,6 +2760,9 @@ function convertAiTextStyle(aiStyle) { if (fontInfo.style) { cssStyle['font-style'] = fontInfo.style; } + if (fontInfo.stretch) { + cssStyle['font-stretch'] = fontInfo.stretch; + } } if ('leading' in aiStyle) { cssStyle['line-height'] = aiStyle.leading + 'px';