2011-12-06 8 views
1

以下のコードでは、二重引用符の前後のテキストが重複しています。それはフォントの選択に関連しているようですが、私はそれを変更することができないかもしれません。MigraDocイタリックテキストオーバーラップ

文字間の幅を広げる方法やプロパティはありますか?またはいくつかの回避策ですか?

Document document = new Document(); 
Section section = document.AddSection(); 
Paragraph paragraph = section.AddParagraph(); 
Font _fontTimes14Italic = new Font("Times New Roman", "14pt") { Italic = true }; 
paragraph.AddFormattedText("This is a test \"The Broken\" should display incorrectly", _fontTimes14Italic); 

PdfDocumentRenderer renderer = new PdfDocumentRenderer(true, 
PdfSharp.Pdf.PdfFontEmbedding.Always); 

renderer.Document = document; 
renderer.RenderDocument(); 
renderer.PdfDocument.Save(filePath); 

答えて

1

これはPDFsharpのWPFビルドのバグです。
(WPFアプリケーションでも使用できる)GDI +ビルドに切り替えると、テキストが正しくレンダリングされます。
このバグは、PDFsharpの次のリリースで修正される予定です(これは期限切れですが、いつ来るのかはわかりません)。

関連する問題