var a=document.fonts.entries(),obj;
do{
obj=a.next();
for(var i in obj.value){
console.log(obj.value[i].family);
}
}while(obj&&!obj.done);