From 3f4db0ff0ab4b5cd7f5e10aa1b6ed94f2eee0bcb Mon Sep 17 00:00:00 2001 From: Connor Lee Date: Sat, 3 Feb 2018 14:28:55 -0700 Subject: [PATCH] Fix parameter name mis-match from previous commit --- LiteHtmlSharp.Wpf/WPFContainer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LiteHtmlSharp.Wpf/WPFContainer.cs b/LiteHtmlSharp.Wpf/WPFContainer.cs index 6edd935..c89119d 100644 --- a/LiteHtmlSharp.Wpf/WPFContainer.cs +++ b/LiteHtmlSharp.Wpf/WPFContainer.cs @@ -287,7 +287,7 @@ protected override void DrawText(string text, UIntPtr font, ref web_color color, protected override UIntPtr CreateFont(string faceName, int size, int weight, font_style italic, font_decoration decoration, ref font_metrics fm) { var fontweight = FontWeight.FromOpenTypeWeight(weight); - FontInfo font = new FontInfo(family, italic == font_style.fontStyleItalic ? FontStyles.Italic : FontStyles.Normal, fontweight, size, FontAbsolutePathDelegate?.Invoke(family)); + FontInfo font = new FontInfo(faceName, italic == font_style.fontStyleItalic ? FontStyles.Italic : FontStyles.Normal, fontweight, size, FontAbsolutePathDelegate?.Invoke(faceName)); if ((decoration & font_decoration.font_decoration_underline) != 0) {