From ea0ca7b295500b68a604618268fc3491aba28ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Tue, 5 Dec 2023 16:20:35 +0100 Subject: [PATCH] wasm: add qtloader font loading documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Piotr WierciƄski --- src/plugins/platforms/wasm/qtloader.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js index c0bb3652cfa..7b9288cd30a 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 * The promise is resolved when the module has been instantiated and its main function has been