PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

MigraDoc - Problems using Tahoma font
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4165
Page 1 of 1

Author:  IRlyDunno [ Wed Aug 05, 2020 12:16 pm ]
Post subject:  MigraDoc - Problems using Tahoma font

Using PdfSharp-MigraDoc-gdi NuGet package v1.51.5186-beta

As the title says I am getting an exception using the Tahoma font:
Code:
An item with the same key has already been added.   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at PdfSharp.Fonts.FontFactory.CacheNewFontSource(String typefaceKey, XFontSource fontSource)
   at PdfSharp.Drawing.XFontSource.GetOrCreateFrom(String typefaceKey, Byte[] fontBytes)
   at PdfSharp.Fonts.PlatformFontResolver.CreateFontSource(String familyName, FontResolvingOptions fontResolvingOptions, Font& font, String typefaceKey)
   at PdfSharp.Fonts.PlatformFontResolver.ResolveTypeface(String familyName, FontResolvingOptions fontResolvingOptions, String typefaceKey)
   at PdfSharp.Fonts.FontFactory.ResolveTypeface(String familyName, FontResolvingOptions fontResolvingOptions, String typefaceKey)
   at PdfSharp.Drawing.XGlyphTypeface.GetOrCreateFrom(String familyName, FontResolvingOptions fontResolvingOptions)
   at PdfSharp.Drawing.XFont.Initialize()
   at MigraDoc.Rendering.FontHandler.FontToXFont(Font font, PdfFontEncoding encoding)
   at MigraDoc.Rendering.ParagraphRenderer.get_CurrentFont()
   at MigraDoc.Rendering.ParagraphRenderer.CalcCurrentVerticalInfo()
   at MigraDoc.Rendering.ParagraphRenderer.InitFormat(Area area, FormatInfo previousFormatInfo)
   at MigraDoc.Rendering.ParagraphRenderer.Format(Area area, FormatInfo previousFormatInfo)
   at MigraDoc.Rendering.TopDownFormatter.FormatOnAreas(XGraphics gfx, Boolean topLevel)
   at MigraDoc.Rendering.FormattedCell.Format(XGraphics gfx)
   at MigraDoc.Rendering.TableRenderer.FormatCells()
   at MigraDoc.Rendering.TableRenderer.InitFormat(Area area, FormatInfo previousFormatInfo)
   at MigraDoc.Rendering.TableRenderer.Format(Area area, FormatInfo previousFormatInfo)
   at MigraDoc.Rendering.TopDownFormatter.FormatOnAreas(XGraphics gfx, Boolean topLevel)
   at MigraDoc.Rendering.FormattedDocument.Format(XGraphics gfx)
   at MigraDoc.Rendering.DocumentRenderer.PrepareDocument()
   at MigraDoc.Rendering.PdfDocumentRenderer.PrepareDocumentRenderer(Boolean prepareCompletely)
   at MigraDoc.Rendering.PdfDocumentRenderer.PrepareRenderPages()
   at MigraDoc.Rendering.PdfDocumentRenderer.RenderDocument()


And I can't seem to find out why... So I would like to know if there's a known issue about this. And better yet if there's a fix for this problem.

Thank you in advance

Author:  TH-Soft [ Wed Aug 05, 2020 2:03 pm ]
Post subject:  Re: MigraDoc - Problems using Tahoma font

IRlyDunno wrote:
So I would like to know if there's a known issue about this.
No.

IRlyDunno wrote:
And better yet if there's a fix for this problem.
No.

Consider using the Issue Submission Template to make the issue reproducible for us.

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