mirror of
https://git.code.sf.net/p/zint/code
synced 2026-07-31 02:19:50 +00:00
font_wip branch: new WIP font stuff using "stb_truetype.h",
not implemented for EAN/UPC, not fully tested
This commit is contained in:
+1
-1
@@ -864,7 +864,7 @@ INTERNAL int z_hrt_cpy_iso8859_1(struct zint_symbol *symbol, const unsigned char
|
||||
|
||||
for (i = 0, j = 0; i < length && j < text_size; i++) {
|
||||
if (z_isascii(source[i])) {
|
||||
symbol->text[j++] = z_iscntrl(source[i]) ? ' ' : source[i];
|
||||
symbol->text[j++] = z_iscntrl(source[i]) && source[i] != '\n' ? ' ' : source[i]; /* Leave newlines */
|
||||
} else if (source[i] < 0xC0) {
|
||||
if (source[i] < 0xA0) { /* 0x80-0x9F not valid ISO/IEC 8859-1 */
|
||||
symbol->text[j++] = ' ';
|
||||
|
||||
Reference in New Issue
Block a user