2180 {
2181 unsigned long lineno = 0;
2183
2186
2187
2190
2195 p->memory = extmemory;
2196
2198
2200 (
void *)
p, &lineno );
2203
2205 {
2206
2207
2208
2210 p->font->monowidth =
p->font->bbx.width;
2211
2212
2213
2214 if (
p->cnt !=
p->font->glyphs_used +
p->font->unencoded_used )
2215 {
2217 p->font->glyphs_used +
p->font->unencoded_used ));
2218 }
2219
2220
2221
2222 if (
p->opts->correct_metrics != 0 &&
2223 (
p->font->glyphs_used > 0 ||
p->font->unencoded_used > 0 ) )
2224 {
2225 if (
p->maxrb -
p->minlb !=
p->font->bbx.width )
2226 {
2228 p->font->bbx.width,
p->maxrb -
p->minlb ));
2229 p->font->bbx.width = (
unsigned short)(
p->maxrb -
p->minlb );
2230 }
2231
2232 if (
p->font->bbx.x_offset !=
p->minlb )
2233 {
2235 p->font->bbx.x_offset,
p->minlb ));
2236 p->font->bbx.x_offset =
p->minlb;
2237 }
2238
2239 if (
p->font->bbx.ascent !=
p->maxas )
2240 {
2242 p->font->bbx.ascent,
p->maxas ));
2243 p->font->bbx.ascent =
p->maxas;
2244 }
2245
2246 if (
p->font->bbx.descent !=
p->maxds )
2247 {
2249 p->font->bbx.descent,
p->maxds ));
2250 p->font->bbx.descent =
p->maxds;
2251 p->font->bbx.y_offset = (
short)( -
p->maxds );
2252 }
2253
2254 if (
p->maxas +
p->maxds !=
p->font->bbx.height )
2255 {
2257 p->font->bbx.height,
p->maxas +
p->maxds ));
2258 p->font->bbx.height = (
unsigned short)(
p->maxas +
p->maxds );
2259 }
2260
2263 }
2264 }
2265
2267 {
2268
2270 {
2271
2275 }
2276 else
2277 {
2278
2282 }
2283 }
2284
2286 {
2287
2289
2290 if (
p->font->comments_len > 0 )
2291 {
2293 p->font->comments_len,
2294 p->font->comments_len + 1 ) )
2296
2297 p->font->comments[
p->font->comments_len] = 0;
2298 }
2299 }
2302
2304
2307 {
2309
2311
2314 }
2315
2317
2320
2322
2324
2326 }
static void _bdf_list_init(_bdf_list_t *list, FT_Memory memory)
static const bdf_options_t _bdf_opts
static FT_Error _bdf_readstream(FT_Stream stream, _bdf_line_func_t callback, void *client_data, unsigned long *lno)
static FT_Error _bdf_parse_start(char *line, unsigned long linelen, unsigned long lineno, void *call_data, void *client_data)
static void _bdf_list_done(_bdf_list_t *list)
bdf_free_font(bdf_font_t *font)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
#define FT_ERROR(varformat)
#define FT_TRACE2(varformat)
#define FT_RENEW_ARRAY(ptr, curcnt, newcnt)