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

Documentation/modification of top/bottom margin in eps/pdf/svg hb-view output #1186

Closed
HinTak opened this issue Sep 26, 2018 · 5 comments
Closed

Comments

@HinTak
Copy link
Contributor

HinTak commented Sep 26, 2018

The pixel-based output of hb-view (png and ansi) seems to have 16 as pixels in the margin and can be lowered by --margin. But the eps/pdf (I.e cairo) -based output, it is not exactly clear what 16 means, though I suppose it is in dpi units.

What's troubling is the space above and below - compared to ansi, perhaps?

@HinTak
Copy link
Contributor Author

HinTak commented Sep 26, 2018

I think I have asked this question before, though I don't remember the answer :) . The font I am having a lot of head/bottom room is Lohit Devanagari , if that's important.

@behdad
Copy link
Member

behdad commented Sep 26, 2018

But the eps/pdf (I.e cairo) -based output, it is not exactly clear what 16 means, though I suppose it is in dpi units.

It's points (72points=1in).

@behdad
Copy link
Member

behdad commented Sep 26, 2018

What's troubling is the space above and below - compared to ansi, perhaps?

The ansi output skips empty lines from top/bottom. The other outputs don't, and respect font's ascent/descent.

@HinTak
Copy link
Contributor Author

HinTak commented Sep 26, 2018

I guess Lohit Devanagari has gigantic ascent/descent. Would be nice to have a "tight bounding" mode like the ansi one for the Cairo based outputs... Anyway, some of these info could go into the --help-... display messages.

@behdad
Copy link
Member

behdad commented Sep 26, 2018

This was previous discussion: #79
Feel free to submit PR for doc improvements. Thanks.

@behdad behdad closed this as completed Sep 26, 2018
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