about summary refs log tree commit diff
path: root/lib/pbmfont.h
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-03-19 17:36:09 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-03-19 17:36:09 +0000
commit31d8f30d9c901a14cb49da404f1148ad5d09351a (patch)
tree31fc51e087b1030c2722845143dc945a78f2dc3f /lib/pbmfont.h
parentd9bcc1ab220d2091362bcc86c5829ba86652c71b (diff)
downloadnetpbm-mirror-31d8f30d9c901a14cb49da404f1148ad5d09351a.tar.gz
netpbm-mirror-31d8f30d9c901a14cb49da404f1148ad5d09351a.tar.xz
netpbm-mirror-31d8f30d9c901a14cb49da404f1148ad5d09351a.zip
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
Diffstat (limited to 'lib/pbmfont.h')
-rw-r--r--lib/pbmfont.h14
1 files changed, 13 insertions, 1 deletions
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.