| version 1.12 | | version 1.13 |
|---|
| | |
| * Definitions for graphics lib. | | * Definitions for graphics lib. |
| * | | * |
| * $Log$ | | * $Log$ |
| | | * Revision 1.13 1999/12/15 06:07:20 donut |
| | | * added font->ft_aw field (average width) since ft_w is usually too large on proportional fonts |
| | | * |
| * Revision 1.12 1999/11/21 13:00:09 donut | | * Revision 1.12 1999/11/21 13:00:09 donut |
| * Changed screen_mode format. Now directly encodes res into a 32bit int, rather than using arbitrary values. | | * Changed screen_mode format. Now directly encodes res into a 32bit int, rather than using arbitrary values. |
| * | | * |
| | |
| #endif | | #endif |
| } grs_bitmap; | | } grs_bitmap; |
| | | |
| //new font structure, which does not suffer from the inability to add new items (as long as they are added at the end) | | //new font structure, which does not suffer from the inability to add new items |
| typedef struct _new_grs_font { | | typedef struct _new_grs_font { |
| short ft_w,ft_h; // Width and height in pixels | | short ft_w,ft_h; // Width and height in pixels |
| | | float ft_aw; // "Average" width (on proportional fonts, ft_w is usually much larger than normal) |
| short ft_flags; // Proportional? | | short ft_flags; // Proportional? |
| short ft_baseline; // | | short ft_baseline; // |
| ubyte ft_minchar, // The first and last chars defined by | | ubyte ft_minchar, // The first and last chars defined by |