add ENABLE_VH in print_lines_ft

This commit is contained in:
cuu 2022-05-21 11:52:46 +00:00
parent 167b2f520e
commit c30acbcec5
2 changed files with 6 additions and 3 deletions

View File

@ -126,7 +126,7 @@ void init_printer() {
}
}
//default still FONT_MODE_0
//default still FONT_MODE_0, comment out below 4 lines to enable unicode printing
current_font.mode = FONT_MODE_0;
current_font.width = 8;
current_font.height = 16;

View File

@ -454,7 +454,7 @@ uint8_t print_lines_ft(CONFIG *cfg,int lines,int bf) {
abs(cfg->face->descender) * current_font.height / cfg->face->units_per_EM;
int dpx = 64;
FT_Matrix matrix;
ENABLE_VH;
while (left > 0) {
i = lastidx;
row_cnt = 0;
@ -593,6 +593,8 @@ uint8_t print_lines_ft(CONFIG *cfg,int lines,int bf) {
}
*/
}
DISABLE_VH;
}
uint8_t print_lines8(CONFIG *cfg,int lines,int backforward) {
@ -604,8 +606,9 @@ uint8_t print_lines8(CONFIG *cfg,int lines,int backforward) {
DISABLE_VH;
return 0;
}
if (cfg->font->mode == FONT_MODE_1 && cfg->face!=NULL) {
return print_lines_ft(cfg,0,0);
}
uint8_t i, j, k;