Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / ui / gfx / harfbuzz_font_skia.h
blobdf8a3312b91dc799550c77b8d2f97e6ca37c020d
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_GFX_HARFBUZZ_FONT_SKIA_H_
6 #define UI_GFX_HARFBUZZ_FONT_SKIA_H_
8 #include "third_party/harfbuzz-ng/src/hb.h"
9 #include "third_party/skia/include/core/SkScalar.h"
10 #include "ui/gfx/font_render_params.h"
12 class SkTypeface;
14 namespace gfx {
16 hb_font_t* CreateHarfBuzzFont(SkTypeface* skia_face,
17 SkScalar text_size,
18 const FontRenderParams& params,
19 bool subpixel_rendering_suppressed);
21 } // namespace gfx
23 #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_