/usr/include/xview/font.h is in xviewg-dev 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | /* @(#)font.h 20.35 93/06/28 SMI */
/*
* (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents
* pending in the U.S. and foreign countries. See LEGAL NOTICE
* file for terms of the license.
*/
#ifndef xview_font_DEFINED
#define xview_font_DEFINED
/*
***********************************************************************
* Include files
***********************************************************************
*/
#include <xview/generic.h>
#ifdef OW_I18N
#include <xview/xv_i18n.h>
#endif /*OW_I18N*/
/*
***********************************************************************
* Definitions and Macros
***********************************************************************
*/
/*
* Public #defines
*/
#ifndef XV_ATTRIBUTES_ONLY
#ifdef OW_I18N
#define FONT_SET &xv_font_pkg
#define FONT FONT_SET
#else
#define FONT &xv_font_pkg
#endif /*OW_I18N*/
/*
* font family/style values available
*/
#define FONT_FAMILY_DEFAULT "FONT_FAMILY_DEFAULT"
#define FONT_FAMILY_DEFAULT_FIXEDWIDTH "FONT_FAMILY_DEFAULT_FIXEDWIDTH"
#define FONT_FAMILY_LUCIDA "FONT_FAMILY_LUCIDA"
#define FONT_FAMILY_LUCIDA_FIXEDWIDTH "FONT_FAMILY_LUCIDA_FIXEDWIDTH"
#define FONT_FAMILY_ROMAN "FONT_FAMILY_ROMAN"
#define FONT_FAMILY_SERIF "FONT_FAMILY_SERIF"
#define FONT_FAMILY_COUR "FONT_FAMILY_COUR"
#define FONT_FAMILY_CMR "FONT_FAMILY_CMR"
#define FONT_FAMILY_GALLENT "FONT_FAMILY_GALLENT"
#define FONT_FAMILY_HELVETICA "FONT_FAMILY_HELVETICA"
#define FONT_FAMILY_OLGLYPH "FONT_FAMILY_OLGLYPH"
#define FONT_FAMILY_OLCURSOR "FONT_FAMILY_OLCURSOR"
#ifdef OW_I18N
#define FONT_FAMILY_SANS_SERIF "FONT_FAMILY_SANS_SERIF"
#endif /*OW_I18N*/
#define FONT_STYLE_DEFAULT "FONT_STYLE_DEFAULT"
#define FONT_STYLE_NORMAL "FONT_STYLE_NORMAL"
#define FONT_STYLE_BOLD "FONT_STYLE_BOLD"
#define FONT_STYLE_ITALIC "FONT_STYLE_ITALIC"
#define FONT_STYLE_OBLIQUE "FONT_STYLE_OBLIQUE"
#define FONT_STYLE_BOLD_ITALIC "FONT_STYLE_BOLD_ITALIC"
#define FONT_STYLE_BOLD_OBLIQUE "FONT_STYLE_BOLD_OBLIQUE"
#define FONT_SIZE_DEFAULT -99
#define FONT_NO_SIZE -66
#define FONT_NO_SCALE -55
#define FONT_SCALE_DEFAULT -33
#endif /* ~XV_ATTRIBUTES_ONLY */
/*
* Private #defines
*/
#define FONT_ATTR(type, ordinal) ATTR(ATTR_PKG_FONT, type, ordinal)
#define FONT_QUAD_ATTR ATTR_TYPE(ATTR_BASE_INT, 4)
/*
***********************************************************************
* Typedefs, enumerations, and structs
***********************************************************************
*/
/*
* Public types
*/
#ifndef XV_ATTRIBUTES_ONLY
typedef Xv_opaque Xv_Font;
typedef Xv_opaque Xv_font;
#endif /* ~XV_ATTRIBUTES_ONLY */
typedef enum {
/*
* Public attributes.
*/
FONT_CHAR_WIDTH = FONT_ATTR(ATTR_CHAR, 1), /* G */
FONT_CHAR_HEIGHT = FONT_ATTR(ATTR_CHAR, 5), /* G */
#ifdef OW_I18N
FONT_CHAR_WIDTH_WC = FONT_ATTR(ATTR_WCHAR, 6), /* G */
FONT_CHAR_HEIGHT_WC = FONT_ATTR(ATTR_WCHAR, 7), /* G */
FONT_NAMES = FONT_ATTR(ATTR_OPAQUE, 26), /* C-G */
FONT_SET_SPECIFIER = FONT_ATTR(ATTR_STRING, 27), /* C-G */
#endif /*OW_I18N*/
FONT_DEFAULT_CHAR_HEIGHT
= FONT_ATTR(ATTR_NO_VALUE, 10), /* G */
FONT_DEFAULT_CHAR_WIDTH
= FONT_ATTR(ATTR_NO_VALUE, 15), /* G */
FONT_FAMILY = FONT_ATTR(ATTR_STRING, 20), /* C-G */
FONT_NAME = FONT_ATTR(ATTR_STRING, 25), /* C-G */
FONT_RESCALE_OF = FONT_ATTR(ATTR_OPAQUE_PAIR, 30), /* F-C */
FONT_SCALE = FONT_ATTR(ATTR_INT, 40), /* C-G */
FONT_SIZE = FONT_ATTR(ATTR_INT, 45), /* C-G */
FONT_SIZES_FOR_SCALE= ATTR(ATTR_PKG_FONT,
FONT_QUAD_ATTR, 50), /* C-S-G*/
FONT_STRING_DIMS = FONT_ATTR(ATTR_OPAQUE_PAIR, 55), /* G */
#ifdef OW_I18N
FONT_STRING_DIMS_WC = FONT_ATTR(ATTR_OPAQUE_PAIR, 56), /* G */
#endif /*OW_I18N*/
FONT_STYLE = FONT_ATTR(ATTR_STRING, 60), /* C-G */
FONT_TYPE = FONT_ATTR(ATTR_ENUM, 65), /* C-S-G */
FONT_PIXFONT = FONT_ATTR(ATTR_OPAQUE, 67), /* G */
FONT_INFO = FONT_ATTR(ATTR_OPAQUE, 80), /* G */
#ifdef OW_I18N
FONT_LOCALE = FONT_ATTR(ATTR_STRING, 68), /* C-G */
FONT_SET_ID = FONT_ATTR(ATTR_OPAQUE, 69), /* G */
FONT_COLUMN_WIDTH = FONT_ATTR(ATTR_NO_VALUE, 85), /* G */
#endif /*OW_I18N*/
/*
* Private attributes.
*/
FONT_HEAD = FONT_ATTR(ATTR_INT, 70), /* Key */
FONT_UNKNOWN_HEAD = FONT_ATTR(ATTR_INT, 75) /* Key */
} Font_attribute;
typedef enum {
FONT_TYPE_TEXT = 0,
FONT_TYPE_CURSOR = 1,
FONT_TYPE_GLYPH = 2
} Font_type;
#ifndef XV_ATTRIBUTES_ONLY
/*
* Got rid of pixfont struct
* It now exists in the private part where it will be allocated on demand
*/
typedef struct {
Xv_generic_struct parent_data;
Xv_opaque private_data;
/*
Xv_embedding embedding_data;
char *pixfont[2+(5*256)];
*/
} Xv_font_struct;
typedef struct {
int width, height;
} Font_string_dims;
#endif /* ~XV_ATTRIBUTES_ONLY */
/*
***********************************************************************
* Globals
***********************************************************************
*/
#ifndef XV_ATTRIBUTES_ONLY
extern Xv_pkg xv_font_pkg;
#endif /* ~XV_ATTRIBUTES_ONLY */
#endif /* ~xview_font_DEFINED */
|