Font Metadata | API Solution for .NET

Metadata of a file

Let’s start with the definition of metadata in common to then understand its meaning for fonts.

Metadata of a file is information about the file that is stored along with the file or in a separate database. This information includes details about the file’s format, creation date, author, location, size, and other attributes. Metadata can also include information about the content of the file, such as keywords, tags, and descriptions.

You can see some Metadata on your device(see the picture below). It is important for managing and organizing files, as it allows you to search, filter, and sort files relying on different criteria. For example, it is common to arrange the content of your folders relying on the date the files were created. Or in some cases, you may need to arrange your files in alphabetical order. Metadata is also used by software applications to display and manipulate files correctly, as well as by operating systems to index and search for files on a computer.

Files in a folder on a pc

What is font metadata?

Font metadata refers to information about a font embedded within the font file itself. This is information like the font name, the designer’s name, the font version number, the copyright information, and the font’s usage restrictions. Some files can also include the font’s character set, its encoding, and its metrics information. This data helps define the way the font is placed in the text and is important for font identification, licensing, and management. Font metadata is often used by software applications to display and manipulate fonts correctly.

Types of font metadata

Font metadata can include various types of information. Here is the list of them grouped in the table:

TypeDescription
Font nameUnique identifier used in the PostScript language to refer to a particular font. It is typically a shortened version of the font’s full name limited to 29 characters. This metric is used to identify the font within a PostScript document and is often required when embedding or outlining fonts.
Postscript nameUnique identifier used in the PostScript language to refer to a particular font. It is typically a shortened version of the font’s full name limited to 29 characters. This metric is used to identify the font within a PostScript document and is often required when embedding or outlining fonts.
Font familyIn short, it is a group of related fonts of similar characteristics, such as weight, style, and width.
Font styleIt divides fonts into regular, italic, bold, or bold italic.
Font weightIt stands for the thickness or heaviness of the font, from thin to ultra-bold.
Font widthThe relative width of the font, from condensed to expanded.
Font designerThe name of the individual or company that created the font.
Manufacturer Name/Font foundryThe name of the company that created or distributed the font.
Character setThe set of characters that the font supports, which can include letters, numbers, symbols, and punctuation marks.
Num GlyphsThe information about the number of glyphs in the font.
Font versionSpecific version or release of the font.
Font formatThe file format in which the font is stored, such as TTF, WOFF, Type1, etc.
Font licensing informationThis information is divided into License Description and License info URL. License Description explains the terms and conditions under which the font can be used. It can vary depending on the type of license.

To see all the metadata enclosed in the file you may use specific software or cross-platform applications like the one Aspose has in its ecosystem. Font Metadata Viewer now lets you get information about TTF, WOFF, and WOFF2 fonts.

Result of rendering font metadata by Aspose Metadata Viewer

Use of font metadata

Font metadata is used to provide additional information about a font, beyond just its design and appearance. It includes different common information and also technical details. But what is the point of all this information and how it can be used?

How do operating systems use font metadata?

The way font metadata is used is already explained, so let’s have a look at how operating systems use it for fulfilling the above mentioned functions.

Font file formats, such as OpenType and TrueType, also support digital rights management features. DRM features use metadata to enforce licensing restrictions and can limit the number of devices or users with access to a font, prevent font embedding in documents, and restrict usage of the fonts to specific apps or platforms.

Standardizing font metadata

Font metadata standards are sets of guidelines and specifications to define the information and data that should be included with a font file. There are several different metadata standards for fonts, including OpenType, TrueType, and PostScript fonts. Each of them has its own specific requirements and formats.

Metadata standards for OpenType fonts

The metadata standard for OpenType fonts is called the OpenType Font File Specification. It includes guidelines on how to include metadata that can be stored within the font file itself, in a separate file alongside the font, or embedded in the font’s digital signature.

OpenType Font File Specification also describes how fonts can include additional information about their features and capabilities. This information is stored in a separate table within the font file, called the OpenType Layout table which has data such as language support, glyph substitution, and positioning rules, along with other advanced typographic features.

Metadata standards for TrueType fonts

OpenType Font File Specification also defines a standard format for TrueType fonts. It includes a variety of metadata fields. Let’s take a look at the key ones(some of them were already described):

Metadata standards for PostScript fonts

It is a set of guidelines to organize and present information about a font, such as its author, license, and design characteristics. This is the Adobe Type 1 Font Format that defines a standard format for PostScript fonts, which includes a variety of metadata fields like:

Metadata standards for WOFF fonts

Web Open Font Format is designed for use on the web. Metadata standards for WOFF fonts are defined by the WOFF File Format Specification. The fields with the metadata according to it look the next way:

Overall, different font formats have different standards of metadata included. It is defined by specifications and includes information about the fields that can be present in the metadata and the format of those fields. They are mostly similar for all the font formats but the names of the fields may have different formatting.

Best practices for font metadata

There are a few recommendations on how to write font metadata. Following them, you will ensure the fonts are easy to identify and accessible to users.

  1. Use consistent naming conventions across all metadata fields. It will make it easier for users to browse your fonts.
  2. Include complete information about your font.
  3. Write descriptions and other metadata fields in a simple and clear way, without complex sentences, terms, and local expressions.
  4. Use standard metadata fields that are widely recognized across different font formats.
  5. Use unique identifiers to prevent conflicts with other fonts and make your ones distinguishable.
  6. Keep your font metadata regularly updated.

These simple rules will help users choose your font among the big variety of competitors and eliminate future miscomprehension.

Conclusion

Font metadata can be a good tool to make your font more competitive. Understanding what information to add and how to write it properly will make your fonts more attractive, and professional looking to users. Adding all the necessary data and keeping it properly standardized and updated will help to get rid of possible misunderstandings with customers. It will also help protect fonts from pirating.

Have any questions about Aspose.Font?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.