PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

DrawString with different fonts cause bad rendering
https://forum.pdfsharp.net/viewtopic.php?f=3&t=428
Page 1 of 1

Author:  marcosb [ Thu Jul 03, 2008 3:08 pm ]
Post subject:  DrawString with different fonts cause bad rendering

I have a pdf document generated from a winword 2007 document
I'm tryint to write two text with different formattings in this document

using (XGraphics gfx = XGraphics.FromPdfPage(page, XGraphicsPdfPageOptions.Append))
{
gfx.DrawString("sss", f1, XBrushes.Black, 20,20);
gfx.DrawString("jjj", f2, XBrushes.Black, 20,20);
}

if f1 is bold and f2 is any other font style, the text rendered is not displayed correcty (the text that I write is ok, but the underlying text is which is not displayed correctly)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/