harfbuzz_font_skia.h 738 B

12345678910111213141516171819202122232425
  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.
  4. #ifndef UI_GFX_HARFBUZZ_FONT_SKIA_H_
  5. #define UI_GFX_HARFBUZZ_FONT_SKIA_H_
  6. #include "third_party/skia/include/core/SkRefCnt.h"
  7. #include "third_party/skia/include/core/SkScalar.h"
  8. #include "ui/gfx/font_render_params.h"
  9. #include <hb.h>
  10. class SkTypeface;
  11. namespace gfx {
  12. hb_font_t* CreateHarfBuzzFont(sk_sp<SkTypeface> skia_face,
  13. SkScalar text_size,
  14. const FontRenderParams& params,
  15. bool subpixel_rendering_suppressed);
  16. } // namespace gfx
  17. #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_