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

incorrect line breaks on some Chinese punctuation like period(CL = 17) commas(NS = 21) and quotation(QU = 23) #7

Open
wujiiu opened this issue May 26, 2019 · 0 comments

Comments

@wujiiu
Copy link

wujiiu commented May 26, 2019

it renders correctly in the browser when set the CSS word-break to break-word but incorrectly in canvas,

here is the test code:

    <style>
        body {
            font-family: Arial;
        }
        .narrow {
            padding: 5px;
            border: 1px solid;
            width: 8em;
        }

        .normal {
            word-break: normal;
        }

        .breakAll {
            word-break: break-all;
        }
        .wordBreak{
            word-break: break-word;
        }

        .keep {
            word-break: keep-all;
        }
    </style>
   <body>
<div>
   <p class="wordBreak narrow" >。。。。。。。。。。。。。。。。。。。。。。。</p>
    <p class="wordBreak narrow" >,,,,,,,,,,,,,,,,,,,,,,,</p>
    <p class="wordBreak narrow" >;;;;;;;;;;;;;;;;;;;;;;;</p>
    <p class="wordBreak narrow" >,,,,,,,,,,,,,,,,,,,,,,,</p>
    <p class="wordBreak narrow" >、、、、、、、、、、、、、、、、、、、、、、、</p>
</div>

</body>
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

1 participant