title: JSPDF Custom Font Add not working
body: <p>CSS Code</p>
  
  <pre><code>@font-face {
      font-family: Calibri;
      src: url("fonts/calibri.ttf");
      font-style: normal;
  }
  </code></pre>
  
  <p>JS Code</p>
  
  <pre><code>doc.setFont('Calibri');
  doc.setFontSize(7.5);
  doc.setFontType("normal");
  doc.text(10, 10, "Hi, How r u");
  </code></pre>
  
  <p>I want to add Calibri Font, but it is not working</p>
  
  <p>List of js script included</p>
  
  <pre><code>&lt;script src="/assets/global/scripts/jspdf/jspdf.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/acroform.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/from_html.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/addhtml.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/addimage.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/annotations.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/autoprint.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/canvas.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/cell.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/context2d.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/javascript.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/outline.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/prevent_scale_to_fit.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/split_text_to_size.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/standard_fonts_metrics.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/svg.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/total_pages.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/zlib.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/png.js" type="text/javascript"&gt;&lt;/script&gt; 
  &lt;script src="/assets/global/scripts/jspdf/plugins/addimage.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/png_support.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/global/scripts/jspdf/plugins/filesaver.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>/*
  To change this license header, choose License Headers in Project Properties.
  To change this template file, choose Tools | Templates
  and open the template in the editor.
  */
  /* 
      Created on : Apr 23, 2017, 12:57:52 PM
      Author     : common
  */
  
  @font-face {
      font-family: Calibri;
      src: url("fonts/calibri.ttf");
      font-style: normal;
  }
  
  /*
  @font-face {
      font-family: Calibri;
      src: url("fonts/calibrii.ttf");
      font-style: italic;
  }
  
  @font-face {
      font-family: Calibri;
      src: url("fonts/calibrib.ttf");
      font-style: normal;
      font-weight: bold;
  }
  
  @font-face {
      font-family: Calibri;
      src: url("fonts/calibriz.ttf");
      font-style: italic;
      font-weight: bold;
  }*/
  </code></pre>