summaryrefslogtreecommitdiff
path: root/chromium/ui/gfx/text_utils_skia.cc
blob: a959fe6b95f33962e232257a80ca83b3ba82b7b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2013 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.

#include "ui/gfx/text_utils.h"

#include "ui/gfx/canvas.h"

namespace gfx {

int GetStringWidth(const base::string16& text,
                   const FontList& font_list,
                   Typesetter typesetter) {
  return Canvas::GetStringWidth(text, font_list, typesetter);
}

float GetStringWidthF(const base::string16& text,
                      const FontList& font_list,
                      Typesetter typesetter) {
  return Canvas::GetStringWidthF(text, font_list, typesetter);
}

}  // namespace gfx