diff --git a/doc/building.html b/doc/building.html
index 824b742ffe3..54828da9991 100644
--- a/doc/building.html
+++ b/doc/building.html
@@ -685,6 +685,8 @@ does not automatically locate the platform FreeType files.
Fontconfig is required on all platforms except Windows and
macOS.
+- To install on an apt-based Linux, try running
+
sudo apt-get install libfontconfig-dev
.
- To install on an rpm-based Linux, try running
sudo yum install fontconfig-devel
.
diff --git a/doc/building.md b/doc/building.md
index 801b758f7e0..d6d89d7887f 100644
--- a/doc/building.md
+++ b/doc/building.md
@@ -480,6 +480,8 @@ if `configure` does not automatically locate the platform FreeType files.
Fontconfig from [freedesktop.org Fontconfig](http://fontconfig.org) is required
on all platforms except Windows and macOS.
+ * To install on an apt-based Linux, try running `sudo apt-get install
+ libfontconfig-dev`.
* To install on an rpm-based Linux, try running `sudo yum install
fontconfig-devel`.