38 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
58 #define FT_COMPONENT cffdriver
164 FT_Int32 load_flags )
172 return FT_THROW( Invalid_Slot_Handle );
187 if ( cffsize->face != cffslot->face )
188 return FT_THROW( Invalid_Face_Handle );
225 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
229 return FT_THROW( Unimplemented_Feature );
239 for ( nn = 0; nn <
count; nn++ )
250 FT_TRACE5((
" idx %d: advance height %d font unit%s\n",
253 ah == 1 ?
"" :
"s" ));
259 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
263 return FT_THROW( Unimplemented_Feature );
270 for ( nn = 0; nn <
count; nn++ )
281 FT_TRACE5((
" idx %d: advance width %d font unit%s\n",
284 aw == 1 ?
"" :
"s" ));
295 for ( nn = 0; nn <
count; nn++ )
329 if (
font->version_major == 2 )
348 " cannot get glyph name from a CFF2 font\n"
350 " without the `psnames' module\n" ));
356 if ( !
font->psnames )
359 " cannot get glyph name from CFF & CEF fonts\n"
361 " without the `psnames' module\n" ));
388 FT_Service_PsCMaps psnames;
415 " cannot get glyph index from a CFF2 font\n"
417 " without the `psnames' module\n" ));
481 if (
FT_ALLOC( font_info,
sizeof ( *font_info ) ) )
526 if (
FT_ALLOC( font_extra,
sizeof ( *font_extra ) ) )
534 if ( embedded_postscript )
541 if ( ( start_fstype =
ft_strstr( embedded_postscript,
542 "/FSType" ) ) !=
NULL &&
544 sizeof (
"/FSType" ) - 1,
550 for (
s = start_fstype +
sizeof (
"/FSType" ) - 1;
554 if ( *
s >=
'0' && *
s <=
'9' )
566 else if ( *
s !=
' ' && *
s !=
'\n' && *
s !=
'\r' )
620 FT_Service_PsFontName
service =
663 if ( cmap->
clazz != &cff_cmap_encoding_class_rec &&
664 cmap->
clazz != &cff_cmap_unicode_class_rec )
740 FT_TRACE1((
"cff_get_ros: too large supplement %ld is truncated\n",
822 cff_get_cid_from_glyph_index
838 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
850 FT_Service_MultiMasters mm = (FT_Service_MultiMasters)
face->mm;
862 FT_Service_MultiMasters mm = (FT_Service_MultiMasters)
face->mm;
874 FT_Service_MultiMasters mm = (FT_Service_MultiMasters)
face->mm;
877 return mm->set_mm_weightvector(
FT_FACE(
face ),
len, weightvector );
886 FT_Service_MultiMasters mm = (FT_Service_MultiMasters)
face->mm;
889 return mm->get_mm_weightvector(
FT_FACE(
face ),
len, weightvector );
897 FT_Service_MultiMasters mm = (FT_Service_MultiMasters)
face->mm;
909 FT_Service_MultiMasters mm = (FT_Service_MultiMasters)
face->mm;
921 FT_Service_MultiMasters mm = (FT_Service_MultiMasters)
face->mm;
932 FT_Service_MultiMasters mm = (FT_Service_MultiMasters)
face->mm;
935 return mm->set_instance(
FT_FACE(
face ), instance_index );
940 cff_service_multi_masters,
968 FT_Service_MetricsVariations
var = (FT_Service_MetricsVariations)
face->var;
978 FT_Service_MetricsVariations
var = (FT_Service_MetricsVariations)
face->var;
986 cff_service_metrics_variations,
1008 cff_service_cff_load,
1030 #if !defined FT_CONFIG_OPTION_NO_GLYPH_NAMES && \
1031 defined TT_CONFIG_OPTION_GX_VAR_SUPPORT
1046 #elif !defined FT_CONFIG_OPTION_NO_GLYPH_NAMES
1059 #elif defined TT_CONFIG_OPTION_GX_VAR_SUPPORT
1117 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
1118 #define CFF_SIZE_SELECT cff_size_select
1120 #define CFF_SIZE_SELECT 0
small capitals from c petite p scientific i
[1]
return cff_index_get_sid_string(cff, sid)
const char const char ** ordering
const char const char FT_Int * supplement
cff_get_advances(FT_Face face, FT_UInt start, FT_UInt count, FT_Int32 flags, FT_Fixed *advances)
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_SERVICE_ID_PROPERTIES
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get & cff_service_get_cmap_info
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get & cff_service_glyph_dict
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_SERVICE_ID_TT_CMAP
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get & cff_service_cid_info
FT_Properties_SetFunc ps_property_set
cff_get_kerning(FT_Face ttface, FT_UInt left_glyph, FT_UInt right_glyph, FT_Vector *kerning)
cff_glyph_load(FT_GlyphSlot cffslot, FT_Size cffsize, FT_UInt glyph_index, FT_Int32 load_flags)
FT_DEFINE_SERVICE_PSFONTNAMEREC(cff_service_ps_name,(FT_PsName_GetFunc) cff_get_ps_name) static FT_Error cff_get_cmap_info(FT_CharMap charmap
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_SERVICE_ID_POSTSCRIPT_FONT_NAME
FT_DEFINE_SERVICE_PSINFOREC(cff_service_ps_info,(PS_GetFontInfoFunc) cff_ps_get_font_info,(PS_GetFontExtraFunc) cff_ps_get_font_extra,(PS_HasGlyphNamesFunc) cff_ps_has_glyph_names,(PS_GetFontPrivateFunc) NULL,(PS_GetFontValueFunc) NULL) static const char *cff_get_ps_name(CFF_Face face)
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_DEFINE_SERVICE_CFFLOADREC(cff_service_cff_load,(FT_Get_Standard_Encoding_Func) cff_get_standard_encoding,(FT_Load_Private_Dict_Func) cff_load_private_dict,(FT_FD_Select_Get_Func) cff_fd_select_get,(FT_Blend_Check_Vector_Func) cff_blend_check_vector,(FT_Blend_Build_Vector_Func) cff_blend_build_vector) FT_DEFINE_SERVICEDESCREC8(cff_services
FT_DEFINE_SERVICE_GLYPHDICTREC(cff_service_glyph_dict,(FT_GlyphDict_GetNameFunc) cff_get_glyph_name,(FT_GlyphDict_NameIndexFunc) cff_get_name_index) static FT_Int cff_ps_has_glyph_names(FT_Face face)
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get & cff_service_properties
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_SERVICE_ID_CFF_LOAD
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get & cff_service_ps_name
FT_DEFINE_SERVICE_CIDREC(cff_service_cid_info,(FT_CID_GetRegistryOrderingSupplementFunc) cff_get_ros,(FT_CID_GetIsInternallyCIDKeyedFunc) cff_get_is_cid,(FT_CID_GetCIDFromGlyphIndexFunc) cff_get_cid_from_glyph_index) FT_DEFINE_SERVICE_PROPERTIESREC(cff_service_properties
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get & cff_service_ps_info
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_SERVICE_ID_GLYPH_DICT
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_FONT_FORMAT_CFF
if(cmap->clazz !=&cff_cmap_encoding_class_rec &&cmap->clazz !=&cff_cmap_unicode_class_rec)
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get &cff_service_cff_load cff_get_interface(FT_Module driver, const char *module_interface)
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_SERVICE_ID_FONT_FORMAT
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_SERVICE_ID_CID
FT_DEFINE_SERVICE_TTCMAPSREC(cff_service_get_cmap_info,(TT_CMap_Info_GetFunc) cff_get_cmap_info) static FT_Error cff_get_ros(CFF_Face face
FT_Properties_SetFunc FT_Properties_GetFunc ps_property_get FT_SERVICE_ID_POSTSCRIPT_INFO
cff_slot_load(CFF_GlyphSlot glyph, CFF_Size size, FT_UInt glyph_index, FT_Int32 load_flags)
cff_get_standard_encoding(FT_UInt charcode)
cff_blend_build_vector(CFF_Blend blend, FT_UInt vsindex, FT_UInt lenNDV, FT_Fixed *NDV)
cff_fd_select_get(CFF_FDSelect fdselect, FT_UInt glyph_index)
cff_index_get_string(CFF_Font font, FT_UInt element)
cff_load_private_dict(CFF_Font font, CFF_SubFont subfont, FT_UInt lenNDV, FT_Fixed *NDV)
cff_blend_check_vector(CFF_Blend blend, FT_UInt vsindex, FT_UInt lenNDV, FT_Fixed *NDV)
cff_face_done(FT_Face cffface)
cff_slot_done(FT_GlyphSlot slot)
cff_size_init(FT_Size cffsize)
cff_slot_init(FT_GlyphSlot slot)
cff_size_request(FT_Size size, FT_Size_Request req)
cff_driver_done(FT_Module module)
cff_size_done(FT_Size cffsize)
cff_driver_init(FT_Module module)
cff_face_init(FT_Stream stream, FT_Face cffface, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
FT_BEGIN_HEADER typedef TT_Face CFF_Face
struct CFF_GlyphSlotRec_ * CFF_GlyphSlot
struct CFF_SizeRec_ * CFF_Size
struct CFF_FontRec_ * CFF_Font
#define FT_CALLBACK_DEF(x)
#define FT_LOAD_VERTICAL_LAYOUT
#define FT_LOAD_ADVANCE_ONLY
#define FT_LOAD_NO_HINTING
#define FT_IS_VARIATION(face)
#define FT_FACE_FLAG_GLYPH_NAMES
#define FT_IS_NAMED_INSTANCE(face)
#define FT_ERROR(varformat)
#define FT_TRACE5(varformat)
#define FT_TRACE1(varformat)
#define FT_DEFINE_DRIVER( class_, flags_, size_, name_, version_, requires_, interface_, init_, done_, get_interface_, face_object_size_, size_object_size_, slot_object_size_, init_face_, done_face_, init_size_, done_size_, init_slot_, done_slot_, load_glyph_, get_kerning_, attach_file_, get_advances_, request_size_, select_size_)
#define FT_ALLOC(ptr, size)
#define FT_STRCPYN(dst, src, size)
#define FT_MODULE_FONT_DRIVER
#define FT_MODULE_DRIVER_HINTS_LIGHTLY
#define FT_MODULE_DRIVER_HAS_HINTER
FT_Get_Module(FT_Library library, const char *module_name)
FT_Pointer FT_Module_Interface
#define FT_MODULE_DRIVER_SCALABLE
#define FT_FACE_LIBRARY(x)
ft_module_get_service(FT_Module module, const char *service_id, FT_Bool global)
ps_property_get(FT_Module module, const char *property_name, void *value)
#define FT_DEFINE_SERVICEDESCREC9(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5, serv_id_6, serv_data_6, serv_id_7, serv_data_7, serv_id_8, serv_data_8, serv_id_9, serv_data_9)
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
#define FT_DEFINE_SERVICEDESCREC7(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5, serv_id_6, serv_data_6, serv_id_7, serv_data_7)
ft_service_list_lookup(FT_ServiceDesc service_descriptors, const char *service_id)
#define FT_DEFINE_SERVICEDESCREC8(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5, serv_id_6, serv_data_6, serv_id_7, serv_data_7, serv_id_8, serv_data_8)
#define FT_DEFINE_SERVICEDESCREC10(class_, serv_id_1, serv_data_1, serv_id_2, serv_data_2, serv_id_3, serv_data_3, serv_id_4, serv_data_4, serv_id_5, serv_data_5, serv_id_6, serv_data_6, serv_id_7, serv_data_7, serv_id_8, serv_data_8, serv_id_9, serv_data_9, serv_id_10, serv_data_10)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
FT_BEGIN_HEADER typedef unsigned char FT_Bool
auto it unsigned count const
Q_CORE_EXPORT jobject service()
FT_BEGIN_HEADER struct PS_DriverRec_ PS_DriverRec
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLsizei const GLubyte GLsizei GLenum const void * coords
GLenum GLenum GLsizei count
GLsizei GLenum GLsizei GLsizei GLuint memory
TT_CMap_Info_GetFunc tt_get_cmap_info const char * module_interface
SFNT_Interface * SFNT_Service
PS_FontExtraRec * font_extra
PS_FontInfoRec * font_info
FT_UInt embedded_postscript
FT_Fixed underline_position
FT_Fixed underline_thickness
CFF_FontRecDictRec font_dict
FT_Fixed linearHoriAdvance
FT_Fixed linearVertAdvance
FT_Module_Requester get_interface
TT_Face_GetKerningFunc get_kerning
FT_Bool(* FT_Blend_Check_Vector_Func)(CFF_Blend blend, FT_UInt vsindex, FT_UInt lenNDV, FT_Fixed *NDV)
FT_Error(* FT_Load_Private_Dict_Func)(CFF_Font font, CFF_SubFont subfont, FT_UInt lenNDV, FT_Fixed *NDV)
FT_Byte(* FT_FD_Select_Get_Func)(CFF_FDSelect fdselect, FT_UInt glyph_index)
FT_UShort(* FT_Get_Standard_Encoding_Func)(FT_UInt charcode)
FT_Error(* FT_Blend_Build_Vector_Func)(CFF_Blend blend, FT_UInt vsindex, FT_UInt lenNDV, FT_Fixed *NDV)
FT_Error(* FT_CID_GetCIDFromGlyphIndexFunc)(FT_Face face, FT_UInt glyph_index, FT_UInt *cid)
FT_Error(* FT_CID_GetIsInternallyCIDKeyedFunc)(FT_Face face, FT_Bool *is_cid)
FT_Error(* FT_CID_GetRegistryOrderingSupplementFunc)(FT_Face face, const char **registry, const char **ordering, FT_Int *supplement)
FT_UInt(* FT_GlyphDict_NameIndexFunc)(FT_Face face, const FT_String *glyph_name)
FT_Error(* FT_GlyphDict_GetNameFunc)(FT_Face face, FT_UInt glyph_index, FT_Pointer buffer, FT_UInt buffer_max)
FT_Error(* FT_HAdvance_Adjust_Func)(FT_Face face, FT_UInt gindex, FT_Int *avalue)
void(* FT_Metrics_Adjust_Func)(FT_Face face)
FT_Error(* FT_VOrg_Adjust_Func)(FT_Face face, FT_UInt gindex, FT_Int *avalue)
#define FT_SERVICE_ID_METRICS_VARIATIONS
FT_Error(* FT_LSB_Adjust_Func)(FT_Face face, FT_UInt gindex, FT_Int *avalue)
FT_Error(* FT_TSB_Adjust_Func)(FT_Face face, FT_UInt gindex, FT_Int *avalue)
FT_Error(* FT_RSB_Adjust_Func)(FT_Face face, FT_UInt gindex, FT_Int *avalue)
FT_Error(* FT_VAdvance_Adjust_Func)(FT_Face face, FT_UInt gindex, FT_Int *avalue)
#define FT_DEFINE_SERVICE_METRICSVARIATIONSREC(class_, hadvance_adjust_, lsb_adjust_, rsb_adjust_, vadvance_adjust_, tsb_adjust_, bsb_adjust_, vorg_adjust_, metrics_adjust_)
FT_Error(* FT_BSB_Adjust_Func)(FT_Face face, FT_UInt gindex, FT_Int *avalue)
FT_Error(* FT_Set_Instance_Func)(FT_Face face, FT_UInt instance_index)
FT_Error(* FT_Set_MM_Blend_Func)(FT_Face face, FT_UInt num_coords, FT_Long *coords)
FT_Error(* FT_Get_MM_Func)(FT_Face face, FT_Multi_Master *master)
FT_Error(* FT_Set_MM_Design_Func)(FT_Face face, FT_UInt num_coords, FT_Long *coords)
FT_Error(* FT_Get_MM_Var_Func)(FT_Face face, FT_MM_Var **master)
FT_Error(* FT_Get_MM_Blend_Func)(FT_Face face, FT_UInt num_coords, FT_Long *coords)
#define FT_SERVICE_ID_MULTI_MASTERS
void(* FT_Done_Blend_Func)(FT_Face)
FT_Error(* FT_Get_Var_Blend_Func)(FT_Face face, FT_UInt *num_coords, FT_Fixed **coords, FT_Fixed **normalizedcoords, FT_MM_Var **mm_var)
#define FT_DEFINE_SERVICE_MULTIMASTERSREC(class_, get_mm_, set_mm_design_, set_mm_blend_, get_mm_blend_, get_mm_var_, set_var_design_, get_var_design_, set_instance_, set_weightvector_, get_weightvector_, get_var_blend_, done_blend_)
FT_Error(* FT_Get_Var_Design_Func)(FT_Face face, FT_UInt num_coords, FT_Fixed *coords)
FT_Error(* FT_Get_MM_WeightVector_Func)(FT_Face face, FT_UInt *len, FT_Fixed *weight_vector)
FT_Error(* FT_Set_MM_WeightVector_Func)(FT_Face face, FT_UInt len, FT_Fixed *weight_vector)
FT_Error(* FT_Set_Var_Design_Func)(FT_Face face, FT_UInt num_coords, FT_Fixed *coords)
const char *(* FT_PsName_GetFunc)(FT_Face face)
#define FT_DEFINE_SERVICE_PROPERTIESREC(class_, set_property_, get_property_)
FT_Error(* FT_Properties_GetFunc)(FT_Module module, const char *property_name, void *value)
FT_Error(* FT_Properties_SetFunc)(FT_Module module, const char *property_name, const void *value, FT_Bool value_is_string)
FT_Long(* PS_GetFontValueFunc)(FT_Face face, PS_Dict_Keys key, FT_UInt idx, void *value, FT_Long value_len)
FT_Error(* PS_GetFontInfoFunc)(FT_Face face, PS_FontInfoRec *afont_info)
FT_Int(* PS_HasGlyphNamesFunc)(FT_Face face)
FT_Error(* PS_GetFontExtraFunc)(FT_Face face, PS_FontExtraRec *afont_extra)
FT_Error(* PS_GetFontPrivateFunc)(FT_Face face, PS_PrivateRec *afont_private)
FT_Error(* TT_CMap_Info_GetFunc)(FT_CharMap charmap, TT_CMapInfo *cmap_info)
FT_BEGIN_HEADER struct PS_FontInfoRec_ PS_FontInfoRec
QThreadStorage< int * > dummy[8]
FT_UInt FT_UInt FT_Vector * kerning
FT_UInt FT_UInt right_glyph
#define TT_FACE_FLAG_VAR_HADVANCE
struct TT_FaceRec_ * TT_Face
#define TT_FACE_FLAG_VAR_VADVANCE