protected function execute(InputInterface $input, OutputInterface $output){

		$fontFile = realpath($input->getArgument('font-file'));
		if($fontFile === false || !file_exists($fontFile)){
			throw new \InvalidArgumentException('"'.$input->getArgument('font-file').'" does not exist');
		}

		$outputFile = $input->getArgument('output-file');

		$generator = new IconFontGenerator;

		$output->writeln('reading font file from "'.$fontFile.'" ...');
		$generator->generateFromFont(new Font(array(), file_get_contents($fontFile)));

		$output->writeln('writing HTML file to "'.$outputFile.'" ...');
		if ($input->getOption('as-list')) {
			$html = $this->getHTMLListFromGenerator($generator, basename($fontFile));
		}
		else {
			$html = $this->getHTMLFromGenerator($generator, basename($fontFile));
		}
		file_put_contents($outputFile, $html);

		$output->getFormatter()->setStyle('success', new OutputFormatterStyle(null, null, array('bold', 'reverse')));

		$output->writeln('<success>created HTML info page successfully</success>');

	}