TypeFace.cpp (pymol-v2.1.0.tar.bz2) | : | TypeFace.cpp (pymol-open-source-2.2.0) | ||
---|---|---|---|---|
skipping to change at line 146 | skipping to change at line 146 | |||
return 0; | return 0; | |||
} | } | |||
void TypeFree(PyMOLGlobals * G) | void TypeFree(PyMOLGlobals * G) | |||
{ | { | |||
CType *I = G->Type; | CType *I = G->Type; | |||
FT_Done_FreeType(I->library); | FT_Done_FreeType(I->library); | |||
FreeP(G->Type); | FreeP(G->Type); | |||
} | } | |||
float TypeFaceGetDescender(CTypeFace * I){ | ||||
return fabs(I->Face->descender/(float)I->Face->height); | ||||
} | ||||
#else | #else | |||
int TypeFaceCharacterNew(CTypeFace * I, CharFngrprnt * fprnt, float size) | int TypeFaceCharacterNew(CTypeFace * I, CharFngrprnt * fprnt, float size) | |||
{ | { | |||
return 0; | return 0; | |||
} | } | |||
float TypeFaceGetKerning(CTypeFace * I, | float TypeFaceGetKerning(CTypeFace * I, | |||
unsigned int last, unsigned int current, float size) | unsigned int last, unsigned int current, float size) | |||
{ | { | |||
skipping to change at line 177 | skipping to change at line 181 | |||
int TypeInit(PyMOLGlobals * G) | int TypeInit(PyMOLGlobals * G) | |||
{ | { | |||
return 1; | return 1; | |||
} | } | |||
void TypeFree(PyMOLGlobals * G) | void TypeFree(PyMOLGlobals * G) | |||
{ | { | |||
} | } | |||
float TypeFaceGetDescender(CTypeFace * I){ | ||||
return 0.f; | ||||
} | ||||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 8 lines changed or added |