1

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

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

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?

0

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.