blob: db814e5a8e0a926e47c49aeb5d726db5d6ed01a9 [file] [log] [blame]
// 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/text_rendering_mode.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
String ToString(TextRenderingMode mode) {
switch (mode) {
case TextRenderingMode::kAutoTextRendering:
return "Auto";
case TextRenderingMode::kOptimizeSpeed:
return "OptimizeSpeed";
case TextRenderingMode::kOptimizeLegibility:
return "OptimizeLegibility";
case TextRenderingMode::kGeometricPrecision:
return "GeometricPrecision";
}
return "Unknown";
}
} // namespace blink