diff --git a/doc/building.html b/doc/building.html
index 022b1d94899..71c3710c9ae 100644
--- a/doc/building.html
+++ b/doc/building.html
@@ -320,6 +320,7 @@
To install on an apt-based Linux, try running sudo apt-get install libfreetype6-dev.
To install on an rpm-based Linux, try running sudo yum install freetype-devel.
To install on Alpine Linux, try running sudo apk add freetype-dev.
+To install on macOS, try running brew install freetype.
Use --with-freetype-include=<path> and --with-freetype-lib=<path> if configure does not automatically locate the platform FreeType files.
CUPS
diff --git a/doc/building.md b/doc/building.md
index 766298d7d44..2f9a0026e28 100644
--- a/doc/building.md
+++ b/doc/building.md
@@ -454,6 +454,7 @@ rather than bundling the JDK's own copy.
* To install on an rpm-based Linux, try running `sudo yum install
freetype-devel`.
* To install on Alpine Linux, try running `sudo apk add freetype-dev`.
+ * To install on macOS, try running `brew install freetype`.
Use `--with-freetype-include=` and `--with-freetype-lib=`
if `configure` does not automatically locate the platform FreeType files.