From 4c2abc241ea8c7816a3eac83a44d186f2b504f73 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sun, 28 Jun 2020 17:39:11 -0700 Subject: Support localized TextStyle Size --- src/WixToolset.Core/Compiler_UI.cs | 5 ++--- src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/WixToolset.Core/Compiler_UI.cs b/src/WixToolset.Core/Compiler_UI.cs index 1ecf4f64..36d2e4e9 100644 --- a/src/WixToolset.Core/Compiler_UI.cs +++ b/src/WixToolset.Core/Compiler_UI.cs @@ -860,9 +860,10 @@ namespace WixToolset.Core if (!this.Core.EncounteredError) { - var symbol = this.Core.AddSymbol(new TextStyleSymbol(sourceLineNumbers, id) + this.Core.AddSymbol(new TextStyleSymbol(sourceLineNumbers, id) { FaceName = faceName, + LocalizedSize = size, Red = red, Green = green, Blue = blue, @@ -871,8 +872,6 @@ namespace WixToolset.Core Strike = strike, Underline = underline, }); - - symbol.Set((int)TextStyleSymbolFields.Size, size); } } diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 078a33d5..bbeb7bd4 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs @@ -904,7 +904,7 @@ namespace WixToolsetTest.CoreIntegration } } - [Fact(Skip = "Test demonstrates failure")] + [Fact] public void PopulatesTextStyleTableWhenSizeIsLocalized() { var folder = TestData.Get(@"TestData"); -- cgit v1.2.3-55-g6feb