Permalink
Browse files

support huge fonts (patch by Alan W. Irwin)

1 parent b05a1b2 commit e6fae213911c28bc00bb788f3d5a42913e37fbbe @tony2001 tony2001 committed Oct 16, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 include/hpdf_consts.h
  2. +1 −1 src/hpdf_page_operator.c
@@ -142,7 +142,7 @@
#define HPDF_MAX_WORDSPACE 300
#define HPDF_MIN_CHARSPACE -30
#define HPDF_MAX_CHARSPACE 300
-#define HPDF_MAX_FONTSIZE 300
+#define HPDF_MAX_FONTSIZE 600
#define HPDF_MAX_ZOOMSIZE 10
#define HPDF_MAX_LEADING 300
#define HPDF_MAX_LINEWIDTH 100
@@ -1155,7 +1155,7 @@ HPDF_Page_SetFontAndSize (HPDF_Page page,
return HPDF_RaiseError (page->error, HPDF_PAGE_INVALID_FONT, 0);
if (size <= 0 || size > HPDF_MAX_FONTSIZE)
- return HPDF_RaiseError (page->error, HPDF_PAGE_INVALID_FONT_SIZE, 0);
+ return HPDF_RaiseError (page->error, HPDF_PAGE_INVALID_FONT_SIZE, size);
if (page->mmgr != font->mmgr)
return HPDF_RaiseError (page->error, HPDF_PAGE_INVALID_FONT, 0);

0 comments on commit e6fae21

Please sign in to comment.