summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/fonts/font_smoothing_mode.cc
blob: 581814f0e5db92ed535b5e9072aa70d720802cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2017 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 "third_party/blink/renderer/platform/fonts/font_smoothing_mode.h"

#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"

namespace blink {

String ToString(FontSmoothingMode mode) {
  switch (mode) {
    case kAutoSmoothing:
      return "Auto";
    case kNoSmoothing:
      return "None";
    case kAntialiased:
      return "Antialiased";
    case kSubpixelAntialiased:
      return "SubpixelAntialiased";
  }
  return "Unknown";
}

}  // namespace blink