[head] Remove commented out bogus error
Microsoft recommends that UPEM for *TrueType* fonts (i.e. fonts with
glyf table) be a power of two, but it is not a requirement and not even
a recommendation for fonts with CFF table.
diff --git a/src/head.cc b/src/head.cc
index d3bdadc..6088504 100644
--- a/src/head.cc
+++ b/src/head.cc
@@ -51,15 +51,6 @@
return Error("unitsPerEm on in the range [16, 16384]: %d", this->upem);
}
- // upem must be a power of two
-#if 0
- // We don't call ots_failure() for now since lots of TrueType fonts are
- // not following this rule. Putting a warning here is too noisy.
- if ((this->upem - 1) & this->upem) {
- return Error("ppm not a power of two: %d", this->upem);
- }
-#endif
-
if (!table.ReadR64(&this->created) ||
!table.ReadR64(&this->modified)) {
return Error("Can't read font dates");