From 31d8f30d9c901a14cb49da404f1148ad5d09351a Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 19 Mar 2016 17:36:09 +0000 Subject: Lots of Pbmtext/libpbmfont fixes and enhancements from Akira Urushibata git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2686 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/pbmfont.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib/pbmfont.h') diff --git a/lib/pbmfont.h b/lib/pbmfont.h index bedf57b9..61c88685 100644 --- a/lib/pbmfont.h +++ b/lib/pbmfont.h @@ -10,6 +10,17 @@ extern "C" { } /* to fake out automatic code indenters */ #endif + +/* Maximum dimensions for fonts */ + +#define pbm_maxfontwidth() 65536 +#define pbm_maxfontheight() 65536 + /* These limits are not in the official Adobe BDF definition, but + should never be a problem for practical purposes, considering that + a 65536 x 65536 glyph occupies 4G pixels. + */ + + struct glyph { /* A glyph consists of white borders and the "central glyph" which can be anything, but normally does not have white borders because @@ -51,7 +62,8 @@ struct font { */ int maxwidth, maxheight; int x; - /* ?? Not used by Pbmtext */ + /* The minimum value of glyph.font. The left edge of the glyph + in the glyph set which advances furthest to the left. */ int y; /* Amount of white space that should be added between lines of this font. Can be negative. -- cgit 1.4.1