protected LocaTable ( TrueTypeFont ttf ) { super ( TrueTypeTable . LOCA_TABLE ) ; MaxpTable maxp = ( MaxpTable ) ttf . getTable ( "maxp" ) ; int numGlyphs = maxp . getNumGlyphs ( ) ; HeadTable head = ( HeadTable ) ttf . getTable ( "head" ) ; short format = head . getIndexToLocFormat ( ) ; isLong = ( format == 1 ) ; offsets = new int [ numGlyphs + 1 ] ; }
Creates a new instance of HmtxTable