306 {
309 FT_Service_PsCMaps psnames;
313
317
318
319 face->root.num_faces = 1;
320
322 face->psnames = psnames;
323
325 "psaux" );
328 {
329 FT_ERROR((
"T1_Face_Init: cannot access `psaux' module\n" ));
332 }
333
335 "pshinter" );
336
338
339
343
344
345 if ( face_index < 0 )
347
348
349 if ( ( face_index & 0xFFFF ) > 0 )
350 {
351 FT_ERROR((
"T1_Face_Init: invalid face index\n" ));
354 }
355
356
357
358
359
360
361 {
363
364
366 root->face_index = 0;
367
372
373 if (
info->is_fixed_pitch )
375
378
379
380
381
382
383
384
385
386
387 root->family_name =
info->family_name;
389
390 if (
root->family_name )
391 {
392 char* full =
info->full_name;
393 char* family =
root->family_name;
394
395
396 if ( full )
397 {
399
400
401 while ( *full )
402 {
403 if ( *full == *family )
404 {
405 family++;
406 full++;
407 }
408 else
409 {
410 if ( *full == ' ' || *full == '-' )
411 full++;
412 else if ( *family == ' ' || *family == '-' )
413 family++;
414 else
415 {
417
418 if ( !*family )
419 root->style_name = full;
420 break;
421 }
422 }
423 }
424
425 if ( the_same )
426 root->style_name = (
char *)
"Regular";
427 }
428 }
429 else
430 {
431
434 }
435
436 if ( !
root->style_name )
437 {
440 else
441
442 root->style_name = (
char *)
"Regular";
443 }
444
445
446 root->style_flags = 0;
447 if (
info->italic_angle )
450 {
454 }
455
456
457 root->num_fixed_sizes = 0;
459
462
465
466
467 if ( !
root->units_per_EM )
468 root->units_per_EM = 1000;
469
472
476
477
478 root->max_advance_width =
480 {
482
483
485
486
489 else
491 }
492
493 root->max_advance_height =
root->height;
494
497 }
498
499 {
501
502
503 if ( psnames )
504 {
508
509
511
512
515 charmap.
encoding = FT_ENCODING_UNICODE;
516
522
523
526
528 {
530 charmap.
encoding = FT_ENCODING_ADOBE_STANDARD;
533 break;
534
536 charmap.
encoding = FT_ENCODING_ADOBE_EXPERT;
538 clazz = cmap_classes->
expert;
539 break;
540
542 charmap.
encoding = FT_ENCODING_ADOBE_CUSTOM;
544 clazz = cmap_classes->
custom;
545 break;
546
548 charmap.
encoding = FT_ENCODING_ADOBE_LATIN_1;
551 break;
552
553 default:
554 ;
555 }
556
557 if ( clazz )
559 }
560 }
561
564 }
#define TT_MS_ID_UNICODE_CS
#define TT_PLATFORM_MICROSOFT
#define FT_STYLE_FLAG_ITALIC
#define FT_FACE_FLAG_SCALABLE
#define FT_FACE_FLAG_HINTER
#define FT_FACE_FLAG_FIXED_WIDTH
struct FT_FaceRec_ * FT_Face
#define FT_FACE_FLAG_GLYPH_NAMES
#define FT_FACE_FLAG_MULTIPLE_MASTERS
#define FT_STYLE_FLAG_BOLD
#define FT_FACE_FLAG_HORIZONTAL
#define FT_ERROR(varformat)
#define FT_TRACE2(varformat)
FT_BEGIN_HEADER typedef signed long FT_Pos
#define FT_FACE_LIBRARY(x)
FT_CMap_New(FT_CMap_Class clazz, FT_Pointer init_data, FT_CharMap charmap, FT_CMap *acmap)
FT_Get_Module_Interface(FT_Library library, const char *mod_name)
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLenum const GLfloat * params
struct PSAux_ServiceRec_ * PSAux_Service
T1_CMap_Classes t1_cmap_classes
T1_EncodingType encoding_type
T1_Compute_Max_Advance(T1_Face face, FT_Pos *max_advance)
T1_Open_Face(T1_Face face)
@ T1_ENCODING_TYPE_ISOLATIN1
@ T1_ENCODING_TYPE_STANDARD
@ T1_ENCODING_TYPE_EXPERT
#define TT_ADOBE_ID_EXPERT
#define TT_ADOBE_ID_STANDARD
#define TT_PLATFORM_ADOBE
#define TT_ADOBE_ID_LATIN_1
#define TT_ADOBE_ID_CUSTOM