Go to the source code of this file.
|
| static void * | get_sfnt_table (TT_Face face, FT_Sfnt_Tag tag) |
| |
| static FT_Error | sfnt_table_info (TT_Face face, FT_UInt idx, FT_ULong *tag, FT_ULong *offset, FT_ULong *length) |
| |
| | FT_DEFINE_SERVICE_SFNT_TABLEREC (sfnt_service_sfnt_table,(FT_SFNT_TableLoadFunc) tt_face_load_any,(FT_SFNT_TableGetFunc) get_sfnt_table,(FT_SFNT_TableInfoFunc) sfnt_table_info) static const unsigned char sfnt_ps_map[16] |
| |
| static int | sfnt_is_postscript (int c) |
| |
| static char * | get_win_string (FT_Memory memory, FT_Stream stream, TT_Name entry, char_type_func char_type, FT_Bool report_invalid_characters) |
| |
| static char * | get_apple_string (FT_Memory memory, FT_Stream stream, TT_Name entry, char_type_func char_type, FT_Bool report_invalid_characters) |
| |
| static FT_Bool | sfnt_get_name_id (TT_Face face, FT_UShort id, FT_Int *win, FT_Int *apple) |
| |
| static const char * | sfnt_get_ps_name (TT_Face face) |
| |
| | FT_DEFINE_SERVICE_PSFONTNAMEREC (sfnt_service_ps_name,(FT_PsName_GetFunc) sfnt_get_ps_name) FT_DEFINE_SERVICE_TTCMAPSREC(tt_service_get_cmap_info |
| |
| TT_CMap_Info_GetFunc tt_get_cmap_info | FT_DEFINE_SERVICEDESCREC3 (sfnt_services, FT_SERVICE_ID_SFNT_TABLE, &sfnt_service_sfnt_table, FT_SERVICE_ID_POSTSCRIPT_FONT_NAME, &sfnt_service_ps_name, FT_SERVICE_ID_TT_CMAP, &tt_service_get_cmap_info) sfnt_get_interface(FT_Module module |
| |
| return | ft_service_list_lookup (sfnt_services, module_interface) |
| |
◆ FT_COMPONENT
◆ IS_APPLE
Value: ( (
n)->platformID == 1 && \
Definition at line 484 of file sfdriver.c.
◆ IS_WIN
Value: ( (
n)->platformID == 3 && \
( (
n)->encodingID == 1 || (
n)->encodingID == 0 ) )
Definition at line 481 of file sfdriver.c.
◆ PUT_COLOR_LAYERS
◆ PUT_EMBEDDED_BITMAPS
◆ PUT_PS_NAMES
◆ char_type_func
| typedef int(* char_type_func) (int c) |
◆ FT_DEFINE_SERVICE_PSFONTNAMEREC()
| FT_DEFINE_SERVICE_PSFONTNAMEREC |
( |
sfnt_service_ps_name |
, |
|
|
(FT_PsName_GetFunc) |
sfnt_get_ps_name |
|
) |
| |
◆ FT_DEFINE_SERVICE_SFNT_TABLEREC()
◆ FT_DEFINE_SERVICEDESCREC3()
◆ ft_service_list_lookup()
◆ get_apple_string()
Definition at line 547 of file sfdriver.c.
552 {
554
559
561
562
565
568 goto get_apple_string_error;
569
572
574 {
577 else
578 {
579 if ( report_invalid_characters )
581 " Character `%c' (0x%X) invalid in PS name string\n",
583 break;
584 }
585 }
588
590
593
594 get_apple_string_error:
596
597 entry->stringOffset = 0;
598 entry->stringLength = 0;
600
602 }
#define FT_TRACE0(varformat)
#define FT_ALLOC(ptr, size)
#define FT_FRAME_ENTER(size)
#define FT_STREAM_SEEK(position)
GLdouble GLdouble GLdouble r
Referenced by sfnt_get_ps_name().
◆ get_sfnt_table()
Definition at line 79 of file sfdriver.c.
81 {
83
84
86 {
89 break;
90
93 break;
94
97 break;
98
101 break;
102
105 break;
106
109 break;
110
113 break;
114
115 default:
117 }
118
120 }
GLenum GLuint GLint GLenum face
◆ get_win_string()
Definition at line 488 of file sfdriver.c.
493 {
495
500
502
503
506
509 goto get_win_string_error;
510
513
515 {
518 else
519 {
520 if ( report_invalid_characters )
522 " Character 0x%X invalid in PS name string\n",
523 ((
unsigned)
p[0])*256 + (
unsigned)
p[1] ));
524 break;
525 }
526 }
529
531
534
535 get_win_string_error:
537
538 entry->stringLength = 0;
539 entry->stringOffset = 0;
541
543 }
Referenced by sfnt_get_ps_name().
◆ sfnt_get_name_id()
Definition at line 606 of file sfdriver.c.
610 {
612
613
615 *apple = -1;
616
617 for (
n = 0;
n <
face->num_names;
n++ )
618 {
620
621
622 if (
name->nameID ==
id &&
name->stringLength > 0 )
623 {
626
629 }
630 }
631
632 return ( *
win >= 0 ) || ( *apple >= 0 );
633 }
Referenced by sfnt_get_ps_name().
◆ sfnt_get_ps_name()
Definition at line 1044 of file sfdriver.c.
1045 {
1048
1049
1050 if (
face->postscript_name )
1051 return face->postscript_name;
1052
1053#ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
1057 {
1058 face->postscript_name = sfnt_get_var_ps_name(
face );
1059 return face->postscript_name;
1060 }
1061#endif
1062
1063
1064
1066 if ( !found )
1068
1069
1072 face->name_table.stream,
1075 1 );
1076 if ( !
result && apple != -1 )
1078 face->name_table.stream,
1079 face->name_table.names + apple,
1081 1 );
1082
1084
1086 }
#define FT_IS_VARIATION(face)
#define FT_IS_NAMED_INSTANCE(face)
static char * get_win_string(FT_Memory memory, FT_Stream stream, TT_Name entry, char_type_func char_type, FT_Bool report_invalid_characters)
static char * get_apple_string(FT_Memory memory, FT_Stream stream, TT_Name entry, char_type_func char_type, FT_Bool report_invalid_characters)
static FT_Bool sfnt_get_name_id(TT_Face face, FT_UShort id, FT_Int *win, FT_Int *apple)
static int sfnt_is_postscript(int c)
#define TT_NAME_ID_PS_NAME
◆ sfnt_is_postscript()
| static int sfnt_is_postscript |
( |
int |
c | ) |
|
|
static |
Definition at line 248 of file sfdriver.c.
249 {
251
252
253 if ( c < 0 || c >= 0x80 )
254 return 0;
255
257
258 return sfnt_ps_map[
cc >> 3] & ( 1 << (
cc & 0x07 ) );
259 }
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Referenced by sfnt_get_ps_name().
◆ sfnt_table_info()
Definition at line 124 of file sfdriver.c.
129 {
131 return FT_THROW( Invalid_Argument );
132
135 else
136 {
139
143 }
144
146 }
GLuint GLsizei GLsizei * length
◆ module_interface