 diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c
-index 5ac722f..84222b3 100644
+index 35e61f9..8c5ad86 100644
 --- a/source/pdf/pdf-font.c
 +++ b/source/pdf/pdf-font.c
 @@ -188,7 +188,12 @@ pdf_load_builtin_font(fz_context *ctx, pdf_font_desc *fontdesc, char *fontname,

 #ifdef NOCJK
 #define NOCJKFONT
 #endif
@@ -153,3 +155,116 @@ pdf_lookup_substitute_cjk_font(int ros, int serif, int wmode, unsigned int *len,
 	return NULL;
 #endif
 }

 
 	fontdesc->font->ft_substitute = 1;
diff --git a/source/pdf/pdf-fontfile.c b/source/pdf/pdf-fontfile.c
index 86b6682..fd4b0c3 100644
--- a/source/pdf/pdf-fontfile.c
+++ b/source/pdf/pdf-fontfile.c
@@ -11,6 +11,8 @@
 	Set NOCJKFULL to embed a smaller CJK font without CJK Extension A support.
 */
 
+#ifndef NOBUILTINFONT
