[api-minor] Stop exporting, by default, a few additional Font properties (PR 11777 follow-up)
None of the "composite", "subtype", or "type" properties are normally used on the main-thread and/or in the API, hence there's no need to include them in the exported font-data by default. Given that these properties may still be useful when debugging, and that `debugger.mjs` actually relies on the "type" property, they will instead only be sent to the main-thread when the `fontExtraProperties` API-option is used.
This commit is contained in:
parent
c4784832ac
commit
132ccf04db
@ -82,7 +82,6 @@ const EXPORT_DATA_PROPERTIES = [
|
|||||||
"black",
|
"black",
|
||||||
"bold",
|
"bold",
|
||||||
"charProcOperatorList",
|
"charProcOperatorList",
|
||||||
"composite",
|
|
||||||
"cssFontInfo",
|
"cssFontInfo",
|
||||||
"data",
|
"data",
|
||||||
"defaultVMetrics",
|
"defaultVMetrics",
|
||||||
@ -98,22 +97,23 @@ const EXPORT_DATA_PROPERTIES = [
|
|||||||
"missingFile",
|
"missingFile",
|
||||||
"name",
|
"name",
|
||||||
"remeasure",
|
"remeasure",
|
||||||
"subtype",
|
|
||||||
"systemFontInfo",
|
"systemFontInfo",
|
||||||
"type",
|
|
||||||
"vertical",
|
"vertical",
|
||||||
];
|
];
|
||||||
|
|
||||||
const EXPORT_DATA_EXTRA_PROPERTIES = [
|
const EXPORT_DATA_EXTRA_PROPERTIES = [
|
||||||
"cMap",
|
"cMap",
|
||||||
|
"composite",
|
||||||
"defaultEncoding",
|
"defaultEncoding",
|
||||||
"differences",
|
"differences",
|
||||||
"isMonospace",
|
"isMonospace",
|
||||||
"isSerifFont",
|
"isSerifFont",
|
||||||
"isSymbolicFont",
|
"isSymbolicFont",
|
||||||
"seacMap",
|
"seacMap",
|
||||||
|
"subtype",
|
||||||
"toFontChar",
|
"toFontChar",
|
||||||
"toUnicode",
|
"toUnicode",
|
||||||
|
"type",
|
||||||
"vmetrics",
|
"vmetrics",
|
||||||
"widths",
|
"widths",
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user