Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to use otf font after 0.25.0 #1523

Closed
kidwm opened this issue Apr 29, 2015 · 3 comments
Closed

fail to use otf font after 0.25.0 #1523

kidwm opened this issue Apr 29, 2015 · 3 comments

Comments

@kidwm
Copy link

kidwm commented Apr 29, 2015

Resource interpreted as Font but transferred with MIME type application/vnd.oasis.opendocument.formula-template: "file:///home/wm/Projects/xxx/build/resources/app/styles/NotoSansCJKtc-Regular.otf"
@zcbenz
Copy link
Member

zcbenz commented Apr 30, 2015

Can you provide a minimal sample app for testing?

@kidwm
Copy link
Author

kidwm commented May 6, 2015

<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Electron</title>
    </head>
    <body>
        <style>
            @font-face {
                font-family: 'Source Sans';
                src: url('SourceSansPro-Regular.otf') format('opentype');
            }
            @font-face {
                font-family: 'Noto Sans CJK TC';
                src: url('NotoSansCJKtc-Regular.otf') format('opentype');
            }
            #app {
                font-family: 'Source Sans';
                font-size: 3em;
            }
            p {
                font-family: 'Noto Sans CJK TC';
            }
        </style>
        <main id="app">
            Electron Version: <script>document.write(process.versions['electron'])</script>
            <p>
                中文字
            </p>
        </main>
    </body>
</html>

it looks like about CJK Font render problem.
screenshot from 2015-05-06 16-45-56

@zcbenz
Copy link
Member

zcbenz commented May 7, 2015

The CJK font rendering problem was reported at atom/atom#6214, I have created an issue to track it at #1605.

@zcbenz zcbenz closed this as completed May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants