font_fallback_skia_impl.h 714 B

1234567891011121314151617181920212223
  1. // Copyright 2019 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_FONT_FALLBACK_SKIA_IMPL_H_
  5. #define UI_GFX_FONT_FALLBACK_SKIA_IMPL_H_
  6. #include <string>
  7. #include "base/strings/string_piece.h"
  8. #include "ui/gfx/font.h"
  9. #include "third_party/skia/include/core/SkRefCnt.h"
  10. #include "third_party/skia/include/core/SkTypeface.h"
  11. namespace gfx {
  12. sk_sp<SkTypeface> GetSkiaFallbackTypeface(const Font& template_font,
  13. const std::string& locale,
  14. base::StringPiece16 text);
  15. }
  16. #endif // UI_GFX_FONT_FALLBACK_SKIA_IMPL_H_