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

Mech printing issue on 0.43.5 #119

Closed
mhjacks opened this issue Dec 18, 2017 · 6 comments
Closed

Mech printing issue on 0.43.5 #119

mhjacks opened this issue Dec 18, 2017 · 6 comments
Assignees
Labels

Comments

@mhjacks
Copy link
Contributor

mhjacks commented Dec 18, 2017

On Linux, I get errors finding the default templates for both bipeds and quads.

Looking in the recordsheets directory, I don't see the listed SVGs, regardless of capitalization.

I see those SVGs on the master branch of the repo - possible packaging issue?

It generates an empty PDF, but also shows these errors in the logs:

megameklablog.txt

@LiamsGhost
Copy link

On Windows 10, using the print to pdf function results in an empty single page PDF.

@neoancient
Copy link
Member

The problem here is that the expected font was missing. What had happened previously is that it would substitute the default system font. I attribute the fact that it's not doing that now to a change in the svg rendering library, which went unnoticed because it was only tested with the font installed and there was no particular reason to think that it had changed. I have been able to reproduce it by uninstalling the font on my system.

You can get printing working for now by installing the fonts found in data/fonts, though it should not be necessary to install particular fonts to get the printing to work. It should be possible to provide alternate fonts in the svg files, but the svg library is not using that data. I'm looking into whether there's a way to get it to work without producing and maintaining a custom version of the library.

@neoancient neoancient self-assigned this Dec 18, 2017
@neoancient neoancient added the Bug label Dec 18, 2017
@neoancient
Copy link
Member

Reverted svgSalamander library to previous version that does not have the font bug.

@arlith
Copy link
Member

arlith commented Dec 18, 2017

Are you using svgSalamander from their website? I've got a patch for the release that's required for Warship printing. I believe I had committed a special version. I suppose that only exists in the warship printing branch right now.

@arlith
Copy link
Member

arlith commented Dec 18, 2017

See: blackears/svgSalamander#21

I have to imagine you encountered this issue as well.

@arlith
Copy link
Member

arlith commented Dec 18, 2017

This may also be relevant, as it deals with fonts: blackears/svgSalamander#20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants