For example, this is the source code of a test page:

<!doctype html>
        <meta charset="utf-8" />
        <style type="text/css">
                font-family: sans-serif;
        <div lang="en-US">Test.</div>
        <div lang="zh-CN">Test.</div>

If Google Chrome's display language is English, the second line's font is SimSun even I set the browser's sans-serif font to Microsoft YaHei. It only works for the language that your browser uses. Is it possible to set the browser's font for different languages?

1 Answer 1


Yes, Chrome provides several APIs to help people write extensions to do so: http://developer.chrome.com/extensions/fontSettings.html.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.