font.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. char *name;
  16. int width, height;
  17. 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 SUN8x16_IDX 4
  25. #define SUN12x22_IDX 5
  26. #define ACORN8x8_IDX 6
  27. #define MINI4x6_IDX 7
  28. extern struct font_desc font_vga_8x8,
  29. font_vga_8x16,
  30. font_pearl_8x8,
  31. font_vga_6x11,
  32. font_sun_8x16,
  33. font_sun_12x22,
  34. font_acorn_8x8,
  35. font_mini_4x6;
  36. /* Find a font with a specific name */
  37. extern struct font_desc *find_font(char *name);
  38. /* Get the default font for a specific screen size */
  39. extern struct font_desc *get_default_font(int xres, int yres);
  40. /* Max. length for the name of a predefined font */
  41. #define MAX_FONT_NAME 32
  42. #endif /* _VIDEO_FONT_H */