
I'm not quite sure this is a bug and not intended behavior, but I can't see why it would be intentional; at least for my use case, it's quite an annoying quirk that I really can't come up with any good workaround for.
Here's an example of where this gets in the way:


I started using one-off characters to insert 5x5 icons into text, but it seems that as soon as the line has ANY one-off characters, print
thinks that since it could theoretically take up to 8x8 pixels, the line height should be increased to 8.
For the width of the characters, I actually just add \-e
at the end of each icon, so that the icon takes up 6 pixels horizontally; but I wasn't able to find any way to correct the line height - this behavior seems to completely override \^y
as soon as a one-off character is present.
(in fact, bizarelly, setting line height to lower than 6 reveals that print will actually crop away the pixels of all characters EXCEPT for one-offs, while the vertical spacing remains at 8:)

In my case, the problem could be somewhat worked around by putting the icons in a custom font with a correct line height, but I quite enjoy the flexibility of one-off characters (especially because in the future I might try stacking multiple one-offs for multicolored icons), so I would appreciate the ability to disable this behavior.



One workaround I found is: make a custom print
function that wraps the string between \^y8
and \|e
, which just sets line height to 8 and shifts back up by 6 pixels afterwards. (I was already doing that to apply outlines and reset color)
[Please log in to post a comment]