Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit b4a9b00d authored by deuce's avatar deuce

Fix documentation and handling of 8x14 custom fonts.

CTerm (and therefore SyncTERM 1.0) required an extra two ignored garbage
bytes in the font data.
parent 2e335fe7
......@@ -1322,7 +1322,7 @@ static void do_ansi(struct cterminal *cterm, char *retbuf, size_t retsize, int *
cterm->font_size=4096;
break;
case 1:
cterm->font_size=3586;
cterm->font_size=3584;
break;
case 2:
cterm->font_size=2048;
......@@ -2392,7 +2392,7 @@ CIOLIBEXPORT char* CIOLIBCALL cterm_write(struct cterminal * cterm, const void *
FREE_AND_NULL(conio_fontdata[cterm->font_slot].desc);
conio_fontdata[cterm->font_slot].desc=strdup("Remote Defined Font");
break;
case 3586:
case 3584:
FREE_AND_NULL(conio_fontdata[cterm->font_slot].eight_by_fourteen);
conio_fontdata[cterm->font_slot].eight_by_fourteen=buf2;
FREE_AND_NULL(conio_fontdata[cterm->font_slot].desc);
......
......@@ -142,7 +142,7 @@ CSI = [ p1 [ ; p2 ] ] {
of predefined fonts) p2 indicates font size according to the
following table:
0 - 8x16 font, 4096 bytes.
1 - 8x14 font, 3586 bytes.
1 - 8x14 font, 3584 bytes.
2 - 8x8 font, 2048 bytes.
SOURCE: CTerm only.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment