@subiz/widget-v4 4.0.58 → 4.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -905,7 +905,7 @@ export function getDayName(dayOfWeek) {
905
905
  }
906
906
 
907
907
  let loadedFonts = {}
908
- export function preloadWebfonts(fonts) {
908
+ export function preloadWebfonts(fonts, done) {
909
909
  for (var i = 0; i < fonts.length; i++) {
910
910
  let font = fonts[i]
911
911
  if (!font) continue
@@ -920,7 +920,9 @@ export function preloadWebfonts(fonts) {
920
920
  // Visible - so we can measure it - but not on the screen
921
921
  node.style.position = 'absolute'
922
922
  node.style.display = 'block'
923
- node.style.fontSize = '1px'
923
+ node.style.opacity = '0.1'
924
+ node.style.color = 'transparent'
925
+ node.style.fontSize = '20px'
924
926
  node.style.height = '0px'
925
927
  node.style.width = '0px'
926
928