no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / gfx / 2d / DWriteSettings.h
blob39a46cfb6d6b181eb22b7d2f35ff762306550477
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
7 #ifndef MOZILLA_GFX_2D_DWRITESETTINGS_H_
8 #define MOZILLA_GFX_2D_DWRITESETTINGS_H_
10 #include <dwrite.h>
12 #include "mozilla/AlreadyAddRefed.h"
13 #include "Types.h"
15 namespace mozilla {
16 namespace gfx {
18 class DWriteSettings final {
19 public:
20 static void Initialize();
22 static DWriteSettings& Get(bool aGDISettings);
24 Float ClearTypeLevel();
25 Float EnhancedContrast();
26 Float Gamma();
27 DWRITE_PIXEL_GEOMETRY PixelGeometry();
28 DWRITE_RENDERING_MODE RenderingMode();
29 DWRITE_MEASURING_MODE MeasuringMode();
30 already_AddRefed<IDWriteRenderingParams> RenderingParams();
32 private:
33 explicit DWriteSettings(bool aUseGDISettings);
35 const bool mUseGDISettings;
38 } // namespace gfx
39 } // namespace mozilla
41 #endif // MOZILLA_GFX_2D_DWRITESETTINGS_H_