Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: mime.types: update font types
To:
"Anthony J. Bentley" <bentley@openbsd.org>
Cc:
tech@openbsd.org
Date:
Mon, 23 Mar 2026 07:16:21 +0100

Download raw body.

Thread
On Mon, Mar 23, 2026 at 12:01:51AM -0600, Anthony J. Bentley wrote:
> Hi,
> 
> Our mime.types file declares .woff's MIME type to be
> "application/font-woff". This was explicitly deprecated
> in RFC 8081, replaced with "font/woff".
> 
> Our mime.types file also declares .otf's MIME type to be
> "application/vnd.oasis.opendocument.formula-template". This
> seems to be some LibreOffice file format. Apache associates
> that type with .odft instead, and .otf with "font/otf" which
> seems much more sensible to me.
> 
> I've updated those types and also added the remaining RFC 8081 types
> for .woff2, .ttf, and .ttc, all of which are common in ports and
> (except ttc) various ports install in /var/www, either individually
> or as part of a web application.
> 
> ok?

RFC 8081 also defines font/sfnt (not used in ports, apparently).

ok tb

> 
> --- share/misc/mime.types
> +++ share/misc/mime.types
> @@ -1,7 +1,6 @@
>  #	$OpenBSD: mime.types,v 1.6 2025/10/26 09:52:05 florian Exp $
>  
>  application/atom+xml					atom
> -application/font-woff					woff
>  application/java-archive				jar war ear
>  application/javascript					js
>  application/json					json
> @@ -26,7 +25,7 @@ application/vnd.oasis.opendocument.chart		odc
>  application/vnd.oasis.opendocument.chart-template	otc
>  application/vnd.oasis.opendocument.database		odb
>  application/vnd.oasis.opendocument.formula		odf
> -application/vnd.oasis.opendocument.formula-template	otf
> +application/vnd.oasis.opendocument.formula-template	odft
>  application/vnd.oasis.opendocument.graphics		odg
>  application/vnd.oasis.opendocument.graphics-template	otg
>  application/vnd.oasis.opendocument.image		odi
> @@ -66,6 +65,12 @@ audio/ogg						ogg
>  audio/x-m4a						m4a
>  audio/x-realaudio					ra
>  
> +font/collection						ttc
> +font/otf						otf
> +font/ttf						ttf
> +font/woff						woff
> +font/woff2						woff2
> +
>  image/avif						avif
>  image/gif						gif
>  image/jpeg						jpeg jpg
>