From e027748627bfc1739ebbb266d7ead259ddd38846 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 23 Sep 2021 00:34:35 +0200 Subject: [PATCH] [api-minor] Stop exporting, by default, a few additional Font properties (PR 11777 follow-up) *This is similar to the "isSymbolicFont"-property, which is no longer exported by default after PR 11777.* Both "isMonospace" and "isSerifFont" are internal properties, used during font parsing and building of the glyph mapping on the worker-thread. However both of these properties are completely unused on the main-thread and/or in the API, and accessing them they will now require setting the `fontExtraProperties`-option when calling `getDocument`. --- src/core/fonts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/fonts.js b/src/core/fonts.js index 19210e02f..61d11af24 100644 --- a/src/core/fonts.js +++ b/src/core/fonts.js @@ -89,8 +89,6 @@ const EXPORT_DATA_PROPERTIES = [ "fallbackName", "fontMatrix", "fontType", - "isMonospace", - "isSerifFont", "isType3Font", "italic", "loadedName", @@ -107,6 +105,8 @@ const EXPORT_DATA_EXTRA_PROPERTIES = [ "cMap", "defaultEncoding", "differences", + "isMonospace", + "isSerifFont", "isSymbolicFont", "seacMap", "toFontChar",