function loadFont(oFontMetadata) {
				let mIcons = oFontMetadata;
				let sFontURI = oConfig.fontURI;

				if (oFontMetadata?.config && isPlainObject(oFontMetadata.config)) {
					mFontRegistry[collectionName].themeConfig = oFontMetadata.config;
					sFontURI = getThemePath(oFontMetadata.config) || oConfig.fontURI;
					mIcons = oFontMetadata.icons;

					if (!isPlainObject(mIcons)) {
						Log.error(`There is something wrong with the structure of the font metadata loaded from ${sFontURI}.`);
					}
				}

				for (const sKey in mIcons) {
					mIcons[sKey] = parseInt(mIcons[sKey], 16);
				}

				mRegistry[collectionName] = mIcons;
				_IconRegistry.insertFontFaceStyle(oConfig.fontFamily, sFontURI, collectionName);
				mFontRegistry[collectionName].metadataLoaded = true;
			}
Loads the font metadata for the given collection

@param {string} collectionName the font collection name
@param {boolean} async whether the metadata is loaded async or sync
@returns {Promise<undefined>|undefined} if async is set to true a Promise is returned, otherwise undefined
@private