Skip to content

Commit

Permalink
Fix for #183 - CopyAsHTMLMarkup font size
Browse files Browse the repository at this point in the history
Updated GetFontSize to print "px" on font size.
  • Loading branch information
kirsan31 authored and justcla committed May 20, 2018
1 parent a8be336 commit ee92b43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CopyAsHtml/CopyAsHtml/HtmlMarkupProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,12 @@ private static string GetFontStyle(TextRunProperties properties)
return style;
}

/// <summary>
/// Gets string representation of Font Size in DIPs (Device Independent Pixels). Eg: "12px".
/// </summary>
private static string GetFontSize(TextRunProperties properties)
{
return ((int)properties.FontRenderingEmSize).ToString();
return ((int)properties.FontRenderingEmSize).ToString() + "px";
}

private string GetFontFamily(TextRunProperties properties)
Expand Down

0 comments on commit ee92b43

Please sign in to comment.