summaryrefslogtreecommitdiffstats
path: root/ui/gfx/win/direct_write.h
blob: f16e45c31410c09891f9f7b6e5359f9a8863c7b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_GFX_WIN_DIRECT_WRITE_H_
#define UI_GFX_WIN_DIRECT_WRITE_H_

#include "ui/gfx/gfx_export.h"

namespace gfx {
namespace win {

// Returns whether DirectWrite font rendering should be used.
GFX_EXPORT bool ShouldUseDirectWrite();

GFX_EXPORT void MaybeInitializeDirectWrite();

// Returns true if we are using DirectWrite for font metrics and rendering.
GFX_EXPORT bool IsDirectWriteEnabled();

}  // namespace win
}  // namespace gfx

#endif  // UI_GFX_WIN_DIRECT_WRITE_H_