Skip to content

Commit

Permalink
Fix parameter name mis-match from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Lee committed Feb 3, 2018
1 parent 17e37cc commit 3f4db0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LiteHtmlSharp.Wpf/WPFContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 3f4db0f

Please sign in to comment.