From 571c3e04c40c924be05824049c0ddca04b36208a Mon Sep 17 00:00:00 2001
From: Julien Neuhart
Date: Fri, 1 Feb 2019 09:40:16 +0100
Subject: [PATCH] adding form field web fonts timeout
---
build/docs/content/02-html.md | 3 +++
docs/index.html | 3 +++
internal/app/api/html.go | 5 +++++
internal/app/api/markdown.go | 5 +++++
internal/app/api/resource.go | 32 +++++++++++++++++++++++---------
internal/app/api/url.go | 5 +++++
internal/pkg/printer/html.go | 29 +++++++++++++++--------------
internal/pkg/printer/markdown.go | 24 +++++++++++++-----------
pkg/client.go | 20 +++++++++++---------
pkg/html.go | 5 +++++
pkg/markdown.go | 5 +++++
pkg/url.go | 5 +++++
12 files changed, 98 insertions(+), 43 deletions(-)
diff --git a/build/docs/content/02-html.md b/build/docs/content/02-html.md
index ba270429..a43fd34a 100644
--- a/build/docs/content/02-html.md
+++ b/build/docs/content/02-html.md
@@ -187,6 +187,9 @@ You may also use *remote* paths for Google fonts, images and so on.
> If you want to install fonts directly in the Gotenberg Docker image,
> see to the [fonts section](#fonts).
+> For web fonts, there is a timeout of 500ms by default. You may update
+> this value thanks to the form field `webFontsTimeout`.
+
### cURL
```bash
diff --git a/docs/index.html b/docs/index.html
index 076b579d..513e8a2f 100755
--- a/docs/index.html
+++ b/docs/index.html
@@ -363,6 +363,9 @@ are on the same level as the index.html file.
If you want to install fonts directly in the Gotenberg Docker image,
see to the fonts section.
+
+For web fonts, there is a timeout of 500ms by default. You may update
+this value thanks to the form field webFontsTimeout.