git.psu.edu has been upgraded to 13.8.4. Please email support@git.psu.edu with any Gitlab problems. See the git.psu.edu yammer group for more information. 13.9.x will be soon.

Commit cbb8e05d authored by ROBERT PATRICK CAREY III's avatar ROBERT PATRICK CAREY III 🗿

FontAPI

parent f1a84439
......@@ -73,8 +73,7 @@ const userPreferences = ({
return this;
},
fetchFontFace(params){
let FontFaceObserver = require('fontfaceobserver');
let font = new FontFaceObserver(params.name, "url("+params.url+")");
var font = new FontFace(params.name, "url("+params.url+")");
font.load().then(function() {
document.fonts.add(font);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment