"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "layer1/TypeFace.cpp" between
pymol-v2.1.0.tar.bz2 and pymol-open-source-2.2.0.tar.gz

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)