aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2020-02-24 20:44:34 -0500
committerBob Arnson <bob@firegiant.com>2020-02-24 20:48:08 -0500
commitf56ab787834ce5ecb1b40f71fb7c7f6b470ab1e3 (patch)
tree52ef7a6f28a267961198cd84efabecbc8a622268 /src
parent8f642efb64859802c98e72676d48ac10b448bd0f (diff)
downloadwix-f56ab787834ce5ecb1b40f71fb7c7f6b470ab1e3.tar.gz
wix-f56ab787834ce5ecb1b40f71fb7c7f6b470ab1e3.tar.bz2
wix-f56ab787834ce5ecb1b40f71fb7c7f6b470ab1e3.zip
Fix File/@TrueType.
Diffstat (limited to 'src')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs2
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs4
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/TestData/Font/TrueType.wxs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
index 5707f7ce..3a165582 100644
--- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs
@@ -531,7 +531,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
531 attributes |= (tuple.Attributes & FileTupleAttributes.Vital) == FileTupleAttributes.Vital ? WindowsInstallerConstants.MsidbFileAttributesVital : 0; 531 attributes |= (tuple.Attributes & FileTupleAttributes.Vital) == FileTupleAttributes.Vital ? WindowsInstallerConstants.MsidbFileAttributesVital : 0;
532 row.Attributes = attributes; 532 row.Attributes = attributes;
533 533
534 if (!String.IsNullOrEmpty(tuple.FontTitle)) 534 if (tuple.FontTitle != null)
535 { 535 {
536 var fontRow = this.CreateRow(tuple, "Font"); 536 var fontRow = this.CreateRow(tuple, "Font");
537 fontRow[0] = tuple.Id.Id; 537 fontRow[0] = tuple.Id.Id;
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
index 6fd02d5f..d93b3d54 100644
--- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
+++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
@@ -594,7 +594,7 @@ namespace WixToolsetTest.CoreIntegration
594 } 594 }
595 } 595 }
596 596
597 [Fact(Skip = "Test demonstrates failure")] 597 [Fact]
598 public void PopulatesFontTableFromTrueType() 598 public void PopulatesFontTableFromTrueType()
599 { 599 {
600 var folder = TestData.Get(@"TestData"); 600 var folder = TestData.Get(@"TestData");
@@ -622,7 +622,7 @@ namespace WixToolsetTest.CoreIntegration
622 var results = Query.QueryDatabase(msiPath, new[] { "Font" }); 622 var results = Query.QueryDatabase(msiPath, new[] { "Font" });
623 Assert.Equal(new[] 623 Assert.Equal(new[]
624 { 624 {
625 "Font:TrueTypeFontComp.ttf\t", 625 "Font:TrueTypeFontFile\t",
626 }, results); 626 }, results);
627 } 627 }
628 } 628 }
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Font/TrueType.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/Font/TrueType.wxs
index ff94ce52..6ac48963 100644
--- a/src/test/WixToolsetTest.CoreIntegration/TestData/Font/TrueType.wxs
+++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Font/TrueType.wxs
@@ -3,7 +3,7 @@
3 <Fragment> 3 <Fragment>
4 <ComponentGroup Id="ProductComponents"> 4 <ComponentGroup Id="ProductComponents">
5 <Component Id="TrueTypeFontComp" Directory="INSTALLFOLDER" Guid="C8116E5E-F731-427C-AF43-6FF8B8D7DA64"> 5 <Component Id="TrueTypeFontComp" Directory="INSTALLFOLDER" Guid="C8116E5E-F731-427C-AF43-6FF8B8D7DA64">
6 <File Source="test.txt" Name="TrueTypeFontComp.ttf" TrueType="yes" /> 6 <File Id="TrueTypeFontFile" Source="test.txt" Name="TrueTypeFontComp.ttf" TrueType="yes" />
7 </Component> 7 </Component>
8 </ComponentGroup> 8 </ComponentGroup>
9 </Fragment> 9 </Fragment>