michael@0: /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef GFX_DWRITESHAPER_H michael@0: #define GFX_DWRITESHAPER_H michael@0: michael@0: #include "gfxDWriteFonts.h" michael@0: michael@0: /** michael@0: * \brief Class representing a DWrite font shaper. michael@0: */ michael@0: class gfxDWriteShaper : public gfxFontShaper michael@0: { michael@0: public: michael@0: gfxDWriteShaper(gfxDWriteFont *aFont) michael@0: : gfxFontShaper(aFont) michael@0: { michael@0: MOZ_COUNT_CTOR(gfxDWriteShaper); michael@0: } michael@0: michael@0: virtual ~gfxDWriteShaper() michael@0: { michael@0: MOZ_COUNT_DTOR(gfxDWriteShaper); michael@0: } michael@0: michael@0: virtual bool ShapeText(gfxContext *aContext, michael@0: const char16_t *aText, michael@0: uint32_t aOffset, michael@0: uint32_t aLength, michael@0: int32_t aScript, michael@0: gfxShapedText *aShapedText); michael@0: }; michael@0: michael@0: #endif /* GFX_DWRITESHAPER_H */