This commit is contained in:
romashin 2008-04-19 18:37:23 +03:00
Родитель 22805a0c52
Коммит 55335215e0
2 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@ -50,10 +50,14 @@
#define ENABLE_FAST_PATH_8BIT 1
#define ENABLE_FAST_PATH_ALWAYS 1
class QFont;
class gfxQtFont : public gfxFont {
public:
gfxQtFont (const nsAString& aName,
const gfxFontStyle *aFontStyle);
gfxQtFont(QFont *aQFont, const nsAString &aName,
const gfxFontStyle *aFontStyle);
virtual ~gfxQtFont ();
virtual nsString GetUniqueName ();

Просмотреть файл

@ -47,6 +47,7 @@
#include "gfxQtFonts.h"
#include "qdebug.h"
#include "qrect.h"
#include <QFont>
#include <locale.h>
#include <cairo.h>
#include <QFontMetrics>
@ -472,6 +473,16 @@ gfxQtFont::gfxQtFont(const nsAString &aName,
{
}
gfxQtFont::gfxQtFont(QFont *aQFont, const nsAString &aName,
const gfxFontStyle *aFontStyle)
: gfxFont(aName, aFontStyle),
mQFont(aQFont), mCairoFont(nsnull),
mHasMetrics(PR_FALSE), mAdjustedSize(aFontStyle->size)
{
// g_object_ref(mPangoFont);
// g_object_set_qdata(G_OBJECT(mPangoFont), GetFontQuark(), this);
}
gfxQtFont::~gfxQtFont()
{
}