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 40 #define FT_COMPONENT trace_cidobjs 52 slot->internal->glyph_hints = 0;
79 slot->internal->glyph_hints = (
void*)funcs;
116 if ( cidsize->internal )
121 funcs = cid_size_get_globals_funcs( size );
125 cidsize->internal = 0;
146 error = funcs->
create( cidsize->face->memory, priv, &globals );
164 funcs = cid_size_get_globals_funcs( (
CID_Size)size );
168 size->metrics.x_scale,
169 size->metrics.y_scale,
207 memory = cidface->memory;
246 cidface->family_name = 0;
247 cidface->style_name = 0;
294 cidface->num_faces = 1;
304 FT_ERROR((
"cid_face_init: cannot access `psaux' module\n" ));
332 if ( face_index < 0 )
337 if ( face_index != 0 )
339 FT_ERROR((
"cid_face_init: invalid face index\n" ));
355 cidface->num_charmaps = 0;
357 cidface->face_index = face_index;
371 cidface->style_name = (
char *)
"Regular";
372 if ( cidface->family_name )
375 char* family = cidface->family_name;
382 if ( *full == *family )
389 if ( *full ==
' ' || *full ==
'-' )
391 else if ( *family ==
' ' || *family ==
'-' )
396 cidface->style_name = full;
411 cidface->style_flags = 0;
422 cidface->num_fixed_sizes = 0;
423 cidface->available_sizes = 0;
431 if ( !cidface->units_per_EM )
432 cidface->units_per_EM = 1000;
434 cidface->ascender = (
FT_Short)( cidface->bbox.yMax );
435 cidface->descender = (
FT_Short)( cidface->bbox.yMin );
437 cidface->height = (
FT_Short)( ( cidface->units_per_EM * 12 ) / 10 );
438 if ( cidface->height < cidface->ascender - cidface->descender )
439 cidface->height = (
FT_Short)( cidface->ascender - cidface->descender );
PSH_Globals_SetScaleFunc set_scale
typedefFT_BEGIN_HEADER struct PSH_GlobalsRec_ * PSH_Globals
struct CID_FaceRec_ * CID_Face
PSHinter_Interface * PSHinter_Service
#define FT_FACE_FLAG_SCALABLE
return FT_THROW(Missing_Property)
cid_driver_init(FT_Module driver)
cid_size_done(FT_Size cidsize)
PSH_Globals_NewFunc create
struct FT_Size_InternalRec_ * FT_Size_Internal
PSH_Globals_DestroyFunc destroy
GLenum GLuint GLint GLenum face
#define FT_ERROR(varformat)
cid_driver_done(FT_Module driver)
#define FT_STYLE_FLAG_BOLD
FT_String * cid_font_name
#define FT_FACE_FLAG_FIXED_WIDTH
cid_face_done(FT_Face cidface)
FT_Request_Metrics(FT_Face face, FT_Size_Request req)
#define FT_FACE_FLAG_HORIZONTAL
T1_Hints_Funcs(* get_t1_funcs)(FT_Module module)
struct PSAux_ServiceRec_ * PSAux_Service
cid_face_init(FT_Stream stream, FT_Face cidface, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
#define FT_TRACE2(varformat)
FT_Short underline_position
cid_face_open(CID_Face face, FT_Int face_index)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
#define FT_FACE_FLAG_HINTER
#define FT_STREAM_SEEK(position)
if(!abbox) return FT_THROW(Invalid_Argument)
GLenum const GLfloat * params
FT_UShort underline_thickness
cid_slot_done(FT_GlyphSlot slot)
cid_size_request(FT_Size size, FT_Size_Request req)
struct CID_SizeRec_ * CID_Size
FT_Get_Module(FT_Library library, const char *module_name)
cid_size_init(FT_Size cidsize)
FT_Get_Module_Interface(FT_Library library, const char *mod_name)
PSH_Globals_Funcs(* get_globals_funcs)(FT_Module module)
cid_slot_init(FT_GlyphSlot slot)
#define FT_STYLE_FLAG_ITALIC
#define FT_FACE_LIBRARY(x)