/* * Font description structures * * Copyright (C) 2019 Patrick McDermott * * This file is part of fbcon2png. * * fbcon2png is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * fbcon2png is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with fbcon2png. If not, see . */ #ifndef LINUX_FONT_H #define LINUX_FONT_H struct font_desc { int idx; const char *name; int width; int height; const unsigned char *data; int pref; }; #define VGA8x8_IDX 0 #define VGA8x16_IDX 1 #define VGA6x11_IDX 2 #define FONT7x14_IDX 3 #define SUN8x16_IDX 4 #define SUN12x22_IDX 5 #define FONT10x18_IDX 6 #define ACORN8x8_IDX 7 #define PEARL8x8_IDX 8 #define MINI4x6_IDX 9 #define FONT6x10_IDX 10 #define MPLUS_1MN_MEDIUM_10x14_IDX 11 #define MPLUS_1MN_REGULAR_12x17_IDX 12 #define MPLUS_1MN_REGULAR_14x19_IDX 13 #define MPLUS_1MN_REGULAR_16x22_IDX 14 extern const struct font_desc font_vga_8x8; extern const struct font_desc font_vga_8x16; extern const struct font_desc font_vga_6x11; extern const struct font_desc font_7x14; extern const struct font_desc font_sun_8x16; extern const struct font_desc font_sun_12x22; extern const struct font_desc font_10x18; extern const struct font_desc font_acorn_8x8; extern const struct font_desc font_pearl_8x8; extern const struct font_desc font_mini_4x6; extern const struct font_desc font_6x10; extern const struct font_desc font_mplus_1mn_medium_10x14; extern const struct font_desc font_mplus_1mn_regular_12x17; extern const struct font_desc font_mplus_1mn_regular_14x19; extern const struct font_desc font_mplus_1mn_regular_16x22; #endif /* LINUX_FONT_H */