diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-09-23 21:09:56 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-09-23 21:09:56 +0000 |
commit | d4eed5d97461b5921b28f2e1d7c7d0ac045e662a (patch) | |
tree | 37f17c3c6de4b11fa490a52dbda86269f19f42d9 /Build/source/texk/dvipdfm-x/pdffont.c | |
parent | 4ab5e6675f50cf468f502c3688624193efa9dfba (diff) |
Fix a bug introduced by the recent font related changes (S. Hirata).
git-svn-id: svn://tug.org/texlive/trunk@56412 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdffont.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdffont.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdffont.c b/Build/source/texk/dvipdfm-x/pdffont.c index ce4432c9af9..e49763ca2f4 100644 --- a/Build/source/texk/dvipdfm-x/pdffont.c +++ b/Build/source/texk/dvipdfm-x/pdffont.c @@ -490,12 +490,14 @@ pdf_close_fonts (void) font = &font_cache.fonts[font_id]; if ((font->flags & PDF_FONT_FLAG_IS_ALIAS) || - (font->flags & PDF_FONT_FLAG_IS_REENCODE)) { + (font->flags & PDF_FONT_FLAG_IS_REENCODE) || + !font->reference) { continue; } if (font->subtype == PDF_FONT_FONTTYPE_CIDTYPE0 || - font->subtype == PDF_FONT_FONTTYPE_CIDTYPE2) + font->subtype == PDF_FONT_FONTTYPE_CIDTYPE2) { continue; + } if (dpx_conf.verbose_level > 0) { if (font->subtype != PDF_FONT_FONTTYPE_TYPE0) { @@ -567,7 +569,8 @@ pdf_close_fonts (void) pdf_font *font = &font_cache.fonts[font_id]; if ((font->flags & PDF_FONT_FLAG_IS_ALIAS) || - (font->flags & PDF_FONT_FLAG_IS_REENCODE)) { + (font->flags & PDF_FONT_FLAG_IS_REENCODE) || + !font->reference) { continue; } @@ -585,7 +588,8 @@ pdf_close_fonts (void) font = &font_cache.fonts[font_id]; if ((font->flags & PDF_FONT_FLAG_IS_ALIAS) || - (font->flags & PDF_FONT_FLAG_IS_REENCODE)) { + (font->flags & PDF_FONT_FLAG_IS_REENCODE) || + !font->reference) { pdf_clean_font_struct(font); continue; } |