The term "artificial intelligence" is applied when a machine mimics "cognitive" functions that humans associate with other human minds. Understanding the shape in a image, reading the text from a photo can also be considered AI.
Extracting characters from an image and comparing them to a database of known fonts using a naive distance metric can be called AI? Really?
The key term here is mimics - to be classified as intelligent, the an algorithm should be able to significantly mimic human level intelligence in your domain. For example if your algorithm could read human handwriting and predict what font it was written in, or maybe what font it's closely related to, is something that's closer to the AI bandwagon.
But that doesn't make it 'an AI'. That's a subtle difference but it matters.