# WOFF2 omitted from custom font measurements?

**URL:** <https://discuss.httparchive.org/t/woff2-omitted-from-custom-font-measurements/1250>\
**Category:** Analysis\
**Created:** [February 27, 2018, 8:13am UTC](https://discuss.httparchive.org/t/woff2-omitted-from-custom-font-measurements/1250 "2018-02-27T08:13:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![svgeesus](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/svgeesus/32/1145_2.png) [@svgeesus](https://discuss.httparchive.org/u/svgeesus)\
**Post date:** [February 27, 2018, 8:13am UTC](https://discuss.httparchive.org/t/woff2-omitted-from-custom-font-measurements/1250/1 "2018-02-27T08:13:45Z")

</div>

From the FAQ:

> Sites with Custom Fonts  
> This chart shows the percentage of sites that make at least one request for a custom font. The determination of a custom font request is based on the Content-Type response header. However, since many fonts today do not have the proper Content-Type value, we also include requests that end in “.eot”, “.ttf”, “.woff”, or “.otf”, or contain “.eot?”, “.ttf?”, “.woff?”, or “.otf?” (i.e., a querystring).

If the criterion is “ends in” then .woff will not match .woff2 which implies that the numbers for downloadable fonts are too low. This is particularly problematic given that Google fonts serves WOFF2 to Chrome (in preference to WOFF) for the past three years.

---

<div class="post-metadata">

**Author:** ![rviscomi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/rviscomi/32/835_2.png) [@rviscomi](https://discuss.httparchive.org/u/rviscomi)\
**Post date:** [February 28, 2018, 5:45am UTC](https://discuss.httparchive.org/t/woff2-omitted-from-custom-font-measurements/1250/2 "2018-02-28T05:45:19Z")

</div>

Not as familiar with the metrics on the legacy website, so I’m using the source code for reference.

> <https://github.com/HTTPArchive/httparchive/blob/814502e7ac84f61c46b96275bce1b4cf092150af/stats.inc#L622-L625>

The custom fonts metric is the percent of pages with at least one font request.

> <https://github.com/HTTPArchive/httparchive/blob/b52c778f67f7d3217e5c1e763372d4ee0a66e5a3/bulktest/batch_lib.inc#L948-L950>

And a request is identified as a font if its file extension ends in `woff2`, among others.

So the metric should be accurate for your use case. It’s just a matter of the documentation not being up to date.

---

<div class="post-metadata">

**Author:** ![svgeesus](https://yyz1.discourse-cdn.com/flex035/user_avatar/discuss.httparchive.org/svgeesus/32/1145_2.png) [@svgeesus](https://discuss.httparchive.org/u/svgeesus)\
**Post date:** [February 28, 2018, 5:24pm UTC](https://discuss.httparchive.org/t/woff2-omitted-from-custom-font-measurements/1250/3 "2018-02-28T17:24:20Z")

</div>

Excellent, thanks for checking on this!
