Qt 4.8
Classes | Macros | Functions
qfontengine_qws.cpp File Reference
#include "qfontengine_p.h"
#include <qwsdisplay_qws.h>
#include <qvarlengtharray.h>
#include <private/qpainter_p.h>
#include <private/qpaintengine_raster_p.h>
#include <private/qpdf_p.h>
#include "qtextengine_p.h"
#include "private/qcore_unix_p.h"
#include <qdebug.h>
#include "qplatformdefs.h"
#include "qfile.h"
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <errno.h>

Go to the source code of this file.

Classes

class  QFontEngineQPF1Data
 
struct  QPFFontMetrics
 
class  QPFGlyph
 
class  QPFGlyphMetrics
 
class  QPFGlyphTree
 

Macros

#define FM_SMOOTH   1
 
#define MAP_FAILED   (void *)-1
 
#define MAP_FILE   0
 
#define QT_USE_MMAP
 

Functions

static unsigned int getChar (const QChar *str, int &i, const int len)
 

Macro Definition Documentation

◆ FM_SMOOTH

#define FM_SMOOTH   1

◆ MAP_FAILED

#define MAP_FAILED   (void *)-1

Definition at line 77 of file qfontengine_qws.cpp.

Referenced by QFontEngineQPF1::QFontEngineQPF1().

◆ MAP_FILE

#define MAP_FILE   0

Definition at line 74 of file qfontengine_qws.cpp.

Referenced by QFontEngineQPF1::QFontEngineQPF1().

◆ QT_USE_MMAP

#define QT_USE_MMAP

Definition at line 61 of file qfontengine_qws.cpp.

Function Documentation

◆ getChar()

static unsigned int getChar ( const QChar str,
int &  i,
const int  len 
)
inlinestatic

Definition at line 84 of file qfontengine_qws.cpp.

Referenced by QFontEngineQPF1::stringToCMap().

85 {
86  uint ucs4 = str[i].unicode();
87  if (str[i].isHighSurrogate() && i < len-1 && str[i+1].isLowSurrogate()) {
88  ++i;
89  ucs4 = QChar::surrogateToUcs4(ucs4, str[i].unicode());
90  }
91  return ucs4;
92 }
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qchar.h:251
unsigned int uint
Definition: qglobal.h:996
static uint surrogateToUcs4(ushort high, ushort low)
Converts a UTF16 surrogate pair with the given high and low values to its UCS-4 code point...
Definition: qchar.h:297