How does a system know wether a font is sans-serif or not?
In Chrome, it's under Settings->+Show advanced settings->Web content/Customize fonts... (Times New Roman, Arial, Consolas on mine.)
In IE 11 under Tools (gear icon)->General->Appearance/Fonts it has "Webpage font" and "Plain text font" (Times New Roman and Courier New on mine). It's weird that they don't let you pick the default sans-serif font.
https://msdn.microsoft.com/en-us/library/windows/desktop/dd1...
and the callback function used with it will get you this structure:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd1...
and the lfPitchAndFamily member will tell you what type of font it is.