mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Move some constants and helper functions from src/core/fonts.js
and into their own file
- `FontFlags`, is used in both `src/core/fonts.js` and `src/core/evaluator.js`. - `getFontType`, same as the above. - `MacStandardGlyphOrdering`, is a fairly large data-structure and `src/core/fonts.js` is already a *very* large file. - `recoverGlyphName`, a dependency of `type1FontGlyphMapping`; please see below. - `SEAC_ANALYSIS_ENABLED`, is used by both `Type1Font`, `CFFFont`, and unit-tests; please see below. - `type1FontGlyphMapping`, is used by both `Type1Font` and `CFFFont` which a later patch will move to their own files.
This commit is contained in:
parent
22539b52fa
commit
77b258440b
5 changed files with 217 additions and 179 deletions
|
@ -47,7 +47,8 @@ import {
|
|||
Ref,
|
||||
RefSet,
|
||||
} from "./primitives.js";
|
||||
import { ErrorFont, Font, FontFlags, getFontType } from "./fonts.js";
|
||||
import { ErrorFont, Font } from "./fonts.js";
|
||||
import { FontFlags, getFontType } from "./fonts_utils.js";
|
||||
import {
|
||||
getEncoding,
|
||||
MacRomanEncoding,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue