/* * 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 void *data; int pref; }; #define MPLUS_1MN_MEDIUM_10x14_IDX 0 #define MPLUS_1MN_REGULAR_12x17_IDX 1 #define MPLUS_1MN_REGULAR_14x19_IDX 2 #define MPLUS_1MN_REGULAR_16x22_IDX 3 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 */