# thermatext fancy name, QL-570 text formater ### TODO - use as printer - works, but cant detect the length of text, will output a set (page?) length - fix missing font defentions - fail to take into account letter width - telegram bot (!) ## CLI `sudo brother_ql -b pyusb --model QL-570 -p usb://0x04f9:0x2028/000M12345678 print -l 62 logo.png` ## python python tries to detect letter width and maximise it to fit the label printer constraints (62mm width) `python thermatext.py "label to print"` ## inkscape [gptgist](https://gist.github.com/5shekel/98cc4898a1a8c7a5a1b305acc01d4326) inskcape user extension path `/home/${USER}/.config/inkscape/extensions` symbolic link the dir fro here to the inkscape extension `ln -s /home/${USER}/yair/thermatext/inkscape /home/${USER}/.config/inkscape/extensions/thermatext` then check ```bash find ~/.config/inkscape/ -type l ``` takes from the [inkscape-silhouette](https://github.com/fablabnbg/inkscape-silhouette) extension, as in, how to install. ```bash $ git clone https://github.com/fablabnbg/inkscape-silhouette Cloning into 'inkscape-silhouette'... remote: Enumerating objects: 2764, done. remote: Counting objects: 100% (795/795), done. remote: Compressing objects: 100% (364/364), done. remote: Total 2764 (delta 483), reused 657 (delta 416), pack-reused 1969 Receiving objects: 100% (2764/2764), 8.53 MiB | 3.64 MiB/s, done. Resolving deltas: 100% (1786/1786), done. $ cd inkscape-silhouette/ $ make install-local mkdir -p locale mkdir -p /home/devdesk/.config/inkscape/extensions cp -r silhouette /home/devdesk/.config/inkscape/extensions install -m 755 *silhouette*.py /home/devdesk/.config/inkscape/extensions install -m 644 *.inx /home/devdesk/.config/inkscape/extensions cp -r locale /home/devdesk/.config/inkscape/extensions mkdir -p /home/devdesk/.config/inkscape/templates install -m 644 templates/*.svg /home/devdesk/.config/inkscape/templates ```