datadome 字体





h = "Comic Sans MS";
B = window["document"]["createElement"]("span");
window["document"]["body"]["appendChild"](B);
B["style"]["position"] = "absolute";
B["style"]["left"] = "-9999px";
B["style"]["top"] = "0";
B["style"]["visibility"] = "hidden";
B["style"]["fontSize"] = "50px";
B["style"]["fontFamily"] = h;
B["textContent"] = "mmmmmmmmmwwwwwww"
f = B["offsetWidth"];


let k = ["Sego UI", "Calibri", "Cambria", "Tahoma", "Palatino", "San Francisco", "Helvetica Neue", "Apple SD Gothic Neo", "SF Compact Display", "Liberation Sans", "DejaVu Sans", "ubuntu", "Roboto", "Noto Sans", "Droid Sans", "Product Sans", "SimSun", "Microsoft YaHei", "Songti", "Kaiti", "PingFang", "Heiti", "SimHei", "PT Sans"];

let angdh_G = ",";



function y(t){
    B["style"]["fontFamily"] = t + ", " + h;    
    // console.log(B["offsetWidth"] != f)
    console.log((t + ", " + h),'--------',B["offsetWidth"]);
    return B["offsetWidth"] != f;
};;;


for (var F = 0; F < k["length"]; F++){
    y(k[F]) && (angdh_G += F + ",");     
};;
                               
console.log(angdh_G);

posted @ 2025-08-27 17:03  AngDH  阅读(15)  评论(0)    收藏  举报