All pastes #700095 Raw Edit

fsking FT2

public c v1 · immutable
#700095 ·published 2007-09-16 22:26 UTC
rendered paste body
/* check what TT opcode interpreter Freetype is using */#include <ft2build.h>#include FT_FREETYPE_H#include FT_MODULE_H#include FT_CONFIG_OPTIONS_H#include FT_CONFIG_CONFIG_Hintmain (){	FT_Library  lib;	FT_Error    errcode;	FT_TrueTypeEngineType et;	int Maj,Min,Pal;        errcode = FT_Init_FreeType( &lib );	if ( errcode ) { exit(1); }	FT_Library_Version( lib, &Maj, &Min, &Pal );	fprintf( stdout, "Detected Freetype 2 Library version %u.%u.%u\n",		                                           Maj, Min, Pal );	et = FT_Get_TrueType_Engine_Type(lib);   {	switch (et)  {		case FT_TRUETYPE_ENGINE_TYPE_NONE :			fprintf( stdout, "Using no TT opcode engine.\n");			break;		case FT_TRUETYPE_ENGINE_TYPE_UNPATENTED :			fprintf( stdout, "Using the Unpatented TT opcode engine.\n");			break;		case FT_TRUETYPE_ENGINE_TYPE_PATENTED :			fprintf( stdout, "Using the Patented TT opcode engine.\n");			break;	}   }}