Get the Font's name used to render text from a JPG/PNG/GIF image

Does anyone know a PHP script or solution to get the Font’s name used to render the text, using as input just the text image? (jpg, png, gif)

E.g. This is the input picture:

And I need the Font’s name used to render this text.

I’m not sure if you can derive a font from a single letter, but you can always try What the font. As for an automated script you can run yourself I don’t think those exist, but maybe What the font (or some similar service) has an API you can leverage.

2 Likes

I must agree that expecting good results from using a single glyph is likely a stretch. I’m not very knowledgeable or particular about fonts, (I’m usually happy enough with case, serif, sans serif, bold, and italic) but I have noticed that many fonts have more similarities to other fonts than they do differences. At least to my untrained eye.

Also as previously posted, there are many such services that a simple search will provide. WhatTheFont is perhaps the standard, but I imagine any well known “font” site that has been at it for a long time could be a good alternative. eg.

1 Like

Hi there vinhng91,

and a warm welcome to these forums. :winky:

The best method to discover a site’s fonts is to place the cursor over
the letter in question, “right click” and then select “Inspect Element”.

If you are planning some sort of user service, then just ask the user to
supply a link to the site. :winky:

Images on their own will, more often than not, be problematic. :wonky:

coothead

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.