def setupTable_VORG(self):
        """
        Make the VORG table.

        **This should not be called externally.** Subclasses
        may override or supplement this method to handle the
        table creation in a different way if desired.
        """
        if "VORG" not in self.tables:
            return

        self.otf["VORG"] = vorg = newTable("VORG")
        vorg.majorVersion = 1
        vorg.minorVersion = 0
        vorg.VOriginRecords = {}
        # Find the most frequent verticalOrigin
        vorg_count = Counter(_getVerticalOrigin(self.otf, glyph)
                             for glyph in self.allGlyphs.values())
        vorg.defaultVertOriginY = vorg_count.most_common(1)[0][0]
        if len(vorg_count) > 1:
            for glyphName, glyph in self.allGlyphs.items():
                vorg.VOriginRecords[glyphName] = _getVerticalOrigin(
                    self.otf, glyph)
        vorg.numVertOriginYMetrics = len(vorg.VOriginRecords)
def setupTable_VORG ( self ) : if "VORG" not in self . tables : return self . otf [ "VORG" ] = vorg = newTable ( "VORG" ) vorg . majorVersion = 1 vorg . minorVersion = 0 vorg . VOriginRecords = { } vorg_count = Counter ( _getVerticalOrigin ( self . otf , glyph ) for glyph in self . allGlyphs . values ( ) ) vorg . defaultVertOriginY = vorg_count . most_common ( 1 ) [ 0 ] [ 0 ] if len ( vorg_count ) > 1 : for glyphName , glyph in self . allGlyphs . items ( ) : vorg . VOriginRecords [ glyphName ] = _getVerticalOrigin ( self . otf , glyph ) vorg . numVertOriginYMetrics = len ( vorg . VOriginRecords )
Make the VORG table.

        **This should not be called externally.** Subclasses
        may override or supplement this method to handle the
        table creation in a different way if desired.