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

Emit user-facing warning if unable to represent a character in the current font #176

Merged
merged 3 commits into from May 14, 2018

Conversation

pkgw
Copy link
Collaborator

@pkgw pkgw commented May 13, 2018

Further rationale in the commit messages. Attempting to address #173 in a helpful way.

pkgw added 3 commits May 13, 2018 16:56
We don't *need* to copy the final NUL byte, but it will make this particular
compiler happy and costs us essentially nothing.
Including at least one issue (the one in pdfencrypt.c) that looked like a
genuine array bounds overflow bug.
…encountered

I've recently gotten a few bug reports from people exploring Tectonic's
Unicode capabilities that are not aware of the need to use the `fontspec`
package and to choose an appropriate font. Here we add a Tectonic warning
message that will hopefully point them in the right direction. In plain XeTeX,
the warning is only printed if \tracelostchars is activated, but this seems
like a big enough issue (and one that I don't think will happen spuriously?)
that I think it is reasonable to always print a message. I can revisit if
there are cases where the message gets annoying.

I hope that the help message is actually helpful for non-experts. If not,
perhaps we should create a dedicated forum thread and point people to it.

Closes tectonic-typesetting#173.
@pkgw
Copy link
Collaborator Author

pkgw commented May 13, 2018

This also includes some compiler warning fixes uncovered by my recent upgrade to GCC 8.1.

@pkgw pkgw merged commit 15700ce into tectonic-typesetting:master May 14, 2018
@pkgw pkgw deleted the unicode-warning branch May 14, 2018 13:31
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

Successfully merging this pull request may close these issues.

None yet

1 participant