-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature request: CJK and more characters support #8
Comments
Thanks for the issue! Could you provide the file that gives you this error? A testcase would be helpful. |
Chinese characters are File contents:
|
Ah, thanks. The error is located in Relevant code:
On line 3 of that snippet I call I changed |
Can you select the text and copy the original characters out? If yes, that means that the font simply can't display the characters (or is encoded badly)? Does the font you are embedding the characters with support CJK? I've always used http://bluejamesbond.github.io/CharacterMap/ for debugging font-related issues. You'll probably need to do some kind of font-selection-based-on-character-plane, i.e. if CJK characters are detected, then embed |
tree -L 1 . ├── Cargo.lock ├── Cargo.toml ├── Chinese.md ├── Chinese.pdf ├── images ├── README.md ├── src ├── target ├── test.md └── test.pdf
thread 'main' panicked at 'byte index 7 is not a char boundary; it is inside '─' (bytes 6..9) of
├── src
', libcore/str/mod.rs:2111:5The text was updated successfully, but these errors were encountered: