text_utils_skia.cc 525 B

12345678910111213141516171819
  1. // Copyright 2013 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. #include "ui/gfx/text_utils.h"
  5. #include "ui/gfx/canvas.h"
  6. namespace gfx {
  7. int GetStringWidth(const std::u16string& text, const FontList& font_list) {
  8. return Canvas::GetStringWidth(text, font_list);
  9. }
  10. float GetStringWidthF(const std::u16string& text, const FontList& font_list) {
  11. return Canvas::GetStringWidthF(text, font_list);
  12. }
  13. } // namespace gfx