Index: Source/platform/fonts/FontDescription.cpp |
diff --git a/Source/platform/fonts/FontDescription.cpp b/Source/platform/fonts/FontDescription.cpp |
index 1022de52bfffeaa821fd6526c297b0aaf68b7cdd..0f6e36376ee7dd12fd6997d04838a742df2912fa 100644 |
--- a/Source/platform/fonts/FontDescription.cpp |
+++ b/Source/platform/fonts/FontDescription.cpp |
@@ -96,6 +96,16 @@ FontWeight FontDescription::bolderWeight(FontWeight weight) |
return FontWeightNormal; |
} |
+FontDescription::Size FontDescription::largerSize(const Size& size) |
+{ |
+ return Size(0, size.value * 1.2, size.isAbsolute); |
+} |
+ |
+FontDescription::Size FontDescription::smallerSize(const Size& size) |
+{ |
+ return Size(0, size.value / 1.2, size.isAbsolute); |
+} |
+ |
FontTraits FontDescription::traits() const |
{ |
return FontTraits(style(), variant(), weight(), stretch()); |