2011-12-06 5 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의 다음 릴리스에서 수정 될 예정입니다. (오래 지연되었지만 언제 발표 될지 말할 수 없습니다).

관련 문제