-- | <https://developer.mozilla.org/en-US/docs/Web/API/FontFace Mozilla FontFace documentation> 
newFontFace ::
            (MonadDOM m, ToJSString family', IsStringOrBinaryData source) =>
              family' -> source -> Maybe FontFaceDescriptors -> m FontFace
newFontFace family' source descriptors
  = liftDOM
      (FontFace <$>
         new (jsg "FontFace")
           [toJSVal family', toJSVal source, toJSVal descriptors])
newFontFace ::
            (MonadDOM m, ToJSString family', IsStringOrBinaryData source) =>
              family' -> source -> Maybe FontFaceDescriptors -> m FontFace
newFontFace family' source descriptors
  = liftDOM
      (FontFace <$>
         new (jsg "FontFace")
           [toJSVal family', toJSVal source, toJSVal descriptors])
newFontFace family' source descriptors
  = liftDOM
      (FontFace <$>
         new (jsg "FontFace")
           [toJSVal family', toJSVal source, toJSVal descriptors])