You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Manuel Strehl edited this page Jul 15, 2013
·
5 revisions
Request a Sample Glyph
This endpoint returns a PNG image.
Template for this request:
http://codepoints.net/api/v1/glyph/{codepoint}
where {codepoint} is a hexadecimal number. The response is a 16x16 pixel
glyph as rendered on the main site.
Response
A sample response image looks like this:
Possible Errors
In all cases a PNG image will be returned. It is the usual representation of
an unknown Unicode codepoint, a question mark in a diamond.
(The same as the main site’s favicon.)
400 Bad Request: If the value for {codepoint} is not a valid hexadecimal
number.
404 Not Found: If the value for {codepoint} has no associated image
(but is a valid hexadecimal number). This says nothing about whether the
codepoint exists or not! use the codepoint or
name endpoints for this.