Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Classes | Functions
scfonts.h File Reference
#include <qstring.h>
#include <qstrlist.h>
#include <qstringlist.h>
#include <qdict.h>
#include <qfont.h>
#include <qmap.h>
#include <qdatetime.h>
#include <ft2build.h>
#include "scribusapi.h"
#include "fpointarray.h"
#include "scconfig.h"
#include "fonts/scface.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


protocol  SCRIBUS_API
 A Bookmark Palette. More...
struct  SCRIBUS_API::testCache
struct  SCFontsIterator


FT_Error ftIOFunc (FT_Stream fts, unsigned long offset, unsigned char *buffer, unsigned long count)
 copied from Freetype's FT_Stream_ReadAt()

Class Documentation

struct SCRIBUS_API::testCache

Definition at line 77 of file scfonts.h.

Class Members
bool isChecked
bool isOK
QDateTime lastMod

Function Documentation

FT_Error ftIOFunc ( FT_Stream  fts,
unsigned long  offset,
unsigned char *  buffer,
unsigned long  count 

copied from Freetype's FT_Stream_ReadAt()

Definition at line 264 of file ftface.cpp.

    FT_Error  error = FT_Err_Ok;
    FT_ULong  read_bytes;
    if ( pos >= stream->size )
              qDebug( "ftIOFunc: invalid i/o; pos = 0x%lx, size = 0x%lx\n",
                               pos, stream->size );
              return FT_Err_Invalid_Stream_Operation;
    if ( stream->read )
              read_bytes = stream->read( stream, pos, buffer, count );
              read_bytes = stream->size - pos;
              if ( read_bytes > count )
                     read_bytes = count;
              memcpy( buffer, stream->base + pos, read_bytes );
    stream->pos = pos + read_bytes;
    if ( read_bytes < count )
              qDebug( "ftIOFunc: invalid read; expected %lu bytes, got %lu\n",
                               count, read_bytes );
              error = FT_Err_Invalid_Stream_Operation;
    return error;

Here is the caller graph for this function: