20#include FT_INTERNAL_DEBUG_H
21#include FT_INTERNAL_STREAM_H
26#include FT_SERVICE_POSTSCRIPT_CMAPS_H
27#include FT_INTERNAL_POSTSCRIPT_AUX_H
28#include FT_INTERNAL_POSTSCRIPT_HINTS_H
41#define FT_COMPONENT trace_cidobjs
80 slot->internal->glyph_hints = (
void*)
funcs;
105 return (
module && pshinter && pshinter->get_globals_funcs )
106 ? pshinter->get_globals_funcs(
module )
117 if ( cidsize->internal->module_data )
126 cidsize->internal->module_data =
NULL;
147 error =
funcs->create( cidsize->face->memory, priv, &globals );
149 cidsize->internal->module_data = globals;
169 size->metrics.x_scale,
170 size->metrics.y_scale,
216 for (
n = 0;
n <
cid->num_dicts;
n++ )
247 cidface->family_name =
NULL;
248 cidface->style_name =
NULL;
295 cidface->num_faces = 1;
305 FT_ERROR((
"cid_face_init: cannot access `psaux' module\n" ));
319 face->pshinter = pshinter;
333 if ( face_index < 0 )
338 if ( ( face_index & 0xFFFF ) != 0 )
340 FT_ERROR((
"cid_face_init: invalid face index\n" ));
355 cidface->num_glyphs = (
FT_Long)
cid->cid_count;
356 cidface->num_charmaps = 0;
358 cidface->face_index = face_index & 0xFFFF;
364 if (
info->is_fixed_pitch )
371 cidface->family_name =
info->family_name;
373 cidface->style_name = (
char *)
"Regular";
374 if ( cidface->family_name )
376 char* full =
info->full_name;
377 char* family = cidface->family_name;
384 if ( *full == *family )
391 if ( *full ==
' ' || *full ==
'-' )
393 else if ( *family ==
' ' || *family ==
'-' )
398 cidface->style_name = full;
408 if (
cid->cid_font_name )
409 cidface->family_name =
cid->cid_font_name;
413 cidface->style_flags = 0;
414 if (
info->italic_angle )
424 cidface->num_fixed_sizes = 0;
425 cidface->available_sizes =
NULL;
427 cidface->bbox.xMin =
cid->font_bbox.xMin >> 16;
428 cidface->bbox.yMin =
cid->font_bbox.yMin >> 16;
430 cidface->bbox.xMax = (
cid->font_bbox.xMax + 0xFFFF ) >> 16;
431 cidface->bbox.yMax = (
cid->font_bbox.yMax + 0xFFFF ) >> 16;
433 if ( !cidface->units_per_EM )
434 cidface->units_per_EM = 1000;
436 cidface->ascender = (
FT_Short)( cidface->bbox.yMax );
437 cidface->descender = (
FT_Short)( cidface->bbox.yMin );
439 cidface->height = (
FT_Short)( ( cidface->units_per_EM * 12 ) / 10 );
440 if ( cidface->height < cidface->ascender - cidface->descender )
441 cidface->height = (
FT_Short)( cidface->ascender - cidface->descender );
443 cidface->underline_position = (
FT_Short)
info->underline_position;
444 cidface->underline_thickness = (
FT_Short)
info->underline_thickness;
475#ifdef T1_CONFIG_OPTION_OLD_ENGINE
493 seed = (FT_UInt32)( (
FT_Offset)(
char*)&seed ^
496 seed = seed ^ ( seed >> 10 ) ^ ( seed >> 20 );
498 driver->random_seed = (FT_Int32)seed;
499 if (
driver->random_seed < 0 )
501 else if (
driver->random_seed == 0 )
502 driver->random_seed = 123456789;
cid_face_open(CID_Face face, FT_Int face_index)
cid_face_init(FT_Stream stream, FT_Face cidface, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
cid_driver_init(FT_Module module)
cid_slot_init(FT_GlyphSlot slot)
cid_size_init(FT_Size cidsize)
cid_size_done(FT_Size cidsize)
cid_slot_done(FT_GlyphSlot slot)
cid_face_done(FT_Face cidface)
static PSH_Globals_Funcs cid_size_get_globals_funcs(CID_Size size)
cid_driver_done(FT_Module driver)
cid_size_request(FT_Size size, FT_Size_Request req)
struct CID_SizeRec_ * CID_Size
#define CFF_CONFIG_OPTION_DARKENING_PARAMETER_X1
#define CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y4
#define CFF_CONFIG_OPTION_DARKENING_PARAMETER_X4
#define CFF_CONFIG_OPTION_DARKENING_PARAMETER_X2
#define CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y2
#define CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y1
#define CFF_CONFIG_OPTION_DARKENING_PARAMETER_X3
#define CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y3
#define FT_STYLE_FLAG_ITALIC
#define FT_FACE_FLAG_SCALABLE
#define FT_FACE_FLAG_HINTER
#define FT_FACE_FLAG_FIXED_WIDTH
#define FT_STYLE_FLAG_BOLD
#define FT_FACE_FLAG_HORIZONTAL
#define FT_ERROR(varformat)
#define FT_TRACE2(varformat)
#define FT_HINTING_FREETYPE
FT_Get_Module(FT_Library library, const char *module_name)
#define FT_FACE_LIBRARY(x)
FT_Request_Metrics(FT_Face face, FT_Size_Request req)
FT_Get_Module_Interface(FT_Library library, const char *mod_name)
#define FT_STREAM_SEEK(position)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
GLenum GLuint GLint GLenum face
GLenum const GLfloat * params
PSHinter_Interface * PSHinter_Service
typedefFT_BEGIN_HEADER struct PSH_GlobalsRec_ * PSH_Globals
static char memory[1024 *256]
struct @1679::@1680 driver
FT_BEGIN_HEADER struct PS_DriverRec_ * PS_Driver
struct PSAux_ServiceRec_ * PSAux_Service
static struct __wine_debug_functions funcs
T1_Hints_Funcs(* get_t1_funcs)(FT_Module module)
struct CID_FaceRec_ * CID_Face