The Font ID endpoint allows you to retrieve detailed information about a specific font from Fontsource. The font ID is appended to the base URL as follows:
The API response for the Font ID endpoint is a JSON object that provides comprehensive details about the font.
Example response for the “Abel” font:
The Font ID response includes the following properties:
id:** The unique identifier of the font.
family:** The name of the font family.
subsets:** An array of string subsets supported by the font.
weights:** An array of integer weights available for the font.
styles:** An array of string styles which may contain
unicodeRange:** An object containing the unicode range for each subset. The key is the subset name and the value is the unicode range.
defSubset:** The default subset for the font.
variable:** A boolean value indicating if the font is a variable font.
lastModified:** The date the font was last modified.
category:** The font category or classification.
version:** The source version of the font.
type:** The source type of the font.
variants:** An object containing the variants of the font. The key is the weight and the value is an object containing the styles and subsets for that weight.
variantsproperty further includes variant-specific details such as URLs for different file formats (
ttf) based on subsets, weights, and styles.
Please note that the provided example response represents the “Abel” font, and the actual response for other fonts may vary based on their specific attributes and settings.