diff options
Diffstat (limited to 'src/core/SkFontStyle.cpp')
-rw-r--r-- | src/core/SkFontStyle.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/core/SkFontStyle.cpp b/src/core/SkFontStyle.cpp deleted file mode 100644 index 996d383402..0000000000 --- a/src/core/SkFontStyle.cpp +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2015 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include "SkFontStyle.h" -#include "SkTypeface.h" -#include "SkTypes.h" - -/*static*/SkFontStyle SkFontStyle::FromOldStyle(unsigned oldStyle) { - return SkFontStyle((oldStyle & SkTypeface::kBold) ? SkFontStyle::kBold_Weight - : SkFontStyle::kNormal_Weight, - SkFontStyle::kNormal_Width, - (oldStyle & SkTypeface::kItalic) ? SkFontStyle::kItalic_Slant - : SkFontStyle::kUpright_Slant); -} |