Line data Source code
1 : /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 : * This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : #ifndef MOZILLA_GFX_SCALEDFONTCAIRO_H_
7 : #define MOZILLA_GFX_SCALEDFONTCAIRO_H_
8 :
9 : #include "ScaledFontBase.h"
10 :
11 : #include "cairo.h"
12 :
13 : namespace mozilla {
14 : namespace gfx {
15 :
16 0 : class ScaledFontCairo : public ScaledFontBase
17 : {
18 : public:
19 0 : MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(ScaledFontCairo)
20 :
21 : ScaledFontCairo(cairo_scaled_font_t* aScaledFont,
22 : const RefPtr<UnscaledFont>& aUnscaledFont,
23 : Float aSize);
24 :
25 : #if defined(USE_SKIA) && defined(MOZ_ENABLE_FREETYPE)
26 : virtual SkTypeface* GetSkTypeface();
27 : #endif
28 : };
29 :
30 : } // namespace gfx
31 : } // namespace mozilla
32 :
33 : #endif /* MOZILLA_GFX_SCALEDFONTCAIRO_H_ */
|