PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

bug: negative font padding problem

Hello All,

I've encountered a bug in Edge 2.6 AND Edge 2.9 regarding the font padding:

Reproduction:
1. Art: Create a font using Edge Font Tool
2. Code: Use SetFontPadding(int horiz, int vert) with negative horizontal value
3. Code: Render font using DrawFont(long x, long y, E2DSurface *source, char *text, long flags, unsigned long property)

Bug:
The font will be rendered, but the letter's RIGHT part missing.
The missing part is exactly the same width as the absolute of the negative horizontal padding.
That is: if horizontal padding is zero, the font will render correctly.


Can you please correct this bug, or give a suggestion for a workaround?

Thanks in advance.

Regards,
Laszlo

PS: Keep up the excellent work on Edge.
Hi Laszlo,

Thanks for the bug report, we will fix it for the next release.

Unfortunately, there is no easy workaround.
Hi Laszlo,

Unfortunately, we can't reproduce the bug.

Can you show me the font, source code (related to font loading and font drawing) and screenshot when the bug appears?
Mea Culpa guys.

The error was on our side - we have developed a fairly sophisticated text renderer, which, as it turned out was the source of the bug.

Needless to say, the programmer who has reported the bug has been extremely punished - he had to listen to Beatles songs performed on a panpipe.
This would teach him a lesson.


Merry Christmas to all Edge Developers!

Regards,
Laszlo

PS: please delete this thread, so other developers won't be confused by it.
Great that everything works correctly now!