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>
This commit is contained in:
Morten Sørvig 2023-12-05 16:20:35 +01:00
parent fe00531905
commit ea0ca7b295

View File

@ -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