﻿{"id":137,"date":"2010-05-25T00:47:30","date_gmt":"2010-05-24T16:47:30","guid":{"rendered":"http:\/\/nick.workao.org\/?p=137"},"modified":"2010-05-25T00:47:30","modified_gmt":"2010-05-24T16:47:30","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e5%b9%b6%e5%8f%a3%e6%8e%a7%e5%88%b6%e6%89%93%e5%8d%b0%e6%9c%ba%e6%89%93%e5%8d%b0%e7%9a%84%e5%ad%97%e4%bd%93%e5%a4%a7%e5%b0%8f","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/other\/137","title":{"rendered":"\u5982\u4f55\u4f7f\u7528\u5e76\u53e3\u63a7\u5236\u6253\u5370\u673a\u6253\u5370\u7684\u5b57\u4f53\u5927\u5c0f"},"content":{"rendered":"<p>These should work on most DMPs especially EPSON ones.\nBasically  there are 3 font sizes built into the printer firmware.<\/p>\n<p>1) Normal size<\/p>\n<p>2) Large size &#8211; Use chr(14)<\/p>\n<p>Eg; Print #1, chr(14); &#8220;ABCDE&#8221;<\/p>\n<p>Will print ABCDE in large sized  font. To revert back to normal size you  can use chr(18)<\/p>\n<p>Eg; Print #1, chr(14); &#8220;ABCDE&#8221;; chr(18); &#8220;XYZ&#8221;<\/p>\n<p>Will print ABCDE in large sized  font and XYZ in normal sized font.<\/p>\n<p>3) Condensed &#8211; Use chr(15)<\/p>\n<p>Eg; Print #1, chr(15); &#8220;ABCDE&#8221;<\/p>\n<p>Will print ABCDE in condensed font. To revert back to normal size you  can use chr(18)<\/p>\n<p>Eg; Print #1, chr(15); &#8220;ABCDE&#8221;; chr(18); &#8220;XYZ&#8221;<\/p>\n<p>Will print ABCDE in condensed font and XYZ in normal sized font.<\/p>\n<p>This is all that I know.<\/p>\n<p>Regarding pagesize, there are specific codes. These may be found in the  Printer manual.<\/p>\n<p>As far as I am concerned, in the progrmme I count the number of lines  and send a page eject (chr(12)) when required. For example if the length  of paper is 12&#8243; and you are printing @ 6 lines per inch with 1&#8243; margin  on top and bottom, you can print 60 line on a sheet. After 60 lines you  give a page eject to start the new page.<\/p>\n<p><strong>1. How can i give blank line between lines ? (IF i need one  blank line)<\/strong><\/p>\n<p>Print #1, vbnewline<\/p>\n<p><strong> 2. Suppose my  paper width is 9 inches,  How many characters to  be printed in one line ? (horizontal line)<\/strong><\/p>\n<p>Depends on the font size. Normally it is 10 cpi. So after leaving  1 inch margin on left and right it will be 7*10 = 70 characters.<\/p>","protected":false},"excerpt":{"rendered":"<p>These should work on most DMPs especially EPSON ones. Basically there are 3 font sizes built into th&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[81,82,80],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-other","tag-81","tag-82","tag-80"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":2,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":139,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions\/139"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}