Skip to content

Commit

Permalink
support huge fonts (patch by Alan W. Irwin)
Browse files Browse the repository at this point in the history
  • Loading branch information
tony2001 committed Oct 16, 2013
1 parent b05a1b2 commit e6fae21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/hpdf_consts.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
#define HPDF_MAX_WORDSPACE 300 #define HPDF_MAX_WORDSPACE 300
#define HPDF_MIN_CHARSPACE -30 #define HPDF_MIN_CHARSPACE -30
#define HPDF_MAX_CHARSPACE 300 #define HPDF_MAX_CHARSPACE 300
#define HPDF_MAX_FONTSIZE 300 #define HPDF_MAX_FONTSIZE 600
#define HPDF_MAX_ZOOMSIZE 10 #define HPDF_MAX_ZOOMSIZE 10
#define HPDF_MAX_LEADING 300 #define HPDF_MAX_LEADING 300
#define HPDF_MAX_LINEWIDTH 100 #define HPDF_MAX_LINEWIDTH 100
Expand Down
2 changes: 1 addition & 1 deletion src/hpdf_page_operator.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ HPDF_Page_SetFontAndSize (HPDF_Page page,
return HPDF_RaiseError (page->error, HPDF_PAGE_INVALID_FONT, 0); return HPDF_RaiseError (page->error, HPDF_PAGE_INVALID_FONT, 0);


if (size <= 0 || size > HPDF_MAX_FONTSIZE) 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) if (page->mmgr != font->mmgr)
return HPDF_RaiseError (page->error, HPDF_PAGE_INVALID_FONT, 0); return HPDF_RaiseError (page->error, HPDF_PAGE_INVALID_FONT, 0);
Expand Down

0 comments on commit e6fae21

Please sign in to comment.