Skip to main content

文字,字符,图片终端打印, print something in terminal

Project description

terminal printer

在使用link等快捷方式,或者在其他目录调用主程序时,字体目录需要使用绝对路径,即需要指定程序所在绝对目录 (当然如果在主程序当前目录的话随意)

如果输出结果为乱码,说明该字体不支持这个字(出现问题一般都是中文,即中文字体库不完全) 当在终端打印图片时,终端字体越小,终端越大(目测高分屏显示效果比较理想,然而并没有尝试过),理论上显示的再现度越高(当初想在rmbp上试一下~~然而还没有机会)

主程序并不大,臃肿的是字体库,下一个版本再尝试调用系统字体库

  • 中英文混合输入时字体宽度异常

  • 计划将中文英文在同一行中分别输出,这将导致核心部分大面积重写(猜测)

github

Deploy

# 初始化字体库

$ terminalprint –init

# 使用

$ terminalprint -t linux

$ terminalprint target.jpg

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TerminalPrinter-1.1.3.tar.gz (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page