ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit c0f11a3b989e883123b2dc163f6b40551a38cb23
parent ed4733b2bd5f786ccf700ea746658feda9173523
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 18 Oct 2018 14:18:05 +0200

Add new fonts include file, to map font names to macros

Diffstat:
Asrc/fonts.h | 94+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+), 0 deletions(-)

diff --git a/src/fonts.h b/src/fonts.h @@ -0,0 +1,94 @@ +// +// config.h +// AnsiLove/C +// +// Copyright (c) 2011-2018 Stefan Vogt, Brian Cassidy, and Frederic Cambus. +// All rights reserved. +// +// This source code is licensed under the BSD 2-Clause License. +// See the LICENSE file for details. +// + +#define FONTS 38 + +char *fonts[] = { + "cp737", /* Greek */ + "cp775", /* Baltic */ + "cp850", /* Latin 1 */ + "cp852", /* Latin 2 */ + "cp855", /* Cyrillic */ + "cp857", /* Turkish */ + "cp860", /* Portuguese */ + "cp861", /* Icelandic */ + "cp862", /* Hebrew */ + "cp863", /* French-canadian */ + "cp865", /* Nordic */ + "cp866", /* Russian */ + "cp869", /* Greek */ + "80x25", + "80x50", + "greek", + "baltic", + "latin1", + "latin2", + "cyrillic", + "turkish", + "portuguese", + "icelandic", + "hebrew", + "french-canadian", + "nordic", + "russian", + "greek-869", + "terminus", + "amiga", + "microknight", + "microknight+", + "mosoul", + "pot-noodle", + "topaz", + "topaz+", + "topaz500", + "topaz500+" +}; + +int fontsId[] = { + ANSILOVE_FONT_CP737, /* Greek */ + ANSILOVE_FONT_CP775, /* Baltic */ + ANSILOVE_FONT_CP850, /* Latin 1 */ + ANSILOVE_FONT_CP852, /* Latin 2 */ + ANSILOVE_FONT_CP855, /* Cyrillic */ + ANSILOVE_FONT_CP857, /* Turkish */ + ANSILOVE_FONT_CP860, /* Portuguese */ + ANSILOVE_FONT_CP861, /* Icelandic */ + ANSILOVE_FONT_CP862, /* Hebrew */ + ANSILOVE_FONT_CP863, /* French-canadian */ + ANSILOVE_FONT_CP865, /* Nordic */ + ANSILOVE_FONT_CP866, /* Russian */ + ANSILOVE_FONT_CP869, /* Greek */ + ANSILOVE_FONT_CP437, /* IBM PC 80x25 */ + ANSILOVE_FONT_CP437_80x50, /* IBM PC 80x50 */ + ANSILOVE_FONT_CP737, /* Greek */ + ANSILOVE_FONT_CP775, /* Baltic */ + ANSILOVE_FONT_CP850, /* Latin 1 */ + ANSILOVE_FONT_CP852, /* Latin 2 */ + ANSILOVE_FONT_CP855, /* Cyrillic */ + ANSILOVE_FONT_CP857, /* Turkish */ + ANSILOVE_FONT_CP860, /* Portuguese */ + ANSILOVE_FONT_CP861, /* Icelandic */ + ANSILOVE_FONT_CP862, /* Hebrew */ + ANSILOVE_FONT_CP863, /* French-canadian */ + ANSILOVE_FONT_CP865, /* Nordic */ + ANSILOVE_FONT_CP866, /* Russian */ + ANSILOVE_FONT_CP869, /* Greek */ + ANSILOVE_FONT_TERMINUS, + ANSILOVE_FONT_TOPAZ, /* Alias: amiga */ + ANSILOVE_FONT_MICROKNIGHT, + ANSILOVE_FONT_MICROKNIGHT_PLUS, + ANSILOVE_FONT_MOSOUL, + ANSILOVE_FONT_POT_NOODLE, + ANSILOVE_FONT_TOPAZ, + ANSILOVE_FONT_TOPAZ_PLUS, + ANSILOVE_FONT_TOPAZ500, + ANSILOVE_FONT_TOPAZ500_PLUS +};