<s> try : <EOL> from mojo . roboFont import CurrentFont , CurrentGlyph <EOL> except ImportError : <EOL> from robofab . world import CurrentFont , CurrentGlyph <EOL> from vanilla import * <EOL> from hTools2 import hDialog <EOL> from hTools2 . dialogs . misc import Spinner <EOL> from hTools2 . modules . fontutils import get_full_name <EOL> from hTools2 . modules . messages import no_font_open <EOL> class adjustVerticalMetrics ( hDialog ) : <EOL> """<STR_LIT>""" <EOL> ascender_min = <NUM_LIT:1> <EOL> capheight_min = <NUM_LIT:1> <EOL> xheight_min = <NUM_LIT:1> <EOL> descender_min = <NUM_LIT:1> <EOL> column_1 = <NUM_LIT> <EOL> column_2 = <NUM_LIT:200> <EOL> column_3 = <NUM_LIT> <EOL> moveX = <NUM_LIT:0> <EOL> moveY = <NUM_LIT:0> <EOL> def __init__ ( self ) : <EOL> self . title = "<STR_LIT>" <EOL> self . height = ( self . spinner_height * <NUM_LIT:5> ) + ( self . padding_y * <NUM_LIT:6> ) + <NUM_LIT:1> <EOL> self . w = FloatingWindow ( ( self . width , self . height ) , self . title ) <EOL> x = <NUM_LIT:0> <EOL> y = self . padding_y <EOL> self . w . emsquare = Spinner ( <EOL> ( x , y ) , <EOL> default = '<STR_LIT>' , <EOL> scale = <NUM_LIT:1> , <EOL> integer = True , <EOL> label = '<STR_LIT>' ) <EOL> y += self . spinner_height + self . padding_y <EOL> self . w . xheight = Spinner ( <EOL> ( x , y ) , <EOL> default = '<STR_LIT>' , <EOL> scale = <NUM_LIT:1> , <EOL> integer = True , <EOL> label = '<STR_LIT>' ) <EOL> y += self . spinner_height + self . padding_y <EOL> self . w . capheight = Spinner ( <EOL> ( x , y ) , <EOL> default = '<STR_LIT>' , <EOL> scale = <NUM_LIT:1> , <EOL> integer = True , <EOL> label = '<STR_LIT>' ) <EOL> y += self . spinner_height + self . padding_y <EOL> self . w . ascender = Spinner ( <EOL> ( x , y ) , <EOL> default = '<STR_LIT>' , <EOL> scale = <NUM_LIT:1> , <EOL> integer = True , <EOL> label = '<STR_LIT>' ) <EOL> y += self . spinner_height + self . padding_y <EOL> self . w . descender = Spinner ( <EOL> ( x , y ) , <EOL> default = '<STR_LIT>' , <EOL> scale = <NUM_LIT:1> , <EOL> integer = True , <EOL> label = '<STR_LIT>' ) <EOL> y += self . spinner_height + self . padding_y <EOL> self . w . open ( ) </s>
