This file is indexed.

/usr/include/libwmf/font.h is in libwmf-dev 0.2.8.4-10.6.

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
/* libwmf (<libwmf/font.h>): library for wmf conversion
   Copyright (C) 2001 Francis James Franklin

   The libwmf Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.

   The libwmf Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with the libwmf Library; see the file COPYING.  If not,
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */


#ifndef LIBWMF_FONT_H
#define LIBWMF_FONT_H

#include <libwmf/ipa.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _wmfFT_Mapping          wmfFT_Mapping;
typedef struct _wmfFT_CacheEntry       wmfFT_CacheEntry;

typedef struct _wmfGS_FontData         wmfGS_FontData;
typedef struct _wmfGS_FontInfo         wmfGS_FontInfo;

typedef struct _wmfXML_FontData        wmfXML_FontData;
typedef struct _wmfXML_FontInfo        wmfXML_FontInfo;

typedef struct _wmfFontmapData         wmfFontmapData;

typedef struct _wmfIPAFont             wmfIPAFont;

typedef void  (*wmfCharDrawer)  (wmfAPI*,wmfDrawText_t*);

extern void  wmf_ipa_font_init (wmfAPI*,wmfAPI_Options*);
extern void  wmf_ipa_font_map_gs (wmfAPI*,wmfGS_FontData*,char*);
extern void  wmf_ipa_font_map_xml (wmfAPI*,wmfXML_FontData*,char*);
extern void  wmf_ipa_font_map_set (wmfAPI*,wmfMap);
extern void  wmf_ipa_font_map (wmfAPI*,wmfFont*);
extern void  wmf_ipa_font_dir (wmfAPI*,char*);
extern float wmf_ipa_font_stringwidth (wmfAPI*,wmfFont*,char*);
extern char* wmf_ipa_font_lookup (wmfAPI*,char*);

extern void wmf_ipa_draw_text (wmfAPI*,wmfDrawText_t*,wmfCharDrawer);

struct _wmfFT_Mapping
{	char* name;
	char* mapping;

	FT_Encoding encoding;
	FT_Face     face;
};

struct _wmfFT_CacheEntry
{	char* name;
	char* path;

	FT_Face face;
};

struct _wmfGS_FontData
{	unsigned int max;
	unsigned int len;

	wmfGS_FontInfo* FI;
};

struct _wmfGS_FontInfo
{	char* name;
	char* alias;
};

struct _wmfXML_FontData
{	unsigned int max;
	unsigned int len;

	wmfXML_FontInfo* FI;
};

struct _wmfXML_FontInfo
{	char* format;
	char* metrics;
	char* glyphs;
	char* name;
	char* fullname;
	char* familyname;
	char* weight;
	char* version;
	char* alias;
};

struct _wmfFontmapData
{	char** fontdirs;

	wmfFontMap*    wmf; /* {0,*}-terminated list: wmf-font-name -> ps-font-name */
	wmfMapping*    sub; /* {0,*}-terminated list: wmf-font-name substring equiv */
	wmfFT_Mapping* ps;  /* {0,*}-terminated list: ps-font-name -> pfb-file-root */

	wmfFT_CacheEntry* cache; /* {0,*}-terminated list: path / font-face cache */

	wmfGS_FontData  GS; /* structure for ghostscript font info */
	wmfXML_FontData FD; /* structure for system font info */

	FT_Library Library;
};

struct _wmfIPAFont
{	char* ps_name;

	FT_Face ft_face;
};

/**
 * WMF_FONT_PSNAME(wmfFont* F) -> (char*) font name to use in postscript output
 */
#define WMF_FONT_PSNAME(F)      ((F)->user_data ? ((wmfIPAFont*) (F)->user_data)->ps_name : 0)

/**
 * WMF_FONT_FTFACE(wmfFont* F) -> (FT_Face) freetype(2) font face
 */
#define WMF_FONT_FTFACE(F)      ((F)->user_data ? ((wmfIPAFont*) (F)->user_data)->ft_face : 0)

#ifdef __cplusplus
}
#endif

#endif /* ! LIBWMF_FONT_H */