Title: Set text/printing darkness via code · python-escpos/python-escpos · Discussion #509 · GitHub
Open Graph Title: Set text/printing darkness via code · python-escpos/python-escpos · Discussion #509
X Title: Set text/printing darkness via code · python-escpos/python-escpos · Discussion #509
Description: Set text/printing darkness via code
Open Graph Description: Hey Folks, Firstly, very thankful for this package, it worked out the box with my second hand TM-TM88IV and i've been having a blast! I've replaced the serial interface with USB and I was wondering...
X Description: Hey Folks, Firstly, very thankful for this package, it worked out the box with my second hand TM-TM88IV and i've been having a blast! I've replaced the serial interface with USB and I was w...
Opengraph URL: https://github.com/python-escpos/python-escpos/discussions/509
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Set text/printing darkness via code","text":"\u003cp dir=\"auto\"\u003eHey Folks,\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFirstly, very thankful for this package, it worked out the box with my second hand TM-TM88IV and i've been having a blast!\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI've replaced the serial interface with USB and I was wondering if there's a way to set the darkness of the prints via \u003ccode class=\"notranslate\"\u003epython-escpos\u003c/code\u003e?\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI'm 99% sure when it had the serial interface, I was able to change these in the settings on the printer with the feed button, but those options seem to have gone.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eEither way, it'd be cool if I could have different \u003ccode class=\"notranslate\"\u003e.text()\u003c/code\u003e calls have different 'darknesses'.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThanks for any help!\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eHi \u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/CiaranEvans/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/CiaranEvans\"\u003e@CiaranEvans\u003c/a\u003e and thanks for your words!\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe \u003ca href=\"https://github.com/python-escpos/python-escpos/blob/master/src/escpos/escpos.py#L671\"\u003eescpos.set()\u003c/a\u003e method has a \u003ccode class=\"notranslate\"\u003edensity\u003c/code\u003e param ranging from 0 to 8. Is it what you are looking for?\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eGreetings!\u003c/p\u003e","upvoteCount":1,"url":"https://github.com/python-escpos/python-escpos/discussions/509#discussioncomment-5482225"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:08b3a8d6-ab19-166e-83ea-c1920c56bbb3 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | C9FA:49C5:8E2D50:CF268E:6A4E156A |
| html-safe-nonce | b7bdcc4ac5a027412cc73180419ca9598dccd5399e9f1036219ad070c8d9265b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUZBOjQ5QzU6OEUyRDUwOkNGMjY4RTo2QTRFMTU2QSIsInZpc2l0b3JfaWQiOiI3NDY4NDUzMzIyMzk2ODQ5NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 158650b7d6de48dc32f7cb5abbf96ce385545c8d8930d84ed435c4d830d1f7f6 |
| hovercard-subject-tag | discussion:5022362 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/python-escpos/python-escpos/509/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/a2f5e50c41f4d2a13e6e69ad58d7fe6f77a4da8e43b6424728dc81190b6de819/python-escpos/python-escpos/discussions/509 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a2f5e50c41f4d2a13e6e69ad58d7fe6f77a4da8e43b6424728dc81190b6de819/python-escpos/python-escpos/discussions/509 |
| og:image:alt | Hey Folks, Firstly, very thankful for this package, it worked out the box with my second hand TM-TM88IV and i've been having a blast! I've replaced the serial interface with USB and I was wondering... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-escpos/python-escpos git https://github.com/python-escpos/python-escpos.git |
| octolytics-dimension-user_id | 16302939 |
| octolytics-dimension-user_login | python-escpos |
| octolytics-dimension-repository_id | 32363483 |
| octolytics-dimension-repository_nwo | python-escpos/python-escpos |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32363483 |
| octolytics-dimension-repository_network_root_nwo | python-escpos/python-escpos |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ea9187571e3edc5f2780f750631138669441ca50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width