blob: eb78885b1ff1f2a5dad14697204c28ff6b9c3ffb [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/font_width_variant.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
String ToString(FontWidthVariant variant) {
switch (variant) {
case FontWidthVariant::kRegularWidth:
return "Regular";
case FontWidthVariant::kHalfWidth:
return "Half";
case FontWidthVariant::kThirdWidth:
return "Third";
case FontWidthVariant::kQuarterWidth:
return "Quarter";
}
return "Unknown";
}
} // namespace blink