From bc5d7d18426503cfc4314456c7304a0ce7325521 Mon Sep 17 00:00:00 2001 From: Linda Gorman Date: Tue, 24 Oct 2023 13:18:11 -0400 Subject: [PATCH] Add support for font-stretch property --- ai2html.js | 4 ++++ 1 file changed, 4 insertions(+) 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';