| Index: third_party/WebKit/Source/platform/fonts/FontTraits.h
|
| diff --git a/third_party/WebKit/Source/platform/fonts/FontTraits.h b/third_party/WebKit/Source/platform/fonts/FontTraits.h
|
| index be8bc58f9fcacbdcbf280e28b7b690cf90837e9d..fb2c16f0454a6cb30b1fa99d9c7d01c85531a015 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/FontTraits.h
|
| +++ b/third_party/WebKit/Source/platform/fonts/FontTraits.h
|
| @@ -46,6 +46,12 @@ enum FontWeight {
|
| FontWeightBold = FontWeight700
|
| };
|
|
|
| +// Converts a FontWeight to its corresponding numeric value
|
| +inline int numericFontWeight(FontWeight weight)
|
| +{
|
| + return (weight - FontWeight100 + 1) * 100;
|
| +}
|
| +
|
| // Numeric values matching OS/2 & Windows Metrics usWidthClass table.
|
| // https://www.microsoft.com/typography/otspec/os2.htm
|
| enum FontStretch {
|
|
|