文字,字符,图片终端打印, print something in terminal
Project description
terminal printer
在使用link等快捷方式,或者在其他目录调用主程序时,字体目录需要使用绝对路径,即需要指定程序所在绝对目录 (当然如果在主程序当前目录的话随意)
如果输出结果为乱码,说明该字体不支持这个字(出现问题一般都是中文,即中文字体库不完全) 当在终端打印图片时,终端字体越小,终端越大(目测高分屏显示效果比较理想,然而并没有尝试过),理论上显示的再现度越高(当初想在rmbp上试一下~~然而还没有机会)
主程序并不大,臃肿的是字体库,下一个版本再尝试调用系统字体库
中英文混合输入时字体宽度异常
计划将中文英文在同一行中分别输出,这将导致核心部分大面积重写(猜测)
github
Deploy
# 初始化字体库
$ terminalprint –init
# 使用
$ terminalprint -t linux
$ terminalprint target.jpg
Project details
Release history Release notifications | RSS feed
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.4.tar.gz
(5.7 kB
view details)
File details
Details for the file TerminalPrinter-1.1.4.tar.gz.
File metadata
- Download URL: TerminalPrinter-1.1.4.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1acb7b12231edee1b95f1e5aa76e42f2c0cbf549f44ecfa4c8db9cf30675c8c
|
|
| MD5 |
25c12723deb4f697ab3437ee76ee6366
|
|
| BLAKE2b-256 |
0974af77caab14e797f0f83888b74dc881fbd61aecbe111d8c19c9c7d5b4f987
|