Qt 4.8
|
#include "qdir.h"
#include "qmetatype.h"
#include "qtextstream.h"
#include "qvariant.h"
#include "qfontengine_ft_p.h"
#include "qfile.h"
#include "qabstractfileengine.h"
#include "qthreadstorage.h"
#include <qmath.h>
#include <private/qharfbuzz_p.h>
#include <ft2build.h>
#include <FT_FREETYPE_H>
#include <FT_OUTLINE_H>
#include <FT_SYNTHESIS_H>
#include <FT_TRUETYPE_TABLES_H>
#include <FT_TYPE1_TABLES_H>
#include <FT_GLYPH_H>
Go to the source code of this file.
Classes | |
class | QtFreetypeData |
Macros | |
#define | CEIL(x) (((x)+63) & -64) |
#define | FLOOR(x) ((x) & -64) |
#define | Q_FT_GLYPHSLOT_EMBOLDEN(slot) |
#define | QT_MAX_CACHED_GLYPH_SIZE 64 |
#define | ROUND(x) (((x)+32) & -64) |
#define | TRUNC(x) ((x) >> 6) |
#define | X_SIZE(face, i) ((face)->available_sizes[i].width << 6) |
#define | Y_SIZE(face, i) ((face)->available_sizes[i].height << 6) |
Functions | |
static void | convertRGBToARGB (const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter) |
static void | convertRGBToARGB_V (const uchar *src, uint *dst, int width, int height, int src_pitch, bool bgr, bool legacyFilter) |
static void | convoluteBitmap (const uchar *src, uchar *dst, int width, int height, int pitch) |
static uint | filterPixel (uint red, uint green, uint blue, bool legacyFilter) |
static unsigned int | getChar (const QChar *str, int &i, const int len) |
static HB_Error | hb_getSFntTable (void *font, HB_Tag tableTag, HB_Byte *buffer, HB_UInt *length) |
void | qt_addBitmapToPath (qreal x0, qreal y0, const uchar *image_data, int bpl, int w, int h, QPainterPath *path) |
FT_Library | qt_getFreetype () |
QtFreetypeData * | qt_getFreetypeData () |
static void | scaleOutline (FT_Face face, FT_GlyphSlot g, FT_Fixed x_scale, FT_Fixed y_scale) |
Variables | |
static const ushort | char_table [] |
static const int | char_table_entries = sizeof(char_table)/sizeof(ushort) |
static const uint | subpixel_filter [3][3] |
#define CEIL | ( | x | ) | (((x)+63) & -64) |
Definition at line 108 of file qfontengine_ft.cpp.
Referenced by QFontEngineFT::alphaMapBoundingBox(), QFontEngineFT::boundingBox(), and QFontEngineFT::loadGlyph().
#define FLOOR | ( | x | ) | ((x) & -64) |
Definition at line 107 of file qfontengine_ft.cpp.
Referenced by QFontEngineFT::alphaMapBoundingBox(), QFontEngineFT::boundingBox(), and QFontEngineFT::loadGlyph().
#define Q_FT_GLYPHSLOT_EMBOLDEN | ( | slot | ) |
Definition at line 104 of file qfontengine_ft.cpp.
Referenced by QFontEngineFT::loadGlyph().
#define QT_MAX_CACHED_GLYPH_SIZE 64 |
Definition at line 82 of file qfontengine_ft.cpp.
Referenced by QFreetypeFace::computeSize(), and QFontEngineFT::loadTransformedGlyphSet().
#define ROUND | ( | x | ) | (((x)+32) & -64) |
Definition at line 110 of file qfontengine_ft.cpp.
Referenced by QFontEngineFT::alphaMapBoundingBox(), QFontEngineFT::boundingBox(), and QFontEngineFT::loadGlyph().
#define TRUNC | ( | x | ) | ((x) >> 6) |
Definition at line 109 of file qfontengine_ft.cpp.
Referenced by QFreetypeFace::addBitmapToPath(), QFontEngineFT::alphaMapBoundingBox(), QFontEngineFT::boundingBox(), and QFontEngineFT::loadGlyph().
#define X_SIZE | ( | face, | |
i | |||
) | ((face)->available_sizes[i].width << 6) |
Definition at line 96 of file qfontengine_ft.cpp.
Referenced by QFreetypeFace::computeSize(), QFreetypeFace::getFace(), and QFontEngineFT::init().
#define Y_SIZE | ( | face, | |
i | |||
) | ((face)->available_sizes[i].height << 6) |
Definition at line 97 of file qfontengine_ft.cpp.
Referenced by QFreetypeFace::computeSize(), QFreetypeFace::getFace(), and QFontEngineFT::init().
|
static |
Definition at line 569 of file qfontengine_ft.cpp.
Referenced by QFontEngineFT::loadGlyph().
|
static |
Definition at line 588 of file qfontengine_ft.cpp.
Referenced by QFontEngineFT::loadGlyph().
|
static |
Definition at line 554 of file qfontengine_ft.cpp.
Referenced by convertRGBToARGB(), and convertRGBToARGB_V().
|
inlinestatic |
Definition at line 1423 of file qfontengine_ft.cpp.
Referenced by QFontEngineFT::canRender(), QTextStreamPrivate::getNumber(), QTextStreamPrivate::getReal(), QXmlStreamReaderPrivate::parse(), QFontEngineFT::stringToCMap(), and QIODevice::write().
|
static |
void qt_addBitmapToPath | ( | qreal | x0, |
qreal | y0, | ||
const uchar * | image_data, | ||
int | bpl, | ||
int | w, | ||
int | h, | ||
QPainterPath * | path | ||
) |
Definition at line 487 of file qfontengine.cpp.
Referenced by QFontEngine::addBitmapFontToPath(), QFreetypeFace::addBitmapToPath(), QFreetypeFace::addGlyphToPath(), and QFontEngineXLFD::addOutlineToPath().
FT_Library qt_getFreetype | ( | ) |
Definition at line 162 of file qfontengine_ft.cpp.
Referenced by QBasicUnixFontDatabase::addTTFile(), QFontDatabasePrivate::addTTFile(), QFontEngineFT::loadGlyph(), and queryFont().
QtFreetypeData* qt_getFreetypeData | ( | ) |
Definition at line 153 of file qfontengine_ft.cpp.
Referenced by QFreetypeFace::getFace(), qt_getFreetype(), and QFreetypeFace::release().
|
static |
|
static |
Definition at line 1215 of file qfontengine_ft.cpp.
Referenced by QFontEngineFT::minRightBearing().
|
static |
Definition at line 1236 of file qfontengine_ft.cpp.
Referenced by QFontEngineFT::minRightBearing().
|
static |
Definition at line 548 of file qfontengine_ft.cpp.
Referenced by filterPixel().