diff --git a/Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs b/Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs index 95cb5fe67..d61bef4ca 100644 --- a/Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs +++ b/Source/HtmlRenderer.WPF/Adapters/GraphicsAdapter.cs @@ -201,15 +201,7 @@ public override void DrawString(string str, RFont font, RColor color, RPoint poi glyphRendered = true; var glyphRun = new GlyphRun(glyphTypeface, rtl ? 1 : 0, false, 96d / 72d * font.Size, glyphs, Utils.ConvertRound(point), widths, null, null, null, null, null, null); - var rect = glyphRun.ComputeAlignmentBox(); - var guidelines = new GuidelineSet(); - guidelines.GuidelinesX.Add(rect.Left); - guidelines.GuidelinesX.Add(rect.Right); - guidelines.GuidelinesY.Add(rect.Top); - guidelines.GuidelinesY.Add(rect.Bottom); - _g.PushGuidelineSet(guidelines); _g.DrawGlyphRun(colorConv, glyphRun); - _g.Pop(); } } @@ -277,7 +269,7 @@ public override void DrawRectangle(RPen pen, double x, double y, double width, d x += .5; y += .5; } - + _g.DrawRectangle(null, ((PenAdapter)pen).CreatePen(), new Rect(x, y, width, height)); }