Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } else if ( fontPath.find( ".dfont" ) != fontPath.npos ) {
- char* fontBuffer = NULL;
- ASInt32 fontBufferLen = 0;
- // mLog.Debug( boost::format("Found a matching .dfont for '%s', index %d\n") % pszFontname % fIndex );
- FT_Error dfErr = LoadFontFromDFont( mLog, ref, fSpec, pszFontname, fIndex, &fontBuffer, fontBufferLen );
- if ( !dfErr ) {
- CPDFFTFont* ftFont = new CPDFFTFont( *this, fontBuffer, fontBufferLen, fIndex );
- retFont = reinterpret_cast< CPDFFont* >( ftFont );
- }
- } else {
Advertisement
Add Comment
Please, Sign In to add comment