libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

fonts.h (1634B)


      1 /*
      2  * fonts.h
      3  * libansilove 1.2.4
      4  * https://www.ansilove.org
      5  *
      6  * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus
      7  * All rights reserved.
      8  *
      9  * libansilove is licensed under the BSD 2-Clause License.
     10  * See LICENSE file for details.
     11  */
     12 
     13 #ifndef FONTS_H
     14 #define FONTS_H
     15 
     16 #include <stdbool.h>
     17 #include <stdint.h>
     18 
     19 struct fontStruct {
     20 	const uint8_t *font_data;
     21 	uint32_t width;
     22 	uint32_t height;
     23 	bool isAmigaFont;
     24 };
     25 
     26 void select_font(struct fontStruct *, int);
     27 
     28 extern const uint8_t font_pc_80x25[4096];
     29 extern const uint8_t font_pc_80x50[2048];
     30 extern const uint8_t font_pc_baltic[4096];
     31 extern const uint8_t font_pc_cyrillic[4096];
     32 extern const uint8_t font_pc_french_canadian[4096];
     33 extern const uint8_t font_pc_greek[4096];
     34 extern const uint8_t font_pc_greek_869[4096];
     35 extern const uint8_t font_pc_hebrew[4096];
     36 extern const uint8_t font_pc_icelandic[4096];
     37 extern const uint8_t font_pc_latin1[4096];
     38 extern const uint8_t font_pc_latin2[4096];
     39 extern const uint8_t font_pc_nordic[4096];
     40 extern const uint8_t font_pc_portuguese[4096];
     41 extern const uint8_t font_pc_russian[4096];
     42 extern const uint8_t font_pc_terminus[4096];
     43 extern const uint8_t font_pc_turkish[4096];
     44 
     45 extern const uint8_t font_amiga_microknight[4096];
     46 extern const uint8_t font_amiga_microknight_plus[4096];
     47 extern const uint8_t font_amiga_mosoul[4096];
     48 extern const uint8_t font_amiga_pot_noodle[4096];
     49 extern const uint8_t font_amiga_topaz_1200[4096];
     50 extern const uint8_t font_amiga_topaz_1200_plus[4096];
     51 extern const uint8_t font_amiga_topaz_500[4096];
     52 extern const uint8_t font_amiga_topaz_500_plus[4096];
     53 
     54 #endif /* FONTS_H */