def run():
	global debug
	dontShowDialog = 1
	if haveAC:
		result = 2
		dontShowDialog = checkControlKeyPress()
		debug =  not checkShiftKeyPress()
		if dontShowDialog:
			print "Hold down CONTROL key while starting this script in order to set options."
			if fl.count == 0:
				print "You must have a font open to run auto-hint"
			else:
				options = ACOptions()
				options._getPrefs() # load current settings from prefs
				options.debug = debug
				doHinting(options)
		else:
			# I do this funky little loop so that control will return to the main dialog after showing help.
			# Odd things happen to the dialog focus if you call the help dialgo directly from the main dialog.
			# in FontLab 4.6
			while result == 2:
				ACd = ACDialog()
				result = ACd.Run() # returns 0 for cancel, 1 for ok, 2 for help
				if result == 1:
					options = ACOptions()
					options._getPrefs() # load current settings from prefs
					options.debug = debug
					doHinting(options)
				elif result == 2:
					ACh = ACHelpDialog()
					result = ACh.Run() # returns 0 for cancel, 2 for ok
def run():
    global debug
    if fl.count == 0:
        print 'No font opened.'
        return

    if len(fl.font) == 0:
        print 'The font has no glyphs.'
        return

    else:
        dontShowDialog = 1
        result = 2
        dontShowDialog = checkControlKeyPress()
        debug = not checkShiftKeyPress()
        if dontShowDialog:
            print "Hold down CONTROL key while starting this script in order to set options.\n"
            options = KernGenOptions()
            options._getPrefs()  # load current settings from prefs
            makeFeature(options)
        else:
            IGd = KernGenDialog()
            result = IGd.Run()  # returns 0 for cancel, 1 for ok
            if result == 1:
                options = KernGenOptions()
                options._getPrefs()  # load current settings from prefs
                makeFeature(options)
Beispiel #3
0
def run():
    global debug

    dontShowDialog = 1
    if coPath:
        result = 2
        dontShowDialog = checkControlKeyPress()
        debug = not checkShiftKeyPress()

        if dontShowDialog:
            print "Hold down CONTROL key while starting this script in order to set options."
            if fl.count == 0:
                print "You must have a font open to run auto-hint"
            else:
                options = CheckOutlineOptions()
                options._getPrefs()  # load current settings from prefs
                options.debug = debug
                doCheck(options)
        else:
            # I do this funky little loop so that control will return to the main dialgo after showing help.
            # Odd things happen to the dialog focus if you call the help dialgo directly from the main dialog.
            # in FontLab 4.6
            while result == 2:
                d = OutlineCheckDialog()
                result = d.Run()  # returns 0 for cancel, 1 for ok, 2 for help
                if result == 1:
                    options = CheckOutlineOptions()
                    options._getPrefs()  # load current settings from prefs
                    options.debug = debug
                    doCheck(options)
                elif result == 2:
                    ACh = ACHelpDialog()
                    result = ACh.Run()  # returns 0 for cancel, 2 for ok
def run():
	global debug
	if fl.count == 0:
		print 'No font opened.'
		return

	if len(fl.font) == 0:
		print 'The font has no glyphs.'
		return

	else:
		dontShowDialog = 1
		result = 2
		dontShowDialog = checkControlKeyPress()
		debug = not checkShiftKeyPress()
		if dontShowDialog:
			print "Hold down CONTROL key while starting this script in order to set options.\n"
			options = MarkGenOptions()
			options._getPrefs() # load current settings from prefs
			makeFeature(options)
		else:
			IGd = MarkGenDialog()
			result = IGd.Run() # returns 0 for cancel, 1 for ok
			if result == 1:
				options = MarkGenOptions()
				options._getPrefs() # load current settings from prefs
				makeFeature(options)
Beispiel #5
0
def run():
    global debug
    if fl.count == 0:
        print 'No font opened.'
        return

    if len(fl.font) == 0:
        print 'The font has no glyphs.'
        return

    if fl.font[0].layers_number == 1:
        print 'The font is not MM.'
        return

    else:
        dontShowDialog = 1
        result = 2
        dontShowDialog = checkControlKeyPress()
        debug = not checkShiftKeyPress()
        if dontShowDialog:
            print "Hold down CONTROL key while starting this script in order to set options.\n"
            options = InstGenOptions()
            options._getPrefs()  # load current settings from prefs
            makeInstances(options)
        else:
            # I do this funky little loop so that control will return to the main dialog after showing help.
            # Odd things happen to the dialog focus if you call the help dialog directly from the main dialog.
            # in FontLab 4.6
            while result == 2:
                IGd = InstGenDialog()
                result = IGd.Run(
                )  # returns 0 for cancel, 1 for ok, 2 for help
                if result == 1:
                    options = InstGenOptions()
                    options._getPrefs()  # load current settings from prefs
                    makeInstances(options)
                elif result == 2:
                    IGh = InstGenHelpDialog()
                    result = IGh.Run()  # returns 0 for cancel, 2 for ok
def run():
	global debug
	if fl.count == 0:
		print 'No font opened.'
		return

	if len(fl.font) == 0:
		print 'The font has no glyphs.'
		return

	if fl.font[0].layers_number == 1:
		print 'The font is not MM.'
		return

	else:
		dontShowDialog = 1
		result = 2
		dontShowDialog = checkControlKeyPress()
		debug =  not checkShiftKeyPress()
		if dontShowDialog:
			print "Hold down CONTROL key while starting this script in order to set options.\n"
			options = InstGenOptions()
			options._getPrefs() # load current settings from prefs
			makeInstances(options)
		else:
			# I do this funky little loop so that control will return to the main dialog after showing help.
			# Odd things happen to the dialog focus if you call the help dialog directly from the main dialog.
			# in FontLab 4.6
			while result == 2:
				IGd = InstGenDialog()
				result = IGd.Run() # returns 0 for cancel, 1 for ok, 2 for help
				if result == 1:
					options = InstGenOptions()
					options._getPrefs() # load current settings from prefs
					makeInstances(options)
				elif result == 2:
					IGh = InstGenHelpDialog()
					result = IGh.Run() # returns 0 for cancel, 2 for ok