FontFileType class

FontFileType class

Represents font document types.

Includes the following types:

Learn more about font formats https://docs.fileformat.com/font/.

The FontFileType type exposes the following members:

Constructors

Constructor Description
init Initializes a FontFileType for serialization.

Methods

Method Description
compare_to Compares current object to other. (inherited from Enumeration)
compare_to_object (inherited from Enumeration)
equals Implements the equality comparison defined by Enumeration.equals. (inherited from FileType)
equals_enumeration (inherited from FileType)
equals_object (inherited from Enumeration)
from_display_name (inherited from Enumeration)
from_extension Gets the FileType for the provided file extension. (inherited from FileType)
from_filename Returns FileType for specified file_name. (inherited from FileType)
from_stream Returns FileType for provided document stream. (inherited from FileType)
from_value (inherited from Enumeration)
get_all (inherited from FileType)
get_hash_code Provides the default hash function. (inherited from Enumeration)
to_string String representation of file type. (inherited from FileType)

Properties

Property Description
description The file type description. (inherited from FileType)
extension The file extension. (inherited from FileType)
family The file family. (inherited from FileType)
file_format The file format. (inherited from FileType)

Fields

Field Description
TTF A file with .ttf extension represents font files based on the TrueType specifications font technology. It was initially designed and launched by Apple Computer, Inc for Mac OS and was later adopted by Microsoft for Windows OS. Learn more about this file format here.
EOT A file with .eot extension is an OpenType font that is embedded in a document. These are mostly used in web files such as a Web page. It was created by Microsoft and is supported by Microsoft Products including PowerPoint presentation .pps file. Learn more about this file format here.
OTF A file with .otf extension refers to OpenType font format. OTF font format is more scalable and extends the existing features of TTF formats for digital typography. Developed by Microsoft and Adobe, OTF combines the features of PostScript and TrueType font formats. Learn more about this file format here.
CFF A file with .cff extension is a Compact Font Format and is also known as a PostScript Type 1, or CIDFont. CFF acts as a container to store multiple fonts together in a single unit known as a FontSet. Learn more about this file format here.
TYPE1 Type 1 fonts is a deprecated Adobe technology which was widely used in the desktop based publishing software and printers that could use PostScript. Although Type 1 fonts are not supported in many modern platforms, web browsers and mobile operating systems, but these are still supported in some of the operating systems. Learn more about this file format here.
WOFF A file with .woff extension is a web font file based on the Web Open Font Format (WOFF). It has format-specific compressed container based on either TrueType (.TTF) or OpenType (.OTT) font types. Learn more about this file format here.
WOFF2 A file with .woff extension is a web font file based on the Web Open Font Format (WOFF). It has format-specific compressed container based on either TrueType (.TTF) or OpenType (.OTT) font types. Learn more about this file format here.
UNKNOWN Unknown file type (inherited from FileType)

See Also