|
@@ -17,17 +17,12 @@ namespace QuestPDF.UnitTests
|
|
|
var defaultTextStyle = TextStyle
|
|
var defaultTextStyle = TextStyle
|
|
|
.Default
|
|
.Default
|
|
|
.FontSize(20)
|
|
.FontSize(20)
|
|
|
- .FontFamily("Arial")
|
|
|
|
|
- .BackgroundColor(Colors.Green.Lighten2)
|
|
|
|
|
- .Fallback(y => y
|
|
|
|
|
- .FontFamily("Microsoft YaHei")
|
|
|
|
|
- .Underline()
|
|
|
|
|
- .NormalWeight()
|
|
|
|
|
- .BackgroundColor(Colors.Blue.Lighten2));
|
|
|
|
|
|
|
+ .FontFamily("Arial", "Microsoft YaHei")
|
|
|
|
|
+ .BackgroundColor(Colors.Green.Lighten2);
|
|
|
|
|
|
|
|
var spanTextStyle = TextStyle
|
|
var spanTextStyle = TextStyle
|
|
|
.Default
|
|
.Default
|
|
|
- .FontFamily("Times New Roman")
|
|
|
|
|
|
|
+ .FontFamily("Times New Roman", "Arial", "Calibri")
|
|
|
.Bold()
|
|
.Bold()
|
|
|
.Strikethrough()
|
|
.Strikethrough()
|
|
|
.BackgroundColor(Colors.Red.Lighten2);
|
|
.BackgroundColor(Colors.Red.Lighten2);
|
|
@@ -40,7 +35,7 @@ namespace QuestPDF.UnitTests
|
|
|
{
|
|
{
|
|
|
Id = targetStyle.Id, // expect to break when adding new TextStyle properties, so use the real one
|
|
Id = targetStyle.Id, // expect to break when adding new TextStyle properties, so use the real one
|
|
|
Size = 20,
|
|
Size = 20,
|
|
|
- FontFamilies = new[] { "Times New Roman" },
|
|
|
|
|
|
|
+ FontFamilies = new[] { "Times New Roman", "Arial", "Calibri", "Microsoft YaHei", "Lato" },
|
|
|
FontWeight = FontWeight.Bold,
|
|
FontWeight = FontWeight.Bold,
|
|
|
BackgroundColor = Colors.Red.Lighten2,
|
|
BackgroundColor = Colors.Red.Lighten2,
|
|
|
HasStrikethrough = true
|
|
HasStrikethrough = true
|