FontObject.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>FontObject - Documentation</title>
  6. <script src="scripts/prettify/prettify.js"></script>
  7. <script src="scripts/prettify/lang-css.js"></script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
  13. </head>
  14. <body>
  15. <input type="checkbox" id="nav-trigger" class="nav-trigger" />
  16. <label for="nav-trigger" class="navicon-button x">
  17. <div class="navicon"></div>
  18. </label>
  19. <label for="nav-trigger" class="overlay"></label>
  20. <nav>
  21. <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="FontObject.html">FontObject</a></li><li><a href="jsPDF.html">jsPDF</a></li><li><a href="PubSub.html">PubSub</a></li></ul><h3>Global</h3><ul><li><a href="global.html#addFont">addFont</a></li><li><a href="global.html#addMetadata">addMetadata</a></li><li><a href="global.html#addPage">addPage</a></li><li><a href="global.html#CapJoinStyles">CapJoinStyles</a></li><li><a href="global.html#circle">circle</a></li><li><a href="global.html#CssColors">CssColors</a></li><li><a href="global.html#ellipse">ellipse</a></li><li><a href="global.html#getFontList">getFontList</a></li><li><a href="global.html#html2pdf">html2pdf</a></li><li><a href="global.html#http">http</a></li><li><a href="global.html#lines">lines</a></li><li><a href="global.html#lstext">lstext</a></li><li><a href="global.html#output">output</a></li><li><a href="global.html#rect">rect</a></li><li><a href="global.html#requirejs">requirejs</a></li><li><a href="global.html#reset">reset</a></li><li><a href="global.html#roundedRect">roundedRect</a></li><li><a href="global.html#save">save</a></li><li><a href="global.html#setDisplayMode">setDisplayMode</a></li><li><a href="global.html#setDrawColor">setDrawColor</a></li><li><a href="global.html#setFillColor">setFillColor</a></li><li><a href="global.html#setFont">setFont</a></li><li><a href="global.html#setFontSize">setFontSize</a></li><li><a href="global.html#setFontStyle">setFontStyle</a></li><li><a href="global.html#setLineCap">setLineCap</a></li><li><a href="global.html#setLineJoin">setLineJoin</a></li><li><a href="global.html#setLineWidth">setLineWidth</a></li><li><a href="global.html#setPage">setPage</a></li><li><a href="global.html#setProperties">setProperties</a></li><li><a href="global.html#setTextColor">setTextColor</a></li><li><a href="global.html#text">text</a></li><li><a href="global.html#toUrl">toUrl</a></li><li><a href="global.html#triangle">triangle</a></li><li><a href="global.html#triggerEvent">triggerEvent</a></li></ul>
  22. </nav>
  23. <div id="main">
  24. <h1 class="page-title">FontObject</h1>
  25. <section>
  26. <header>
  27. <h2>
  28. FontObject
  29. </h2>
  30. </header>
  31. <article>
  32. <div class="container-overview">
  33. <h4 class="name" id="FontObject"><span class="type-signature"></span>new FontObject<span class="signature">()</span><span class="type-signature"></span></h4>
  34. <dl class="details">
  35. <dt class="tag-source">Source:</dt>
  36. <dd class="tag-source"><ul class="dummy"><li>
  37. <a href="jspdf.js.html">jspdf.js</a>, <a href="jspdf.js.html#line419">line 419</a>
  38. </li></ul></dd>
  39. </dl>
  40. <h5 class="subsection-title">Properties:</h5>
  41. <table class="props">
  42. <thead>
  43. <tr>
  44. <th>Name</th>
  45. <th>Type</th>
  46. <th class="last">Description</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. <tr>
  51. <td class="name"><code>id</code></td>
  52. <td class="type">
  53. <span class="param-type">String</span>
  54. </td>
  55. <td class="description last"><p>PDF-document-instance-specific label assinged to the font.</p></td>
  56. </tr>
  57. <tr>
  58. <td class="name"><code>PostScriptName</code></td>
  59. <td class="type">
  60. <span class="param-type">String</span>
  61. </td>
  62. <td class="description last"><p>PDF specification full name for the font</p></td>
  63. </tr>
  64. <tr>
  65. <td class="name"><code>encoding</code></td>
  66. <td class="type">
  67. <span class="param-type">Object</span>
  68. </td>
  69. <td class="description last"><p>Encoding_name-to-Font_metrics_object mapping.</p></td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. <div class="description">
  74. <p>FontObject describes a particular font as member of an instnace of jsPDF</p>
  75. <p>It's a collection of properties like 'id' (to be used in PDF stream),
  76. 'fontName' (font's family name), 'fontStyle' (font's style variant label)</p>
  77. </div>
  78. </div>
  79. </article>
  80. </section>
  81. </div>
  82. <br class="clear">
  83. <footer>
  84. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.2</a> on Sat Oct 08 2016 21:42:26 GMT+0100 (BST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
  85. </footer>
  86. <script>prettyPrint();</script>
  87. <script src="scripts/linenumber.js"></script>
  88. </body>
  89. </html>