Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
falleretic committed Mar 29, 2024
1 parent 57fb98e commit 6bacaad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Examples/ApiExamples/ApiExamples/ExHtmlLoadOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public void FontFaceRules()
loadOptions.SupportFontFaceRules = true;
Document doc = new Document(MyDir + "Html with FontFace.html", loadOptions);

Assert.AreEqual("Bitstream Vera Serif Bold", doc.FontInfos[0].Name);
Assert.AreEqual("Squarish Sans CT Regular", doc.FontInfos[0].Name);
//ExEnd:FontFaceRules
}
}
Expand Down
8 changes: 4 additions & 4 deletions Examples/Data/Html with FontFace.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<title>Web Font Sample</title>
<style type="text/css" media="screen, print">
@font-face {
font-family: "Bitstream Vera Serif Bold";
src: url("MyFonts/VeraSeBd.ttf");
font-family: "Squarish Sans CT Regular";
src: url("MyFonts/Squarish Sans CT Regular.ttf");
}

body { font-family: "Bitstream Vera Serif Bold", serif }
body { font-family: "Squarish Sans CT Regular", serif }
</style>
</head>
<body>
This is Bitstream Vera Serif Bold.
This is Squarish Sans CT Regular.
</body>
</html>
Binary file removed Examples/Data/MyFonts/VeraSeBd.ttf
Binary file not shown.

0 comments on commit 6bacaad

Please sign in to comment.