`y_offset` should not include any impact due to newlines '\n'
kmatch98 opened this issue · 3 comments
kmatch98 commented
The y_offset
is currently incorrectly calculated with the inclusion of a multiple related to the quantity of newlines '\n' in the text string.
However y_offset
should be independent of the number of lines in the string, and should just be related to the glyph dimensions, since this acts as a baseline offset to the vertical center of the "M" glyph.
I observed this issue when calibrating text to the upcoming bitmap_label.py
file.
evaherrada commented
@kmatch98 Good find. If you're up for it, a PR would be greatly appreciated.
kmatch98 commented
Thanks @dherrada, please put this into my queue and I will figure it out. Also please note there will be a similar issue to resolve in the parallel library bitmap_label.py
.