Qt 4.8
Macros | Functions | Variables
qfontenginedirectwrite.cpp File Reference
#include "qfontenginedirectwrite_p.h"
#include <qendian.h>
#include <dwrite.h>
#include <private/qnativeimage_p.h>
#include <d2d1.h>

Go to the source code of this file.

Macros

#define DESIGN_TO_LOGICAL(DESIGN_UNIT_VALUE)   QFixed::fromReal((qreal(DESIGN_UNIT_VALUE) / qreal(m_unitsPerEm)) * fontDef.pixelSize)
 

Functions

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

Variables

uint qt_pow_gamma [256]
 

Macro Definition Documentation

◆ DESIGN_TO_LOGICAL

#define DESIGN_TO_LOGICAL (   DESIGN_UNIT_VALUE)    QFixed::fromReal((qreal(DESIGN_UNIT_VALUE) / qreal(m_unitsPerEm)) * fontDef.pixelSize)

Function Documentation

◆ getChar()

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

Definition at line 270 of file qfontenginedirectwrite.cpp.

Referenced by QFontEngineDirectWrite::canRender(), and QFontEngineDirectWrite::stringToCMap().

271 {
272  uint ucs4 = str[i].unicode();
273  if (str[i].isHighSurrogate() && i < len-1 && str[i+1].isLowSurrogate()) {
274  ++i;
275  ucs4 = QChar::surrogateToUcs4( ucs4, str[i].unicode());
276  }
277  return ucs4;
278 }
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

Variable Documentation

◆ qt_pow_gamma

uint qt_pow_gamma[256]