From 124c976ffdbcbe955bf92274da0c9b0132d5909f Mon Sep 17 00:00:00 2001 From: flyflydogdog <939431620@qq.com> Date: Fri, 10 May 2024 14:21:19 +0800 Subject: [PATCH] :rocket: improve detection of bold font --- lib/pdffont.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pdffont.js b/lib/pdffont.js index ade4b4a0..199dbe46 100644 --- a/lib/pdffont.js +++ b/lib/pdffont.js @@ -2,7 +2,7 @@ import nodeUtil from 'util'; import PDFUnit from './pdfunit.js'; import { kFontFaces, kFontStyles } from './pdfconst.js'; -const _boldSubNames = ['bd', 'bold', 'demi', 'black']; +const _boldSubNames = ['bd', 'bold', 'demi', 'black', 'medi']; const _stdFonts = [ 'arial', 'helvetica',