blob: ec22a00634547c69801a38e1736d1ab0c26d6224 (
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
25
26
27
28
29
|
// 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 <dwrite.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();
// Creates a DirectWrite factory, if using DirectWrite.
GFX_EXPORT void CreateDWriteFactory(IDWriteFactory** factory);
} // namespace win
} // namespace gfx
#endif // UI_GFX_WIN_DIRECT_WRITE_H_
|