font.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * font.h -- `Soft' font definitions
  3. *
  4. * Created 1995 by Geert Uytterhoeven
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file COPYING in the main directory of this archive
  8. * for more details.
  9. */
  10. #ifndef _VIDEO_FONT_H
  11. #define _VIDEO_FONT_H
  12. #include <linux/types.h>
  13. struct font_desc {
  14. int idx;
  15. const char *name;
  16. int width, height;
  17. const void *data;
  18. int pref;
  19. };
  20. #define VGA8x8_IDX 0
  21. #define VGA8x16_IDX 1
  22. #define PEARL8x8_IDX 2
  23. #define VGA6x11_IDX 3
  24. #define FONT7x14_IDX 4
  25. #define FONT10x18_IDX 5
  26. #define SUN8x16_IDX 6
  27. #define SUN12x22_IDX 7
  28. #define ACORN8x8_IDX 8
  29. #define MINI4x6_IDX 9
  30. #define FONT6x10_IDX 10
  31. extern const struct font_desc font_vga_8x8,
  32. font_vga_8x16,
  33. font_pearl_8x8,
  34. font_vga_6x11,
  35. font_7x14,
  36. font_10x18,
  37. font_sun_8x16,
  38. font_sun_12x22,
  39. font_acorn_8x8,
  40. font_mini_4x6,
  41. font_6x10;
  42. /* Find a font with a specific name */
  43. extern const struct font_desc *find_font(const char *name);
  44. /* Get the default font for a specific screen size */
  45. extern const struct font_desc *get_default_font(int xres, int yres,
  46. u32 font_w, u32 font_h);
  47. /* Max. length for the name of a predefined font */
  48. #define MAX_FONT_NAME 32
  49. #endif /* _VIDEO_FONT_H */