What is MIME type "application/x-font-type1"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

application/x-font-type1 is a MIME type for Adobe Type 1 fonts. These files hold outline data for digital type. They ensure that fonts render correctly in design and printing software.

Files using this type include those in the PFA and PFB formats. One contains the ASCII-encoded data and the other holds binary font details.

For more details on MIME types, check out MDN Web Docs.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: application/x-font-type1    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="application/x-font-type1">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'application/x-font-type1');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

Can I use application/x-font-type1 for web fonts in modern browsers?

Generally, no. Modern web browsers do not support Adobe Type 1 fonts (.pfa or .pfb) for web typography via @font-face. For web design, you should convert these fonts to WOFF, WOFF2, or OpenType formats and use standard MIME types like font/woff2.

Which file extensions are associated with application/x-font-type1?

This MIME type is primarily used for .pfa (Printer Font ASCII) and .pfb (Printer Font Binary) files. You can learn more about these specific extensions at pfa and pfb.

How do I configure Apache to serve Type 1 fonts correctly?

To ensure your server sends the correct header, add the following line to your .htaccess file or main configuration: AddType application/x-font-type1 .pfa .pfb. This ensures that legacy applications or download managers recognize the file type correctly.

Is the application/x-font-type1 format still supported by Adobe?

Adobe officially ended support for authoring with Type 1 fonts in January 2023. While existing files with the application/x-font-type1 type will still work in some legacy systems, users are strongly encouraged to convert their font libraries to OpenType (.otf) formats.

What is the difference between PFA and PFB files using this MIME type?

While both use application/x-font-type1, the content encoding differs. PFA files contain ASCII text data (originally for Unix systems), whereas PFB files contain binary data (originally for Windows). Both provide the outline data required to render the font.

Why does this MIME type start with "x-"?

The x- prefix indicates that application/x-font-type1 is a non-standard or experimental subtype that was not officially registered in the IANA standards tree. However, it became the accepted de facto standard for identifying PostScript Type 1 font files on the web.

How do I add support for this MIME type in Nginx?

In your nginx.conf or mime.types file, locate the types block and insert the mapping: application/x-font-type1 pfa pfb;. Afterwards, reload Nginx to apply the changes.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.