This file is indexed.

/usr/include/xview_private/font_impl.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
/*      @(#)font_impl.h 20.33 93/06/28 SMI      */

/***********************************************************************/
/*	                      font_impl.h			       */
/*	
 *	(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 font_impl_h_already_defined
#define font_impl_h_already_defined

#include <sys/types.h>
#include <sys/time.h>

#include <xview/pkg.h>
#include <pixrect/pixrect.h>
#include <pixrect/pixfont.h>
#include <xview/font.h>

#ifdef OW_I18N
#include <xview/xv_i18n.h>
#include <X11/Xresource.h>
#endif /*OW_I18N*/


#define	FONT_PRIVATE(font)	XV_PRIVATE(Font_info, Xv_font_struct, font)
#define	FONT_PUBLIC(font)	XV_PUBLIC(font)

#ifdef __STDC__
#define  FONT_STANDARD(font, object)	XV_OBJECT_TO_STANDARD(XV_PUBLIC(font), \
							 #font, object)
#else
#define  FONT_STANDARD(font, object)	XV_OBJECT_TO_STANDARD(XV_PUBLIC(font), \
							 "font", object)
#endif

#define FONT_PIXFONT_TO_PUBLIC(pixfont) \
		(((Pixfont_struct *)(pixfont))->public_self)

#define FONT_PIXFONT_STRUCT_TO_PIXFONT(pfs) (*((Pixfont **)pfs))

#define	FONT_PIX(font)		(Pixfont *)XV_PUBLIC(font)

#ifdef OW_I18N

/* definitions for font set file key words */
#define FS_DEF          "definition"
#define FS_DEF_LEN      strlen(FS_DEF)
 
#define FS_ALIAS        "alias"
#define FS_ALIAS_LEN    strlen(FS_ALIAS)
 
#define FS_SMALL_SIZE           "xv_font_set.small"
#define FS_MEDIUM_SIZE          "xv_font_set.medium"
#define FS_LARGE_SIZE           "xv_font_set.large"
#define FS_XLARGE_SIZE          "xv_font_set.extra_large"
#define FS_DEFAULT_FAMILY       "xv_font_set.default_family"
 
#endif /*OW_I18N*/

/***********************************************************************/
/*	        	Structures 				       */
/***********************************************************************/

typedef struct {
    char	*pixfont[2+(5*256)];
    Xv_Font	public_self;
}Pixfont_struct;

typedef struct family_definitions  {
    char	*family;
    char	*translated;
}Family_defs;

typedef struct style_definitions  {
    char	*style;
    char	*weight;
    char	*slant;
    char	*preferred_name;
}Style_defs;

typedef struct font_locale_info {
    char		*locale;

#ifdef OW_I18N
    XrmDatabase		db;
#endif /*OW_I18N*/

    int			small_size;
    int			medium_size;
    int			large_size;
    int			xlarge_size;

    Family_defs		*known_families;
    Style_defs		*known_styles;

    char		*default_family;
    char		*default_fixedwidth_family;
    char		*default_style;
    char		*default_weight;
    char		*default_slant;
    int			default_scale;
    char		*default_scale_str;
    short		default_size;

    char		*default_small_font;
    char		*default_medium_font;
    char		*default_large_font;
    char		*default_xlarge_font;

    struct font_locale_info    *next;
} Font_locale_info;

typedef struct font_info {
    Xv_Font	 	 public_self;	/* back pointer to public struct */
    Attr_pkg		 pkg;
    Xv_opaque	 	 parent;	/* back pointer to screen */
    Xv_opaque	 	 display;
    Xv_opaque	 	 server;
    struct font_info	*next;
    
#ifdef OW_I18N
    char		**names;
    char                *specifier;
    char		*name;
#else
    /* family, style and point-size */
    char		*name;
#endif /*OW_I18N*/
    Font_locale_info	*locale_info;
    char		*foundry;
    char		*family;
    char		*style;
    
    char		*weight;
    char		*slant;
    char		*setwidthname;
    char		*addstylename;

    int			 scale;
    
    int			 size; /* for this scale */
    int			 small_size;
    int			 medium_size;
    int			 large_size;
    int			 extra_large_size;
    
    int			 ref_count;

    Font_type	 	 type;	/* text, glyph or cursor */

    char		*pixfont; /* pixfont for sunview compat */
    int			def_char_width;
    int			def_char_height;

    /* interface to Xlib */
#ifdef OW_I18N
    XFontSet             set_id;
    XFontStruct          **font_structs;
    int			 column_width;
#endif /*OW_I18N*/
    long unsigned	 xid;
    Xv_opaque 		 x_font_info;

    /* flags */
    unsigned		 has_glyph_prs:1;
    unsigned		 overlapping_chars:1;
} Font_info;

/* from font.c */
Pkg_private Xv_opaque    font_set_avlist();
Pkg_private Xv_opaque    font_get_attr();
Pkg_private int 	 font_init();
Pkg_private int 	 font_destroy_struct();
Pkg_private Xv_object 	 font_find_font();

#endif