pklaus / brother_ql_web

A Python-based web service to print labels on Brother QL label printers. Based on brother_ql: https://github.com/pklaus/brother_ql
GNU General Public License v3.0
254 stars 124 forks source link

Fonts #18

Closed jmcwhirter closed 4 years ago

jmcwhirter commented 5 years ago

I can't start the web server with no parameters, per the instructions. I also cannot start the server when I supply a font-folder parameter. Same error.

deprecation warning: brother_ql.devicedependent is deprecated and will be removed in a future release
Traceback (most recent call last):
  File "./brother_ql_web.py", line 296, in <module>
    main()
  File "./brother_ql_web.py", line 271, in main
    FONTS = get_fonts()
  File "/Users/justindm/Development/printer/brother_ql_web/font_helpers.py", line 25, in get_fonts
    styles = parts[2].split('=')[1].split(',')
IndexError: list index out of range

I manually run fc-scan --format "%{file}:%{family}:style=%{style}\n" /my/directory/Fonts and get about 40 lines.

v8cheeseburger commented 4 years ago

I had this as well.. got a pull request to handle it..

https://github.com/pklaus/brother_ql_web/pull/24

pklaus commented 4 years ago

Thanks for reporting this. Sorry it took me so long to fix it.