Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

support huge fonts (patch by Alan W. Irwin)

  • Loading branch information...
commit e6fae213911c28bc00bb788f3d5a42913e37fbbe 1 parent b05a1b2
@tony2001 tony2001 authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  include/hpdf_consts.h
  2. +1 −1  src/hpdf_page_operator.c
View
2  include/hpdf_consts.h
@@ -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
View
2  src/hpdf_page_operator.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.