diff options
-rw-r--r-- | lib/libpbmfont.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libpbmfont.c b/lib/libpbmfont.c index 55d3be0c..5193cd35 100644 --- a/lib/libpbmfont.c +++ b/lib/libpbmfont.c @@ -12,6 +12,13 @@ ** copyright notice and this permission notice appear in supporting ** documentation. This software is provided "as is" without express or ** implied warranty. +** +** BDF font specs available from: +** https://partners.adobe.com/public/developer/en/font/5005.BDF_Spec.pdf +** Glyph Bitmap Distribution Format (BDF) Specification +** Version 2.2 +** 22 March 1993 +** Adobe Developer Support */ #include <assert.h> @@ -776,8 +783,6 @@ validateGlyphLimits(const struct font * const fontP, glyphP->height == 0 || glyphP->width > fontP->maxwidth || glyphP->height > fontP->maxheight || - glyphP->width > fontP->maxwidth || - glyphP->height > fontP->maxheight || glyphP->x < fontP->x || glyphP->y < fontP->y || glyphP->x + (int) glyphP->width > fontP->x + fontP->maxwidth || |