FontFileType class

FontFileType class

Defines Font documents Includes the following types: FontFileType.TtfFontFileType.EotFontFileType.OtfFontFileType.CffFontFileType.Type1FontFileType.WoffFontFileType.Woff2 Learn more about Font formats here.

Inheritance: FontFileTypeFileTypeEnumeration

The FontFileType type exposes the following members:

Constructors

Constructor Description
init Serialization constructor

Properties

Property Description
file_format The file format
extension The file extension
family The file family
description File type description
UNKNOWN Unknown file type
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.

Methods

Method Description
equals Implements Enumeration.equals
compare_to Compares current object to other.
from_filename Returns FileType for specified fileName
from_extension Gets FileType for provided fileExtension
from_stream Returns FileType for provided document stream

See Also