4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
35 * Number of chars encoded in font data. Bundled fonts are generated
36 * from bdf files and this constant depends on the data in the bdf file.
37 * If more entries are added to the bdf files, then this number must be
40 #define ENCODED_CHARS 256
45 uchar_t
*char_ptr
[ENCODED_CHARS
];
49 typedef struct bitmap_data
{
53 unsigned char **encoding
;
58 bitmap_data_t
*(*fontload
)(char *);
61 extern struct fontlist fonts
[];
63 #define DEFAULT_FONT_DATA font_data_12x22
64 #define BORDER_PIXELS 10 /* space from screen border */
68 extern bitmap_data_t font_data_12x22
;
69 extern bitmap_data_t font_data_8x16
;
70 extern bitmap_data_t font_data_7x14
;
71 extern bitmap_data_t font_data_6x10
;
73 void set_font(struct font
*, short *, short *, short, short);
74 void font_bit_to_pix4(struct font
*, uint8_t *, uchar_t
, uint8_t, uint8_t);
75 void font_bit_to_pix8(struct font
*, uint8_t *, uchar_t
, uint8_t, uint8_t);
76 void font_bit_to_pix24(struct font
*, uint32_t *, uchar_t
, uint32_t, uint32_t);
82 #endif /* !_SYS_FONT_H */