summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2023-12-05 16:20:35 +0100
committerMorten Sørvig <morten.sorvig@qt.io>2023-12-18 23:06:53 +0100
commitea0ca7b295500b68a604618268fc3491aba28ab4 (patch)
tree8081f28b8fed21ce628158db40af416f47e1afbc /src/plugins/platforms/wasm
parentfe00531905bb4723000583d91d8818db2e70f996 (diff)
wasm: add qtloader font loading documentation
These are properties which can be set on the configuration objects passed to the qtLoad() function. They are not used by qtloader itself, at least in the current implementation In the future, qtloader could start the font loading process concurrently with downloading the wasm file. Change-Id: I7ee2f44831866ddeba737cec4a5c865dca479f2a Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm')
-rw-r--r--src/plugins/platforms/wasm/qtloader.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js
index c0bb3652cf..7b9288cd30 100644
--- a/src/plugins/platforms/wasm/qtloader.js
+++ b/src/plugins/platforms/wasm/qtloader.js
@@ -51,6 +51,15 @@
*
* $QTDIR may be used as a placeholder for the "qtdir" configuration property (see @qtdir), for instance:
* "source": "$QTDIR/plugins/imageformats/libqjpeg.so"
+ * - localFonts.requestPermission: bool
+ * Whether Qt should request for local fonts access permission on startup (default false).
+ * - localFonts.familiesCollection string
+ * Specifies a collection of local fonts to load. Possible values are:
+ * "NoFontFamilies" : Don't load any font families
+ * "DefaultFontFamilies" : A subset of available font families; currently the "web-safe" fonts (default).
+ * "AllFontFamilies" : All local font families (not reccomended)
+ * - localFonts.extraFamilies: [string]
+ * Adds additional font families to be loaded at startup.
*
* @return Promise<instance: EmscriptenModule>
* The promise is resolved when the module has been instantiated and its main function has been