$OpenBSD: patch-third_party_WebKit_Source_platform_fonts_SimpleFontData_cpp,v 1.9 2017/04/28 22:22:36 robert Exp $
--- third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp.orig.port	Fri Apr 28 07:36:39 2017
+++ third_party/WebKit/Source/platform/fonts/SimpleFontData.cpp	Fri Apr 28 07:36:52 2017
@@ -50,7 +50,7 @@ namespace blink {
 const float smallCapsFontSizeMultiplier = 0.7f;
 const float emphasisMarkFontSizeMultiplier = 0.5f;
 
-#if OS(LINUX) || OS(ANDROID)
+#if OS(LINUX) || OS(ANDROID) || OS(OPENBSD)
 // This is the largest VDMX table which we'll try to load and parse.
 static const size_t maxVDMXTableSize = 1024 * 1024;  // 1 MB
 #endif
@@ -109,7 +109,7 @@ void SimpleFontData::platformInit(bool subpixelAscentD
   int vdmxAscent = 0, vdmxDescent = 0;
   bool isVDMXValid = false;
 
-#if OS(LINUX) || OS(ANDROID)
+#if OS(LINUX) || OS(ANDROID) || OS(OPENBSD)
   // Manually digging up VDMX metrics is only applicable when bytecode hinting
   // using FreeType.  With DirectWrite or CoreText, no bytecode hinting is ever
   // done.  This code should be pushed into FreeType (hinted font metrics).
@@ -157,7 +157,7 @@ void SimpleFontData::platformInit(bool subpixelAscentD
       visual_overflow_inflation_for_ascent_ = 1;
     if (descent < metrics.fDescent) {
       visual_overflow_inflation_for_descent_ = 1;
-#if OS(LINUX) || OS(ANDROID)
+#if OS(LINUX) || OS(ANDROID) || OS(OPENBSD)
       // When subpixel positioning is enabled, if the descent is rounded down,
       // the descent part of the glyph may be truncated when displayed in a
       // 'overflow: hidden' container.  To avoid that, borrow 1 unit from the
