Detecting font in JavaScript May 14, 2021 By Mark Otto 0 Suppose I have the following CSS rule in my HTML. body { font-family:Calibri,Trebuchet MS,Helvetica,sans-serif; } How can I detect which one of the defined fonts was used in the user’s browser? Post navigation Previous PostPrevious What is the most efficient way to clone a JavaScript object?Next PostNext Recoil 0.3 released