2010-04-06 13:19:39 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 04:12:37 -07:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-04-06 13:19:39 -07:00
|
|
|
|
|
|
|
#ifndef GFX_DWRITESHAPER_H
|
|
|
|
#define GFX_DWRITESHAPER_H
|
|
|
|
|
|
|
|
#include "gfxDWriteFonts.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Class representing a DWrite font shaper.
|
|
|
|
*/
|
|
|
|
class gfxDWriteShaper : public gfxFontShaper
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
gfxDWriteShaper(gfxDWriteFont *aFont)
|
|
|
|
: gfxFontShaper(aFont)
|
2010-05-05 03:10:36 -07:00
|
|
|
{
|
|
|
|
MOZ_COUNT_CTOR(gfxDWriteShaper);
|
|
|
|
}
|
2010-04-06 13:19:39 -07:00
|
|
|
|
2010-05-05 03:10:36 -07:00
|
|
|
virtual ~gfxDWriteShaper()
|
|
|
|
{
|
|
|
|
MOZ_COUNT_DTOR(gfxDWriteShaper);
|
|
|
|
}
|
2010-04-06 13:19:39 -07:00
|
|
|
|
2013-01-04 10:35:37 -08:00
|
|
|
virtual bool ShapeText(gfxContext *aContext,
|
2014-01-04 07:02:17 -08:00
|
|
|
const char16_t *aText,
|
2013-01-04 10:35:37 -08:00
|
|
|
uint32_t aOffset,
|
|
|
|
uint32_t aLength,
|
|
|
|
int32_t aScript,
|
|
|
|
gfxShapedText *aShapedText);
|
2010-04-06 13:19:39 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* GFX_DWRITESHAPER_H */
|