title: How to embed a Font in solution to use for PDF with RDLC
body: <p>I have an RDLC report created via Webforms.LocalReport that uses a few custom fonts that I have installed on my dev machine. This works well, and embeds the fonts in the PDF so that others don't need the font installed to view.</p>
  
  <p>My problem is, when deploying to our production environment, there are a number of machines that may run the report. I don't want to have to install the font on each 'potential' machine - is there a way to attach the (.TTF) font file to the (VB.NET) solution, and have the font pulled from here, rather than from the local machine?</p>
  
  <p>Hope this makes sense!!</p>
  
  <p>If it helps, below is a sample of the code I'm using</p>
  
  <pre><code>    Dim PDFfile As FileInfo
      Dim deviceInfo As String = String.Empty
      Dim PDF() As Byte
      Dim reportParams As List(Of ReportParameter)
  
      Using report As New LocalReport
  
          ' Set up report
          ' Report device information to create PDF with A4 sized pages
          deviceInfo = "&lt;DeviceInfo&gt;" &amp; _
                       "  &lt;OutputFormat&gt;EMF&lt;/OutputFormat&gt;" &amp; _
                       "  &lt;Orientation&gt;Portrait&lt;/Orientation&gt;" &amp; _
                       "  &lt;PageWidth&gt;21cm&lt;/PageWidth&gt;" &amp; _
                       "  &lt;PageHeight&gt;29.7cm&lt;/PageHeight&gt;" &amp; _
                       "  &lt;MarginTop&gt;0cm&lt;/MarginTop&gt;" &amp; _
                       "  &lt;MarginLeft&gt;0cm&lt;/MarginLeft&gt;" &amp; _
                       "  &lt;MarginRight&gt;0cm&lt;/MarginRight&gt;" &amp; _
                       "  &lt;MarginBottom&gt;0cm&lt;/MarginBottom&gt;" &amp; _
                       "&lt;/DeviceInfo&gt;"
          With report
              .DisplayName = "Display Name"
              report.ReportEmbeddedResource = "ReportName.rdlc"
  
              ' Add all necessary parameters
              reportParams = New List(Of ReportParameter)
              reportParams.Add(...)
  
              .SetParameters(reportParams)
          End With
  
          PDF = report.Render("PDF", deviceInfo)
          PDFfile = New FileInfo("C:\")
  
          Using stream As FileStream = PDFfile.Create
              stream.Write(PDF, 0, PDF.Length)
          End Using
      End Using
  </code></pre>
  
  <p>Thanks in advance!</p>