Skip to content

Commit

Permalink
Word Export LT-21673: Fix bold/italic for complex script (#198)
Browse files Browse the repository at this point in the history
Change-Id: Ice8ebb05b94e6194a2532dd2237bbba7ef08487a
  • Loading branch information
mark-sil authored Nov 7, 2024
1 parent 18fdf13 commit 430596a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Src/xWorks/WordStylesGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ private static StyleRunProperties AddFontInfoWordStyles(BaseStyleInfo projectSty
if (bold)
{
var boldFont = new Bold() { Val = true };
var boldCS = new BoldComplexScript() { Val = true };
charDefaults.Append(boldFont);
charDefaults.Append(boldCS);
}

// Check for italic
Expand All @@ -555,7 +557,9 @@ private static StyleRunProperties AddFontInfoWordStyles(BaseStyleInfo projectSty
if (ital)
{
var italFont = new Italic() { Val = true };
var italicCS = new ItalicComplexScript() { Val = true };
charDefaults.Append(italFont);
charDefaults.Append(italicCS);
}

// Check for font color
Expand Down

0 comments on commit 430596a

Please sign in to comment.