goorockey / node-wechat-terminal

Wechat client in terminal
MIT License
98 stars 16 forks source link

The QR Code cannot be scanned #7

Open StevenQu opened 8 years ago

StevenQu commented 8 years ago

The QR code generated by the wechat-terminal cannot be scanned. I decoded the QR code and it's said no barcode is included.

ethanhe42 commented 8 years ago

same problem

goorockey commented 8 years ago

any screenshot?

LuciusCao commented 7 years ago

For your information, I use zsh with oh-my-zsh. I changed my font to Hack regular 14pt, a powerline font in order to support agnoster theme. And I get the following QR-code:

2016-12-21 10 52 47

When I change my font to monoca 12pt, the QR-code looks like:

2016-12-21 10 56 00

Any suggestion on the font and size?

goorockey commented 7 years ago

The qrcode we got is generated with unicode char. See here

var platte= {
                WHITE_ALL: '\u2588',
                WHITE_BLACK: '\u2580',
                BLACK_WHITE: '\u2584',
                BLACK_ALL: ' ',
};

And these unicode chars have different padding in different fonts, which makes the qrcode we got disorted.

LIMU2 commented 5 years ago

windows下把终端字体改一下就ok,我改成12号