title: Is it possible to use more than one custom font in an SVG?
body: <p>I'm using the <em>Univers LT 47 Condensed Light</em> font in SVG. In some of the elements use the <em>Univers LT 47 Condensed Bold</em> font. The SVG is rendered correctly but when I print the SVG on a PDF none of the fonts are respected and a default font (Times) is used. </p>
  
  <p>Later on, i figured out that with setting a (the?) font provider I'm able to use the standard font.</p>
  
  <pre><code>string fontUniverseLT47 = HttpContext.Current.Server.MapPath("fonts/lte50144.ttf"),
  fontUniverseLT47Bold = HttpContext.Current.Server.MapPath("fonts/LT.ttf");
  
  FontProvider provider = new FontProvider();
  provider.AddFont(FontProgramFactory.CreateFont(fontUniverseLT47));
  provider.AddFont(FontProgramFactory.CreateFont(fontUniverseLT47Bold));
  
  SvgConverterProperties props = new SvgConverterProperties();
  props.SetCharset("Windows-1252");
  props.SetFontProvider(provider);
  
  byte[] byteArray = Encoding.GetEncoding(1252).GetBytes(svg);
  
  using (MemoryStream ms = new MemoryStream(byteArray))
  {
      Image image = SvgConverter.ConvertToImage(ms, pdf, props);
      image.SetPageNumber(pageNumber);
      image.SetFixedPosition(llx, lly);
      image.ScaleToFit(width, height);
  
      doc.Add(image);
  }
  </code></pre>
  
  <p>But now I'd like to use the bold font which cannot be set in CSS with font-weight : bold as it's a different PdfFont. </p>
  
  <p>Is there a way how I can use the second, bold font in the SVG?</p>