[os2] minor spacing tweaks
authorEbrahim Byagowi <ebrahim@gnu.org>
Sat, 20 Jul 2019 08:23:40 +0000 (12:53 +0430)
committerEbrahim Byagowi <ebrahim@gnu.org>
Sat, 20 Jul 2019 08:23:40 +0000 (12:53 +0430)
src/hb-ot-os2-table.hh

index aa1e75d..67f21eb 100644 (file)
@@ -117,8 +117,8 @@ struct OS2
     OBLIQUE            = 1u<<9
   };
 
-  bool is_italic () const       { return fsSelection & ITALIC; }
-  bool is_oblique () const      { return fsSelection & OBLIQUE; }
+  bool is_italic () const        { return fsSelection & ITALIC; }
+  bool is_oblique () const       { return fsSelection & OBLIQUE; }
   bool use_typo_metrics () const { return fsSelection & USE_TYPO_METRICS; }
 
   enum width_class_t {
@@ -196,13 +196,14 @@ struct OS2
   }
 
   static void find_min_and_max_codepoint (const hb_set_t *codepoints,
-                                                uint16_t *min_cp, /* OUT */
-                                                uint16_t *max_cp  /* OUT */)
+                                         uint16_t *min_cp, /* OUT */
+                                         uint16_t *max_cp  /* OUT */)
   {
     *min_cp = codepoints->get_min ();
     *max_cp = codepoints->get_max ();
   }
 
+  /* https://github.com/Microsoft/Font-Validator/blob/520aaae/OTFontFileVal/val_OS2.cs#L644-L681 */
   enum font_page_t {
     HEBREW_FONT_PAGE           = 0xB100, // Hebrew Windows 3.1 font page
     SIMP_ARABIC_FONT_PAGE      = 0xB200, // Simplified Arabic Windows 3.1 font page
@@ -212,8 +213,6 @@ struct OS2
     TRAD_FARSI_FONT_PAGE       = 0xBB00, // Traditional Farsi Windows 3.1 font page
     THAI_FONT_PAGE             = 0xDE00  // Thai Windows 3.1 font page
   };
-
-  // https://github.com/Microsoft/Font-Validator/blob/520aaae/OTFontFileVal/val_OS2.cs#L644-L681
   font_page_t get_font_page () const
   { return (font_page_t) (version == 0 ? fsSelection & 0xFF00 : 0); }