Guest User

Untitled

a guest
Apr 3rd, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1.                 } else if ( fontPath.find( ".dfont" ) != fontPath.npos ) {
  2.                     char*   fontBuffer = NULL;
  3.                     ASInt32 fontBufferLen = 0;
  4.  
  5.                     // mLog.Debug( boost::format("Found a matching .dfont for '%s', index %d\n") % pszFontname % fIndex );
  6.  
  7.                    
  8.                     FT_Error dfErr = LoadFontFromDFont( mLog, ref, fSpec, pszFontname, fIndex, &fontBuffer, fontBufferLen );
  9.                     if ( !dfErr ) {
  10.                         CPDFFTFont* ftFont = new CPDFFTFont( *this, fontBuffer, fontBufferLen, fIndex );
  11.                         retFont = reinterpret_cast< CPDFFont* >( ftFont );
  12.                     }
  13.                 } else {
Advertisement
Add Comment
Please, Sign In to add comment