@wordpress/global-styles-ui 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/background-panel.js +5 -3
- package/build/background-panel.js.map +1 -1
- package/build/block-preview-panel.js +4 -2
- package/build/block-preview-panel.js.map +1 -1
- package/build/color-indicator-wrapper.js +3 -1
- package/build/color-indicator-wrapper.js.map +1 -1
- package/build/color-palette-panel.js +4 -2
- package/build/color-palette-panel.js.map +1 -1
- package/build/color-preview.js +3 -1
- package/build/color-preview.js.map +1 -1
- package/build/color-variations.js +3 -1
- package/build/color-variations.js.map +1 -1
- package/build/confirm-reset-shadow-dialog.js +3 -1
- package/build/confirm-reset-shadow-dialog.js.map +1 -1
- package/build/context.js +3 -1
- package/build/context.js.map +1 -1
- package/build/dimensions-panel.js +5 -3
- package/build/dimensions-panel.js.map +1 -1
- package/build/font-families.js +3 -1
- package/build/font-families.js.map +1 -1
- package/build/font-family-item.js +3 -1
- package/build/font-family-item.js.map +1 -1
- package/build/font-library-modal/collection-font-variant.js +3 -1
- package/build/font-library-modal/collection-font-variant.js.map +1 -1
- package/build/font-library-modal/context.js +4 -2
- package/build/font-library-modal/context.js.map +1 -1
- package/build/font-library-modal/font-card.js +3 -1
- package/build/font-library-modal/font-card.js.map +1 -1
- package/build/font-library-modal/font-collection.js +6 -4
- package/build/font-library-modal/font-collection.js.map +2 -2
- package/build/font-library-modal/font-demo.js +3 -1
- package/build/font-library-modal/font-demo.js.map +1 -1
- package/build/font-library-modal/google-fonts-confirm-dialog.js +3 -1
- package/build/font-library-modal/google-fonts-confirm-dialog.js.map +2 -2
- package/build/font-library-modal/index.js +7 -5
- package/build/font-library-modal/index.js.map +1 -1
- package/build/font-library-modal/installed-fonts.js +3 -1
- package/build/font-library-modal/installed-fonts.js.map +1 -1
- package/build/font-library-modal/lib/inflate.js +2 -0
- package/build/font-library-modal/lib/inflate.js.map +1 -1
- package/build/font-library-modal/lib/lib-font.browser.d.js +4 -2
- package/build/font-library-modal/lib/lib-font.browser.d.js.map +1 -1
- package/build/font-library-modal/lib/lib-font.browser.js +345 -343
- package/build/font-library-modal/lib/lib-font.browser.js.map +1 -1
- package/build/font-library-modal/lib/unbrotli.js +2 -0
- package/build/font-library-modal/lib/unbrotli.js.map +1 -1
- package/build/font-library-modal/library-font-details.js +3 -1
- package/build/font-library-modal/library-font-details.js.map +1 -1
- package/build/font-library-modal/library-font-variant.js +3 -1
- package/build/font-library-modal/library-font-variant.js.map +1 -1
- package/build/font-library-modal/resolvers.js +4 -2
- package/build/font-library-modal/resolvers.js.map +2 -2
- package/build/font-library-modal/types.js +2 -0
- package/build/font-library-modal/types.js.map +1 -1
- package/build/font-library-modal/upload-fonts.js +3 -1
- package/build/font-library-modal/upload-fonts.js.map +2 -2
- package/build/font-library-modal/utils/constants.js +5 -3
- package/build/font-library-modal/utils/constants.js.map +1 -1
- package/build/font-library-modal/utils/filter-fonts.js +2 -0
- package/build/font-library-modal/utils/filter-fonts.js.map +1 -1
- package/build/font-library-modal/utils/fonts-outline.js +2 -0
- package/build/font-library-modal/utils/fonts-outline.js.map +1 -1
- package/build/font-library-modal/utils/index.js +4 -2
- package/build/font-library-modal/utils/index.js.map +2 -2
- package/build/font-library-modal/utils/make-families-from-faces.js +3 -1
- package/build/font-library-modal/utils/make-families-from-faces.js.map +1 -1
- package/build/font-library-modal/utils/preview-styles.js +2 -0
- package/build/font-library-modal/utils/preview-styles.js.map +1 -1
- package/build/font-library-modal/utils/set-immutably.js +2 -0
- package/build/font-library-modal/utils/set-immutably.js.map +1 -1
- package/build/font-library-modal/utils/sort-font-faces.js +2 -0
- package/build/font-library-modal/utils/sort-font-faces.js.map +1 -1
- package/build/font-library-modal/utils/toggleFont.js +2 -0
- package/build/font-library-modal/utils/toggleFont.js.map +1 -1
- package/build/font-sizes/confirm-delete-font-size-dialog.js +3 -1
- package/build/font-sizes/confirm-delete-font-size-dialog.js.map +1 -1
- package/build/font-sizes/confirm-reset-font-sizes-dialog.js +3 -1
- package/build/font-sizes/confirm-reset-font-sizes-dialog.js.map +1 -1
- package/build/font-sizes/font-size-preview.js +3 -1
- package/build/font-sizes/font-size-preview.js.map +1 -1
- package/build/font-sizes/font-size.js +4 -2
- package/build/font-sizes/font-size.js.map +1 -1
- package/build/font-sizes/font-sizes-count.js +3 -1
- package/build/font-sizes/font-sizes-count.js.map +1 -1
- package/build/font-sizes/font-sizes.js +4 -2
- package/build/font-sizes/font-sizes.js.map +1 -1
- package/build/font-sizes/rename-font-size-dialog.js +3 -1
- package/build/font-sizes/rename-font-size-dialog.js.map +1 -1
- package/build/global-styles-ui.js +43 -22
- package/build/global-styles-ui.js.map +2 -2
- package/build/gradients-palette-panel.js +5 -3
- package/build/gradients-palette-panel.js.map +1 -1
- package/build/highlighted-colors.js +3 -1
- package/build/highlighted-colors.js.map +1 -1
- package/build/hooks.js +4 -2
- package/build/hooks.js.map +1 -1
- package/build/icon-with-current-color.js +3 -1
- package/build/icon-with-current-color.js.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/lock-unlock.js +3 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/navigation-button.js +3 -1
- package/build/navigation-button.js.map +1 -1
- package/build/pagination/index.js +3 -1
- package/build/pagination/index.js.map +1 -1
- package/build/palette.js +4 -2
- package/build/palette.js.map +1 -1
- package/build/preset-colors.js +3 -1
- package/build/preset-colors.js.map +1 -1
- package/build/preview-colors.js +5 -3
- package/build/preview-colors.js.map +1 -1
- package/build/preview-hooks.js +2 -0
- package/build/preview-hooks.js.map +1 -1
- package/build/preview-styles.js +6 -4
- package/build/preview-styles.js.map +1 -1
- package/build/preview-typography.js +4 -2
- package/build/preview-typography.js.map +1 -1
- package/build/preview-wrapper.js +6 -4
- package/build/preview-wrapper.js.map +1 -1
- package/build/provider.js +3 -1
- package/build/provider.js.map +1 -1
- package/build/root-menu.js +4 -2
- package/build/root-menu.js.map +1 -1
- package/build/screen-background.js +4 -2
- package/build/screen-background.js.map +1 -1
- package/build/screen-block-list.js +5 -3
- package/build/screen-block-list.js.map +2 -2
- package/build/screen-block.js +5 -3
- package/build/screen-block.js.map +1 -1
- package/build/screen-color-palette.js +4 -2
- package/build/screen-color-palette.js.map +1 -1
- package/build/screen-colors.js +4 -2
- package/build/screen-colors.js.map +1 -1
- package/build/screen-css.js +33 -25
- package/build/screen-css.js.map +2 -2
- package/build/screen-header.js +3 -1
- package/build/screen-header.js.map +1 -1
- package/build/screen-layout.js +4 -2
- package/build/screen-layout.js.map +1 -1
- package/build/screen-revisions/index.js +4 -2
- package/build/screen-revisions/index.js.map +1 -1
- package/build/screen-revisions/revisions-buttons.js +4 -2
- package/build/screen-revisions/revisions-buttons.js.map +1 -1
- package/build/screen-revisions/types.js +2 -0
- package/build/screen-revisions/types.js.map +1 -1
- package/build/screen-revisions/use-global-styles-revisions.js +5 -3
- package/build/screen-revisions/use-global-styles-revisions.js.map +1 -1
- package/build/screen-root.js +6 -39
- package/build/screen-root.js.map +2 -2
- package/build/screen-shadows.js +3 -1
- package/build/screen-shadows.js.map +1 -1
- package/build/screen-style-variations.js +3 -1
- package/build/screen-style-variations.js.map +1 -1
- package/build/screen-typography-element.js +4 -2
- package/build/screen-typography-element.js.map +1 -1
- package/build/screen-typography.js +3 -1
- package/build/screen-typography.js.map +1 -1
- package/build/shadow-utils.js +3 -1
- package/build/shadow-utils.js.map +1 -1
- package/build/shadows-edit-panel.js +6 -4
- package/build/shadows-edit-panel.js.map +1 -1
- package/build/shadows-panel.js +5 -3
- package/build/shadows-panel.js.map +1 -1
- package/build/size-control/index.js +4 -2
- package/build/size-control/index.js.map +1 -1
- package/build/style-variations-container.js +3 -1
- package/build/style-variations-container.js.map +1 -1
- package/build/style-variations-content.js +3 -1
- package/build/style-variations-content.js.map +1 -1
- package/build/style-variations.js +3 -1
- package/build/style-variations.js.map +1 -1
- package/build/subtitle.js +3 -1
- package/build/subtitle.js.map +1 -1
- package/build/typography-elements.js +3 -1
- package/build/typography-elements.js.map +1 -1
- package/build/typography-example.js +3 -1
- package/build/typography-example.js.map +1 -1
- package/build/typography-panel.js +4 -2
- package/build/typography-panel.js.map +1 -1
- package/build/typography-preview.js +3 -1
- package/build/typography-preview.js.map +1 -1
- package/build/typography-variations.js +3 -1
- package/build/typography-variations.js.map +1 -1
- package/build/utils.js +3 -1
- package/build/utils.js.map +1 -1
- package/build/variations/variation.js +3 -1
- package/build/variations/variation.js.map +1 -1
- package/build/variations/variations-color.js +4 -2
- package/build/variations/variations-color.js.map +1 -1
- package/build/variations/variations-panel.js +3 -1
- package/build/variations/variations-panel.js.map +1 -1
- package/build/variations/variations-typography.js +4 -2
- package/build/variations/variations-typography.js.map +1 -1
- package/build/with-global-styles-provider.js +3 -1
- package/build/with-global-styles-provider.js.map +1 -1
- package/build-module/background-panel.js +4 -3
- package/build-module/background-panel.js.map +1 -1
- package/build-module/block-preview-panel.js +3 -2
- package/build-module/block-preview-panel.js.map +1 -1
- package/build-module/color-indicator-wrapper.js +2 -1
- package/build-module/color-indicator-wrapper.js.map +1 -1
- package/build-module/color-palette-panel.js +3 -2
- package/build-module/color-palette-panel.js.map +1 -1
- package/build-module/color-preview.js +2 -1
- package/build-module/color-preview.js.map +1 -1
- package/build-module/color-variations.js +2 -1
- package/build-module/color-variations.js.map +1 -1
- package/build-module/confirm-reset-shadow-dialog.js +2 -1
- package/build-module/confirm-reset-shadow-dialog.js.map +1 -1
- package/build-module/context.js +2 -1
- package/build-module/context.js.map +1 -1
- package/build-module/dimensions-panel.js +4 -3
- package/build-module/dimensions-panel.js.map +1 -1
- package/build-module/font-families.js +2 -1
- package/build-module/font-families.js.map +1 -1
- package/build-module/font-family-item.js +2 -1
- package/build-module/font-family-item.js.map +1 -1
- package/build-module/font-library-modal/collection-font-variant.js +2 -1
- package/build-module/font-library-modal/collection-font-variant.js.map +1 -1
- package/build-module/font-library-modal/context.js +3 -2
- package/build-module/font-library-modal/context.js.map +1 -1
- package/build-module/font-library-modal/font-card.js +2 -1
- package/build-module/font-library-modal/font-card.js.map +1 -1
- package/build-module/font-library-modal/font-collection.js +5 -4
- package/build-module/font-library-modal/font-collection.js.map +2 -2
- package/build-module/font-library-modal/font-demo.js +2 -1
- package/build-module/font-library-modal/font-demo.js.map +1 -1
- package/build-module/font-library-modal/google-fonts-confirm-dialog.js +2 -1
- package/build-module/font-library-modal/google-fonts-confirm-dialog.js.map +2 -2
- package/build-module/font-library-modal/index.js +6 -5
- package/build-module/font-library-modal/index.js.map +1 -1
- package/build-module/font-library-modal/installed-fonts.js +2 -1
- package/build-module/font-library-modal/installed-fonts.js.map +1 -1
- package/build-module/font-library-modal/lib/inflate.js +11 -3
- package/build-module/font-library-modal/lib/inflate.js.map +1 -1
- package/build-module/font-library-modal/lib/lib-font.browser.d.js +3 -2
- package/build-module/font-library-modal/lib/lib-font.browser.d.js.map +1 -1
- package/build-module/font-library-modal/lib/lib-font.browser.js +344 -343
- package/build-module/font-library-modal/lib/lib-font.browser.js.map +1 -1
- package/build-module/font-library-modal/lib/unbrotli.js +11 -3
- package/build-module/font-library-modal/lib/unbrotli.js.map +1 -1
- package/build-module/font-library-modal/library-font-details.js +2 -1
- package/build-module/font-library-modal/library-font-details.js.map +1 -1
- package/build-module/font-library-modal/library-font-variant.js +2 -1
- package/build-module/font-library-modal/library-font-variant.js.map +1 -1
- package/build-module/font-library-modal/resolvers.js +3 -2
- package/build-module/font-library-modal/resolvers.js.map +2 -2
- package/build-module/font-library-modal/upload-fonts.js +2 -1
- package/build-module/font-library-modal/upload-fonts.js.map +2 -2
- package/build-module/font-library-modal/utils/constants.js +4 -3
- package/build-module/font-library-modal/utils/constants.js.map +1 -1
- package/build-module/font-library-modal/utils/filter-fonts.js +1 -0
- package/build-module/font-library-modal/utils/filter-fonts.js.map +1 -1
- package/build-module/font-library-modal/utils/fonts-outline.js +1 -0
- package/build-module/font-library-modal/utils/fonts-outline.js.map +1 -1
- package/build-module/font-library-modal/utils/index.js +3 -2
- package/build-module/font-library-modal/utils/index.js.map +2 -2
- package/build-module/font-library-modal/utils/make-families-from-faces.js +2 -1
- package/build-module/font-library-modal/utils/make-families-from-faces.js.map +1 -1
- package/build-module/font-library-modal/utils/preview-styles.js +1 -0
- package/build-module/font-library-modal/utils/preview-styles.js.map +1 -1
- package/build-module/font-library-modal/utils/set-immutably.js +1 -0
- package/build-module/font-library-modal/utils/set-immutably.js.map +1 -1
- package/build-module/font-library-modal/utils/sort-font-faces.js +1 -0
- package/build-module/font-library-modal/utils/sort-font-faces.js.map +1 -1
- package/build-module/font-library-modal/utils/toggleFont.js +1 -0
- package/build-module/font-library-modal/utils/toggleFont.js.map +1 -1
- package/build-module/font-sizes/confirm-delete-font-size-dialog.js +2 -1
- package/build-module/font-sizes/confirm-delete-font-size-dialog.js.map +1 -1
- package/build-module/font-sizes/confirm-reset-font-sizes-dialog.js +2 -1
- package/build-module/font-sizes/confirm-reset-font-sizes-dialog.js.map +1 -1
- package/build-module/font-sizes/font-size-preview.js +2 -1
- package/build-module/font-sizes/font-size-preview.js.map +1 -1
- package/build-module/font-sizes/font-size.js +3 -2
- package/build-module/font-sizes/font-size.js.map +1 -1
- package/build-module/font-sizes/font-sizes-count.js +2 -1
- package/build-module/font-sizes/font-sizes-count.js.map +1 -1
- package/build-module/font-sizes/font-sizes.js +3 -2
- package/build-module/font-sizes/font-sizes.js.map +1 -1
- package/build-module/font-sizes/rename-font-size-dialog.js +2 -1
- package/build-module/font-sizes/rename-font-size-dialog.js.map +1 -1
- package/build-module/global-styles-ui.js +42 -22
- package/build-module/global-styles-ui.js.map +2 -2
- package/build-module/gradients-palette-panel.js +4 -3
- package/build-module/gradients-palette-panel.js.map +1 -1
- package/build-module/highlighted-colors.js +2 -1
- package/build-module/highlighted-colors.js.map +1 -1
- package/build-module/hooks.js +3 -2
- package/build-module/hooks.js.map +1 -1
- package/build-module/icon-with-current-color.js +2 -1
- package/build-module/icon-with-current-color.js.map +1 -1
- package/build-module/index.js +1 -0
- package/build-module/index.js.map +1 -1
- package/build-module/lock-unlock.js +2 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/navigation-button.js +2 -1
- package/build-module/navigation-button.js.map +1 -1
- package/build-module/pagination/index.js +2 -1
- package/build-module/pagination/index.js.map +1 -1
- package/build-module/palette.js +3 -2
- package/build-module/palette.js.map +1 -1
- package/build-module/preset-colors.js +2 -1
- package/build-module/preset-colors.js.map +1 -1
- package/build-module/preview-colors.js +4 -3
- package/build-module/preview-colors.js.map +1 -1
- package/build-module/preview-hooks.js +1 -0
- package/build-module/preview-hooks.js.map +1 -1
- package/build-module/preview-styles.js +5 -4
- package/build-module/preview-styles.js.map +1 -1
- package/build-module/preview-typography.js +3 -2
- package/build-module/preview-typography.js.map +1 -1
- package/build-module/preview-wrapper.js +5 -4
- package/build-module/preview-wrapper.js.map +1 -1
- package/build-module/provider.js +2 -1
- package/build-module/provider.js.map +1 -1
- package/build-module/root-menu.js +3 -2
- package/build-module/root-menu.js.map +1 -1
- package/build-module/screen-background.js +3 -2
- package/build-module/screen-background.js.map +1 -1
- package/build-module/screen-block-list.js +4 -3
- package/build-module/screen-block-list.js.map +2 -2
- package/build-module/screen-block.js +4 -3
- package/build-module/screen-block.js.map +1 -1
- package/build-module/screen-color-palette.js +3 -2
- package/build-module/screen-color-palette.js.map +1 -1
- package/build-module/screen-colors.js +3 -2
- package/build-module/screen-colors.js.map +1 -1
- package/build-module/screen-css.js +32 -25
- package/build-module/screen-css.js.map +2 -2
- package/build-module/screen-header.js +2 -1
- package/build-module/screen-header.js.map +1 -1
- package/build-module/screen-layout.js +3 -2
- package/build-module/screen-layout.js.map +1 -1
- package/build-module/screen-revisions/index.js +3 -2
- package/build-module/screen-revisions/index.js.map +1 -1
- package/build-module/screen-revisions/revisions-buttons.js +3 -2
- package/build-module/screen-revisions/revisions-buttons.js.map +1 -1
- package/build-module/screen-revisions/use-global-styles-revisions.js +4 -3
- package/build-module/screen-revisions/use-global-styles-revisions.js.map +1 -1
- package/build-module/screen-root.js +5 -39
- package/build-module/screen-root.js.map +2 -2
- package/build-module/screen-shadows.js +2 -1
- package/build-module/screen-shadows.js.map +1 -1
- package/build-module/screen-style-variations.js +2 -1
- package/build-module/screen-style-variations.js.map +1 -1
- package/build-module/screen-typography-element.js +3 -2
- package/build-module/screen-typography-element.js.map +1 -1
- package/build-module/screen-typography.js +2 -1
- package/build-module/screen-typography.js.map +1 -1
- package/build-module/shadow-utils.js +2 -1
- package/build-module/shadow-utils.js.map +1 -1
- package/build-module/shadows-edit-panel.js +5 -4
- package/build-module/shadows-edit-panel.js.map +1 -1
- package/build-module/shadows-panel.js +4 -3
- package/build-module/shadows-panel.js.map +1 -1
- package/build-module/size-control/index.js +3 -2
- package/build-module/size-control/index.js.map +1 -1
- package/build-module/style-variations-container.js +2 -1
- package/build-module/style-variations-container.js.map +1 -1
- package/build-module/style-variations-content.js +2 -1
- package/build-module/style-variations-content.js.map +1 -1
- package/build-module/style-variations.js +2 -1
- package/build-module/style-variations.js.map +1 -1
- package/build-module/subtitle.js +2 -1
- package/build-module/subtitle.js.map +1 -1
- package/build-module/typography-elements.js +2 -1
- package/build-module/typography-elements.js.map +1 -1
- package/build-module/typography-example.js +2 -1
- package/build-module/typography-example.js.map +1 -1
- package/build-module/typography-panel.js +3 -2
- package/build-module/typography-panel.js.map +1 -1
- package/build-module/typography-preview.js +2 -1
- package/build-module/typography-preview.js.map +1 -1
- package/build-module/typography-variations.js +2 -1
- package/build-module/typography-variations.js.map +1 -1
- package/build-module/utils.js +2 -1
- package/build-module/utils.js.map +1 -1
- package/build-module/variations/variation.js +2 -1
- package/build-module/variations/variation.js.map +1 -1
- package/build-module/variations/variations-color.js +3 -2
- package/build-module/variations/variations-color.js.map +1 -1
- package/build-module/variations/variations-panel.js +2 -1
- package/build-module/variations/variations-panel.js.map +1 -1
- package/build-module/variations/variations-typography.js +3 -2
- package/build-module/variations/variations-typography.js.map +1 -1
- package/build-module/with-global-styles-provider.js +2 -1
- package/build-module/with-global-styles-provider.js.map +1 -1
- package/build-types/block-preview-panel.d.ts.map +1 -1
- package/build-types/font-library-modal/font-collection.d.ts.map +1 -1
- package/build-types/font-library-modal/google-fonts-confirm-dialog.d.ts.map +1 -1
- package/build-types/font-library-modal/resolvers.d.ts.map +1 -1
- package/build-types/font-library-modal/upload-fonts.d.ts.map +1 -1
- package/build-types/font-library-modal/utils/index.d.ts.map +1 -1
- package/build-types/global-styles-ui.d.ts.map +1 -1
- package/build-types/preview-colors.d.ts.map +1 -1
- package/build-types/preview-typography.d.ts.map +1 -1
- package/build-types/screen-block-list.d.ts.map +1 -1
- package/build-types/screen-css.d.ts.map +1 -1
- package/build-types/screen-root.d.ts.map +1 -1
- package/build-types/utils.d.ts.map +1 -1
- package/build-types/with-global-styles-provider.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/font-library-modal/font-collection.tsx +0 -1
- package/src/font-library-modal/google-fonts-confirm-dialog.tsx +0 -1
- package/src/font-library-modal/resolvers.tsx +0 -3
- package/src/font-library-modal/upload-fonts.tsx +0 -1
- package/src/font-library-modal/utils/index.ts +0 -2
- package/src/global-styles-ui.tsx +63 -42
- package/src/screen-block-list.tsx +0 -1
- package/src/screen-css.tsx +19 -13
- package/src/screen-root.tsx +4 -53
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
// packages/global-styles-ui/src/font-library-modal/lib/lib-font.browser.js
|
|
1
2
|
import unbrotli from "./unbrotli";
|
|
2
3
|
import GzipDecode from "./inflate";
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
var fetchFunction = globalThis.fetch;
|
|
5
|
+
var Event = class {
|
|
5
6
|
constructor(type, detail = {}, msg) {
|
|
6
7
|
this.type = type;
|
|
7
8
|
this.detail = detail;
|
|
@@ -23,8 +24,8 @@ class Event {
|
|
|
23
24
|
toString() {
|
|
24
25
|
return this.msg ? `[${this.type} event]: ${this.msg}` : `[${this.type} event]`;
|
|
25
26
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
27
|
+
};
|
|
28
|
+
var EventManager = class {
|
|
28
29
|
constructor() {
|
|
29
30
|
this.listeners = {};
|
|
30
31
|
}
|
|
@@ -51,12 +52,12 @@ class EventManager {
|
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
55
|
+
};
|
|
56
|
+
var startDate = (/* @__PURE__ */ new Date(`1904-01-01T00:00:00+0000`)).getTime();
|
|
56
57
|
function asText(data) {
|
|
57
58
|
return Array.from(data).map((v) => String.fromCharCode(v)).join(``);
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
+
var Parser = class {
|
|
60
61
|
constructor(dict, dataview, name2) {
|
|
61
62
|
this.name = (name2 || dict.tag || ``).trim();
|
|
62
63
|
this.length = dict.length;
|
|
@@ -177,8 +178,8 @@ class Parser {
|
|
|
177
178
|
while (n--) slice.push(this[fn]);
|
|
178
179
|
return slice;
|
|
179
180
|
}
|
|
180
|
-
}
|
|
181
|
-
|
|
181
|
+
};
|
|
182
|
+
var ParsedData = class {
|
|
182
183
|
constructor(parser) {
|
|
183
184
|
const pGetter = { enumerable: false, get: () => parser };
|
|
184
185
|
Object.defineProperty(this, `parser`, pGetter);
|
|
@@ -199,8 +200,8 @@ class ParsedData {
|
|
|
199
200
|
this.parser.verifyLength();
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
|
-
}
|
|
203
|
-
|
|
203
|
+
};
|
|
204
|
+
var SimpleTable = class extends ParsedData {
|
|
204
205
|
constructor(dict, dataview, name2) {
|
|
205
206
|
const { parser, start } = super(
|
|
206
207
|
new Parser(dict, dataview, name2)
|
|
@@ -210,7 +211,7 @@ class SimpleTable extends ParsedData {
|
|
|
210
211
|
const startGetter = { enumerable: false, get: () => start };
|
|
211
212
|
Object.defineProperty(this, `tableStart`, startGetter);
|
|
212
213
|
}
|
|
213
|
-
}
|
|
214
|
+
};
|
|
214
215
|
function lazy$1(object, property, getter) {
|
|
215
216
|
let val;
|
|
216
217
|
Object.defineProperty(object, property, {
|
|
@@ -222,7 +223,7 @@ function lazy$1(object, property, getter) {
|
|
|
222
223
|
enumerable: true
|
|
223
224
|
});
|
|
224
225
|
}
|
|
225
|
-
|
|
226
|
+
var SFNT = class extends SimpleTable {
|
|
226
227
|
constructor(font2, dataview, createTable2) {
|
|
227
228
|
const { p: p2 } = super({ offset: 0, length: 12 }, dataview, `sfnt`);
|
|
228
229
|
this.version = p2.uint32;
|
|
@@ -248,18 +249,18 @@ class SFNT extends SimpleTable {
|
|
|
248
249
|
lazy$1(this.tables, entry.tag.trim(), getter);
|
|
249
250
|
});
|
|
250
251
|
}
|
|
251
|
-
}
|
|
252
|
-
|
|
252
|
+
};
|
|
253
|
+
var TableRecord = class {
|
|
253
254
|
constructor(p2) {
|
|
254
255
|
this.tag = p2.tag;
|
|
255
256
|
this.checksum = p2.uint32;
|
|
256
257
|
this.offset = p2.uint32;
|
|
257
258
|
this.length = p2.uint32;
|
|
258
259
|
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
};
|
|
261
|
+
var gzipDecode = GzipDecode.inflate || void 0;
|
|
262
|
+
var nativeGzipDecode = void 0;
|
|
263
|
+
var WOFF$1 = class extends SimpleTable {
|
|
263
264
|
constructor(font2, dataview, createTable2) {
|
|
264
265
|
const { p: p2 } = super({ offset: 0, length: 44 }, dataview, `woff`);
|
|
265
266
|
this.signature = p2.tag;
|
|
@@ -281,8 +282,8 @@ class WOFF$1 extends SimpleTable {
|
|
|
281
282
|
);
|
|
282
283
|
buildWoffLazyLookups(this, dataview, createTable2);
|
|
283
284
|
}
|
|
284
|
-
}
|
|
285
|
-
|
|
285
|
+
};
|
|
286
|
+
var WoffTableDirectoryEntry = class {
|
|
286
287
|
constructor(p2) {
|
|
287
288
|
this.tag = p2.tag;
|
|
288
289
|
this.offset = p2.uint32;
|
|
@@ -290,7 +291,7 @@ class WoffTableDirectoryEntry {
|
|
|
290
291
|
this.origLength = p2.uint32;
|
|
291
292
|
this.origChecksum = p2.uint32;
|
|
292
293
|
}
|
|
293
|
-
}
|
|
294
|
+
};
|
|
294
295
|
function buildWoffLazyLookups(woff, dataview, createTable2) {
|
|
295
296
|
woff.tables = {};
|
|
296
297
|
woff.directory.forEach((entry) => {
|
|
@@ -324,9 +325,9 @@ function buildWoffLazyLookups(woff, dataview, createTable2) {
|
|
|
324
325
|
});
|
|
325
326
|
});
|
|
326
327
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
var brotliDecode = unbrotli;
|
|
329
|
+
var nativeBrotliDecode = void 0;
|
|
330
|
+
var WOFF2$1 = class extends SimpleTable {
|
|
330
331
|
constructor(font2, dataview, createTable2) {
|
|
331
332
|
const { p: p2 } = super({ offset: 0, length: 48 }, dataview, `woff2`);
|
|
332
333
|
this.signature = p2.tag;
|
|
@@ -368,8 +369,8 @@ class WOFF2$1 extends SimpleTable {
|
|
|
368
369
|
}
|
|
369
370
|
buildWoff2LazyLookups(this, decoded, createTable2);
|
|
370
371
|
}
|
|
371
|
-
}
|
|
372
|
-
|
|
372
|
+
};
|
|
373
|
+
var Woff2TableDirectoryEntry = class {
|
|
373
374
|
constructor(p2) {
|
|
374
375
|
this.flags = p2.uint8;
|
|
375
376
|
const tagNumber = this.tagNumber = this.flags & 63;
|
|
@@ -388,7 +389,7 @@ class Woff2TableDirectoryEntry {
|
|
|
388
389
|
this.transformLength = p2.uint128;
|
|
389
390
|
}
|
|
390
391
|
}
|
|
391
|
-
}
|
|
392
|
+
};
|
|
392
393
|
function buildWoff2LazyLookups(woff2, decoded, createTable2) {
|
|
393
394
|
woff2.tables = {};
|
|
394
395
|
woff2.directory.forEach((entry) => {
|
|
@@ -475,8 +476,8 @@ function getWOFF2Tag(flag) {
|
|
|
475
476
|
`Sill`
|
|
476
477
|
][flag & 63];
|
|
477
478
|
}
|
|
478
|
-
|
|
479
|
-
|
|
479
|
+
var tableClasses = {};
|
|
480
|
+
var tableClassesLoaded = false;
|
|
480
481
|
Promise.all([
|
|
481
482
|
Promise.resolve().then(function() {
|
|
482
483
|
return cmap$1;
|
|
@@ -678,10 +679,10 @@ async function setupFontFace(name2, url, options = {}) {
|
|
|
678
679
|
globalThis.document.head.appendChild(style);
|
|
679
680
|
return style;
|
|
680
681
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
682
|
+
var TTF = [0, 1, 0, 0];
|
|
683
|
+
var OTF = [79, 84, 84, 79];
|
|
684
|
+
var WOFF = [119, 79, 70, 70];
|
|
685
|
+
var WOFF2 = [119, 79, 70, 50];
|
|
685
686
|
function match(ar1, ar2) {
|
|
686
687
|
if (ar1.length !== ar2.length) return;
|
|
687
688
|
for (let i = 0; i < ar1.length; i++) {
|
|
@@ -708,7 +709,7 @@ function checkFetchResponseStatus(response) {
|
|
|
708
709
|
}
|
|
709
710
|
return response;
|
|
710
711
|
}
|
|
711
|
-
|
|
712
|
+
var Font = class extends EventManager {
|
|
712
713
|
constructor(name2, options = {}) {
|
|
713
714
|
super();
|
|
714
715
|
this.name = name2;
|
|
@@ -822,16 +823,16 @@ class Font extends EventManager {
|
|
|
822
823
|
if (this.onload) this.onload(evt);
|
|
823
824
|
}
|
|
824
825
|
}
|
|
825
|
-
}
|
|
826
|
+
};
|
|
826
827
|
globalThis.Font = Font;
|
|
827
|
-
|
|
828
|
+
var Subtable = class extends ParsedData {
|
|
828
829
|
constructor(p2, plaformID, encodingID) {
|
|
829
830
|
super(p2);
|
|
830
831
|
this.plaformID = plaformID;
|
|
831
832
|
this.encodingID = encodingID;
|
|
832
833
|
}
|
|
833
|
-
}
|
|
834
|
-
|
|
834
|
+
};
|
|
835
|
+
var Format0 = class extends Subtable {
|
|
835
836
|
constructor(p2, platformID, encodingID) {
|
|
836
837
|
super(p2, platformID, encodingID);
|
|
837
838
|
this.format = 0;
|
|
@@ -855,8 +856,8 @@ class Format0 extends Subtable {
|
|
|
855
856
|
getSupportedCharCodes() {
|
|
856
857
|
return [{ start: 1, end: 256 }];
|
|
857
858
|
}
|
|
858
|
-
}
|
|
859
|
-
|
|
859
|
+
};
|
|
860
|
+
var Format2 = class extends Subtable {
|
|
860
861
|
constructor(p2, platformID, encodingID) {
|
|
861
862
|
super(p2, platformID, encodingID);
|
|
862
863
|
this.format = 2;
|
|
@@ -908,8 +909,8 @@ class Format2 extends Subtable {
|
|
|
908
909
|
end: h.lastCode
|
|
909
910
|
}));
|
|
910
911
|
}
|
|
911
|
-
}
|
|
912
|
-
|
|
912
|
+
};
|
|
913
|
+
var SubHeader = class {
|
|
913
914
|
constructor(p2) {
|
|
914
915
|
this.firstCode = p2.uint16;
|
|
915
916
|
this.entryCount = p2.uint16;
|
|
@@ -917,8 +918,8 @@ class SubHeader {
|
|
|
917
918
|
this.idDelta = p2.int16;
|
|
918
919
|
this.idRangeOffset = p2.uint16;
|
|
919
920
|
}
|
|
920
|
-
}
|
|
921
|
-
|
|
921
|
+
};
|
|
922
|
+
var Format4 = class extends Subtable {
|
|
922
923
|
constructor(p2, platformID, encodingID) {
|
|
923
924
|
super(p2, platformID, encodingID);
|
|
924
925
|
this.format = 4;
|
|
@@ -1016,8 +1017,8 @@ class Format4 extends Subtable {
|
|
|
1016
1017
|
end: v.endCode
|
|
1017
1018
|
}));
|
|
1018
1019
|
}
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1020
|
+
};
|
|
1021
|
+
var Format6 = class extends Subtable {
|
|
1021
1022
|
constructor(p2, platformID, encodingID) {
|
|
1022
1023
|
super(p2, platformID, encodingID);
|
|
1023
1024
|
this.format = 6;
|
|
@@ -1051,8 +1052,8 @@ class Format6 extends Subtable {
|
|
|
1051
1052
|
}
|
|
1052
1053
|
return [{ start: this.firstCode, end: this.lastCode }];
|
|
1053
1054
|
}
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1055
|
+
};
|
|
1056
|
+
var Format8 = class extends Subtable {
|
|
1056
1057
|
constructor(p2, platformID, encodingID) {
|
|
1057
1058
|
super(p2, platformID, encodingID);
|
|
1058
1059
|
this.format = 8;
|
|
@@ -1088,15 +1089,15 @@ class Format8 extends Subtable {
|
|
|
1088
1089
|
end: v.endcharCode
|
|
1089
1090
|
}));
|
|
1090
1091
|
}
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1092
|
+
};
|
|
1093
|
+
var SequentialMapGroup$1 = class {
|
|
1093
1094
|
constructor(p2) {
|
|
1094
1095
|
this.startcharCode = p2.uint32;
|
|
1095
1096
|
this.endcharCode = p2.uint32;
|
|
1096
1097
|
this.startGlyphID = p2.uint32;
|
|
1097
1098
|
}
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1099
|
+
};
|
|
1100
|
+
var Format10 = class extends Subtable {
|
|
1100
1101
|
constructor(p2, platformID, encodingID) {
|
|
1101
1102
|
super(p2, platformID, encodingID);
|
|
1102
1103
|
this.format = 10;
|
|
@@ -1135,8 +1136,8 @@ class Format10 extends Subtable {
|
|
|
1135
1136
|
}
|
|
1136
1137
|
return [{ start: this.startCharCode, end: this.endCharCode }];
|
|
1137
1138
|
}
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1139
|
+
};
|
|
1140
|
+
var Format12 = class extends Subtable {
|
|
1140
1141
|
constructor(p2, platformID, encodingID) {
|
|
1141
1142
|
super(p2, platformID, encodingID);
|
|
1142
1143
|
this.format = 12;
|
|
@@ -1177,15 +1178,15 @@ class Format12 extends Subtable {
|
|
|
1177
1178
|
end: v.endCharCode
|
|
1178
1179
|
}));
|
|
1179
1180
|
}
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1181
|
+
};
|
|
1182
|
+
var SequentialMapGroup = class {
|
|
1182
1183
|
constructor(p2) {
|
|
1183
1184
|
this.startCharCode = p2.uint32;
|
|
1184
1185
|
this.endCharCode = p2.uint32;
|
|
1185
1186
|
this.startGlyphID = p2.uint32;
|
|
1186
1187
|
}
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1188
|
+
};
|
|
1189
|
+
var Format13 = class extends Subtable {
|
|
1189
1190
|
constructor(p2, platformID, encodingID) {
|
|
1190
1191
|
super(p2, platformID, encodingID);
|
|
1191
1192
|
this.format = 13;
|
|
@@ -1215,15 +1216,15 @@ class Format13 extends Subtable {
|
|
|
1215
1216
|
end: v.endCharCode
|
|
1216
1217
|
}));
|
|
1217
1218
|
}
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1219
|
+
};
|
|
1220
|
+
var ConstantMapGroup = class {
|
|
1220
1221
|
constructor(p2) {
|
|
1221
1222
|
this.startCharCode = p2.uint32;
|
|
1222
1223
|
this.endCharCode = p2.uint32;
|
|
1223
1224
|
this.glyphID = p2.uint32;
|
|
1224
1225
|
}
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1226
|
+
};
|
|
1227
|
+
var Format14 = class extends Subtable {
|
|
1227
1228
|
constructor(p2, platformID, encodingID) {
|
|
1228
1229
|
super(p2, platformID, encodingID);
|
|
1229
1230
|
this.subTableStart = p2.currentPosition;
|
|
@@ -1261,14 +1262,14 @@ class Format14 extends Subtable {
|
|
|
1261
1262
|
getSupportedVariations() {
|
|
1262
1263
|
return this.varSelectors.map((v) => v.varSelector);
|
|
1263
1264
|
}
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1265
|
+
};
|
|
1266
|
+
var VariationSelector = class {
|
|
1266
1267
|
constructor(p2) {
|
|
1267
1268
|
this.varSelector = p2.uint24;
|
|
1268
1269
|
this.defaultUVSOffset = p2.Offset32;
|
|
1269
1270
|
this.nonDefaultUVSOffset = p2.Offset32;
|
|
1270
1271
|
}
|
|
1271
|
-
}
|
|
1272
|
+
};
|
|
1272
1273
|
function createSubTable(parser, platformID, encodingID) {
|
|
1273
1274
|
const format = parser.uint16;
|
|
1274
1275
|
if (format === 0) return new Format0(parser, platformID, encodingID);
|
|
@@ -1282,7 +1283,7 @@ function createSubTable(parser, platformID, encodingID) {
|
|
|
1282
1283
|
if (format === 14) return new Format14(parser, platformID, encodingID);
|
|
1283
1284
|
return {};
|
|
1284
1285
|
}
|
|
1285
|
-
|
|
1286
|
+
var cmap = class extends SimpleTable {
|
|
1286
1287
|
constructor(dict, dataview) {
|
|
1287
1288
|
const { p: p2 } = super(dict, dataview);
|
|
1288
1289
|
this.version = p2.uint16;
|
|
@@ -1336,8 +1337,8 @@ class cmap extends SimpleTable {
|
|
|
1336
1337
|
return t.supportsVariation && t.supportsVariation(variation) !== false;
|
|
1337
1338
|
});
|
|
1338
1339
|
}
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1340
|
+
};
|
|
1341
|
+
var EncodingRecord = class {
|
|
1341
1342
|
constructor(p2, tableStart) {
|
|
1342
1343
|
const platformID = this.platformID = p2.uint16;
|
|
1343
1344
|
const encodingID = this.encodingID = p2.uint16;
|
|
@@ -1347,9 +1348,9 @@ class EncodingRecord {
|
|
|
1347
1348
|
return createSubTable(p2, platformID, encodingID);
|
|
1348
1349
|
});
|
|
1349
1350
|
}
|
|
1350
|
-
}
|
|
1351
|
+
};
|
|
1351
1352
|
var cmap$1 = Object.freeze({ __proto__: null, cmap });
|
|
1352
|
-
|
|
1353
|
+
var head = class extends SimpleTable {
|
|
1353
1354
|
constructor(dict, dataview) {
|
|
1354
1355
|
const { p: p2 } = super(dict, dataview);
|
|
1355
1356
|
this.load({
|
|
@@ -1373,9 +1374,9 @@ class head extends SimpleTable {
|
|
|
1373
1374
|
glyphDataFormat: p2.uint16
|
|
1374
1375
|
});
|
|
1375
1376
|
}
|
|
1376
|
-
}
|
|
1377
|
+
};
|
|
1377
1378
|
var head$1 = Object.freeze({ __proto__: null, head });
|
|
1378
|
-
|
|
1379
|
+
var hhea = class extends SimpleTable {
|
|
1379
1380
|
constructor(dict, dataview) {
|
|
1380
1381
|
const { p: p2 } = super(dict, dataview);
|
|
1381
1382
|
this.majorVersion = p2.uint16;
|
|
@@ -1398,9 +1399,9 @@ class hhea extends SimpleTable {
|
|
|
1398
1399
|
this.numberOfHMetrics = p2.uint16;
|
|
1399
1400
|
p2.verifyLength();
|
|
1400
1401
|
}
|
|
1401
|
-
}
|
|
1402
|
+
};
|
|
1402
1403
|
var hhea$1 = Object.freeze({ __proto__: null, hhea });
|
|
1403
|
-
|
|
1404
|
+
var hmtx = class extends SimpleTable {
|
|
1404
1405
|
constructor(dict, dataview, tables) {
|
|
1405
1406
|
const { p: p2 } = super(dict, dataview);
|
|
1406
1407
|
const numberOfHMetrics = tables.hhea.numberOfHMetrics;
|
|
@@ -1422,15 +1423,15 @@ class hmtx extends SimpleTable {
|
|
|
1422
1423
|
});
|
|
1423
1424
|
}
|
|
1424
1425
|
}
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1426
|
+
};
|
|
1427
|
+
var LongHorMetric = class {
|
|
1427
1428
|
constructor(w, b) {
|
|
1428
1429
|
this.advanceWidth = w;
|
|
1429
1430
|
this.lsb = b;
|
|
1430
1431
|
}
|
|
1431
|
-
}
|
|
1432
|
+
};
|
|
1432
1433
|
var hmtx$1 = Object.freeze({ __proto__: null, hmtx });
|
|
1433
|
-
|
|
1434
|
+
var maxp = class extends SimpleTable {
|
|
1434
1435
|
constructor(dict, dataview) {
|
|
1435
1436
|
const { p: p2 } = super(dict, dataview);
|
|
1436
1437
|
this.version = p2.legacyFixed;
|
|
@@ -1452,9 +1453,9 @@ class maxp extends SimpleTable {
|
|
|
1452
1453
|
}
|
|
1453
1454
|
p2.verifyLength();
|
|
1454
1455
|
}
|
|
1455
|
-
}
|
|
1456
|
+
};
|
|
1456
1457
|
var maxp$1 = Object.freeze({ __proto__: null, maxp });
|
|
1457
|
-
|
|
1458
|
+
var name = class extends SimpleTable {
|
|
1458
1459
|
constructor(dict, dataview) {
|
|
1459
1460
|
const { p: p2 } = super(dict, dataview);
|
|
1460
1461
|
this.format = p2.uint16;
|
|
@@ -1477,14 +1478,14 @@ class name extends SimpleTable {
|
|
|
1477
1478
|
);
|
|
1478
1479
|
if (record) return record.string;
|
|
1479
1480
|
}
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1481
|
+
};
|
|
1482
|
+
var LangTagRecord = class {
|
|
1482
1483
|
constructor(length, offset) {
|
|
1483
1484
|
this.length = length;
|
|
1484
1485
|
this.offset = offset;
|
|
1485
1486
|
}
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1487
|
+
};
|
|
1488
|
+
var NameRecord = class {
|
|
1488
1489
|
constructor(p2, nameTable) {
|
|
1489
1490
|
this.platformID = p2.uint16;
|
|
1490
1491
|
this.encodingID = p2.uint16;
|
|
@@ -1497,7 +1498,7 @@ class NameRecord {
|
|
|
1497
1498
|
return decodeString(p2, this);
|
|
1498
1499
|
});
|
|
1499
1500
|
}
|
|
1500
|
-
}
|
|
1501
|
+
};
|
|
1501
1502
|
function decodeString(p2, record) {
|
|
1502
1503
|
const { platformID, length } = record;
|
|
1503
1504
|
if (length === 0) return ``;
|
|
@@ -1515,7 +1516,7 @@ function decodeString(p2, record) {
|
|
|
1515
1516
|
return str.join(``);
|
|
1516
1517
|
}
|
|
1517
1518
|
var name$1 = Object.freeze({ __proto__: null, name });
|
|
1518
|
-
|
|
1519
|
+
var OS2 = class extends SimpleTable {
|
|
1519
1520
|
constructor(dict, dataview) {
|
|
1520
1521
|
const { p: p2 } = super(dict, dataview);
|
|
1521
1522
|
this.version = p2.uint16;
|
|
@@ -1562,9 +1563,9 @@ class OS2 extends SimpleTable {
|
|
|
1562
1563
|
this.usUpperOpticalPointSize = p2.uint16;
|
|
1563
1564
|
if (this.version === 5) return p2.verifyLength();
|
|
1564
1565
|
}
|
|
1565
|
-
}
|
|
1566
|
+
};
|
|
1566
1567
|
var OS2$1 = Object.freeze({ __proto__: null, OS2 });
|
|
1567
|
-
|
|
1568
|
+
var post = class extends SimpleTable {
|
|
1568
1569
|
constructor(dict, dataview) {
|
|
1569
1570
|
const { p: p2 } = super(dict, dataview);
|
|
1570
1571
|
this.version = p2.legacyFixed;
|
|
@@ -1625,8 +1626,8 @@ class post extends SimpleTable {
|
|
|
1625
1626
|
);
|
|
1626
1627
|
return data.map((b) => String.fromCharCode(b)).join(``);
|
|
1627
1628
|
}
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1629
|
+
};
|
|
1630
|
+
var macStrings = [
|
|
1630
1631
|
`.notdef`,
|
|
1631
1632
|
`.null`,
|
|
1632
1633
|
`nonmarkingreturn`,
|
|
@@ -1887,7 +1888,7 @@ const macStrings = [
|
|
|
1887
1888
|
`dcroat`
|
|
1888
1889
|
];
|
|
1889
1890
|
var post$1 = Object.freeze({ __proto__: null, post });
|
|
1890
|
-
|
|
1891
|
+
var BASE = class extends SimpleTable {
|
|
1891
1892
|
constructor(dict, dataview) {
|
|
1892
1893
|
const { p: p2 } = super(dict, dataview);
|
|
1893
1894
|
this.majorVersion = p2.uint16;
|
|
@@ -1922,8 +1923,8 @@ class BASE extends SimpleTable {
|
|
|
1922
1923
|
);
|
|
1923
1924
|
}
|
|
1924
1925
|
}
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1926
|
+
};
|
|
1927
|
+
var AxisTable = class extends SimpleTable {
|
|
1927
1928
|
constructor(dict, dataview) {
|
|
1928
1929
|
const { p: p2 } = super(dict, dataview, `AxisTable`);
|
|
1929
1930
|
this.baseTagListOffset = p2.Offset16;
|
|
@@ -1945,8 +1946,8 @@ class AxisTable extends SimpleTable {
|
|
|
1945
1946
|
)
|
|
1946
1947
|
);
|
|
1947
1948
|
}
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1949
|
+
};
|
|
1950
|
+
var BaseTagListTable = class extends SimpleTable {
|
|
1950
1951
|
constructor(dict, dataview) {
|
|
1951
1952
|
const { p: p2 } = super(dict, dataview, `BaseTagListTable`);
|
|
1952
1953
|
this.baseTagCount = p2.uint16;
|
|
@@ -1954,8 +1955,8 @@ class BaseTagListTable extends SimpleTable {
|
|
|
1954
1955
|
(_) => p2.tag
|
|
1955
1956
|
);
|
|
1956
1957
|
}
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1958
|
+
};
|
|
1959
|
+
var BaseScriptListTable = class extends SimpleTable {
|
|
1959
1960
|
constructor(dict, dataview) {
|
|
1960
1961
|
const { p: p2 } = super(dict, dataview, `BaseScriptListTable`);
|
|
1961
1962
|
this.baseScriptCount = p2.uint16;
|
|
@@ -1967,8 +1968,8 @@ class BaseScriptListTable extends SimpleTable {
|
|
|
1967
1968
|
);
|
|
1968
1969
|
});
|
|
1969
1970
|
}
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1971
|
+
};
|
|
1972
|
+
var BaseScriptRecord = class {
|
|
1972
1973
|
constructor(baseScriptListTableStart, p2) {
|
|
1973
1974
|
this.baseScriptTag = p2.tag;
|
|
1974
1975
|
this.baseScriptOffset = p2.Offset16;
|
|
@@ -1977,8 +1978,8 @@ class BaseScriptRecord {
|
|
|
1977
1978
|
return new BaseScriptTable(p2);
|
|
1978
1979
|
});
|
|
1979
1980
|
}
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1981
|
+
};
|
|
1982
|
+
var BaseScriptTable = class {
|
|
1982
1983
|
constructor(p2) {
|
|
1983
1984
|
this.start = p2.currentPosition;
|
|
1984
1985
|
this.baseValuesOffset = p2.Offset16;
|
|
@@ -1996,8 +1997,8 @@ class BaseScriptTable {
|
|
|
1996
1997
|
return new MinMaxTable(p2);
|
|
1997
1998
|
});
|
|
1998
1999
|
}
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2000
|
+
};
|
|
2001
|
+
var BaseLangSysRecord = class {
|
|
2001
2002
|
constructor(baseScriptTableStart, p2) {
|
|
2002
2003
|
this.baseLangSysTag = p2.tag;
|
|
2003
2004
|
this.minMaxOffset = p2.Offset16;
|
|
@@ -2006,8 +2007,8 @@ class BaseLangSysRecord {
|
|
|
2006
2007
|
return new MinMaxTable(p2);
|
|
2007
2008
|
});
|
|
2008
2009
|
}
|
|
2009
|
-
}
|
|
2010
|
-
|
|
2010
|
+
};
|
|
2011
|
+
var BaseValuesTable = class {
|
|
2011
2012
|
constructor(p2) {
|
|
2012
2013
|
this.parser = p2;
|
|
2013
2014
|
this.start = p2.currentPosition;
|
|
@@ -2021,8 +2022,8 @@ class BaseValuesTable {
|
|
|
2021
2022
|
this.parser.currentPosition = this.start + this.baseCoords[id];
|
|
2022
2023
|
return new BaseCoordTable(this.parser);
|
|
2023
2024
|
}
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2025
|
+
};
|
|
2026
|
+
var MinMaxTable = class {
|
|
2026
2027
|
constructor(p2) {
|
|
2027
2028
|
this.minCoord = p2.Offset16;
|
|
2028
2029
|
this.maxCoord = p2.Offset16;
|
|
@@ -2035,15 +2036,15 @@ class MinMaxTable {
|
|
|
2035
2036
|
);
|
|
2036
2037
|
});
|
|
2037
2038
|
}
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2039
|
+
};
|
|
2040
|
+
var FeatMinMaxRecord = class {
|
|
2040
2041
|
constructor(p2) {
|
|
2041
2042
|
this.featureTableTag = p2.tag;
|
|
2042
2043
|
this.minCoord = p2.Offset16;
|
|
2043
2044
|
this.maxCoord = p2.Offset16;
|
|
2044
2045
|
}
|
|
2045
|
-
}
|
|
2046
|
-
|
|
2046
|
+
};
|
|
2047
|
+
var BaseCoordTable = class {
|
|
2047
2048
|
constructor(p2) {
|
|
2048
2049
|
this.baseCoordFormat = p2.uint16;
|
|
2049
2050
|
this.coordinate = p2.int16;
|
|
@@ -2055,9 +2056,9 @@ class BaseCoordTable {
|
|
|
2055
2056
|
this.deviceTable = p2.Offset16;
|
|
2056
2057
|
}
|
|
2057
2058
|
}
|
|
2058
|
-
}
|
|
2059
|
+
};
|
|
2059
2060
|
var BASE$1 = Object.freeze({ __proto__: null, BASE });
|
|
2060
|
-
|
|
2061
|
+
var ClassDefinition = class {
|
|
2061
2062
|
constructor(p2) {
|
|
2062
2063
|
this.classFormat = p2.uint16;
|
|
2063
2064
|
if (this.classFormat === 1) {
|
|
@@ -2074,15 +2075,15 @@ class ClassDefinition {
|
|
|
2074
2075
|
].map((_) => new ClassRangeRecord(p2));
|
|
2075
2076
|
}
|
|
2076
2077
|
}
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2078
|
+
};
|
|
2079
|
+
var ClassRangeRecord = class {
|
|
2079
2080
|
constructor(p2) {
|
|
2080
2081
|
this.startGlyphID = p2.uint16;
|
|
2081
2082
|
this.endGlyphID = p2.uint16;
|
|
2082
2083
|
this.class = p2.uint16;
|
|
2083
2084
|
}
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2085
|
+
};
|
|
2086
|
+
var CoverageTable = class extends ParsedData {
|
|
2086
2087
|
constructor(p2) {
|
|
2087
2088
|
super(p2);
|
|
2088
2089
|
this.coverageFormat = p2.uint16;
|
|
@@ -2099,15 +2100,15 @@ class CoverageTable extends ParsedData {
|
|
|
2099
2100
|
);
|
|
2100
2101
|
}
|
|
2101
2102
|
}
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2103
|
+
};
|
|
2104
|
+
var CoverageRangeRecord = class {
|
|
2104
2105
|
constructor(p2) {
|
|
2105
2106
|
this.startGlyphID = p2.uint16;
|
|
2106
2107
|
this.endGlyphID = p2.uint16;
|
|
2107
2108
|
this.startCoverageIndex = p2.uint16;
|
|
2108
2109
|
}
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2110
|
+
};
|
|
2111
|
+
var ItemVariationStoreTable = class {
|
|
2111
2112
|
constructor(table, p2) {
|
|
2112
2113
|
this.table = table;
|
|
2113
2114
|
this.parser = p2;
|
|
@@ -2119,8 +2120,8 @@ class ItemVariationStoreTable {
|
|
|
2119
2120
|
...new Array(this.itemVariationDataCount)
|
|
2120
2121
|
].map((_) => p2.Offset32);
|
|
2121
2122
|
}
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2123
|
+
};
|
|
2124
|
+
var GDEF = class extends SimpleTable {
|
|
2124
2125
|
constructor(dict, dataview) {
|
|
2125
2126
|
const { p: p2 } = super(dict, dataview);
|
|
2126
2127
|
this.majorVersion = p2.uint16;
|
|
@@ -2166,8 +2167,8 @@ class GDEF extends SimpleTable {
|
|
|
2166
2167
|
});
|
|
2167
2168
|
}
|
|
2168
2169
|
}
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2170
|
+
};
|
|
2171
|
+
var AttachList = class extends ParsedData {
|
|
2171
2172
|
constructor(p2) {
|
|
2172
2173
|
super(p2);
|
|
2173
2174
|
this.coverageOffset = p2.Offset16;
|
|
@@ -2180,16 +2181,16 @@ class AttachList extends ParsedData {
|
|
|
2180
2181
|
this.parser.currentPosition = this.start + this.attachPointOffsets[pointID];
|
|
2181
2182
|
return new AttachPoint(this.parser);
|
|
2182
2183
|
}
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2184
|
+
};
|
|
2185
|
+
var AttachPoint = class {
|
|
2185
2186
|
constructor(p2) {
|
|
2186
2187
|
this.pointCount = p2.uint16;
|
|
2187
2188
|
this.pointIndices = [...new Array(this.pointCount)].map(
|
|
2188
2189
|
(_) => p2.uint16
|
|
2189
2190
|
);
|
|
2190
2191
|
}
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2192
|
+
};
|
|
2193
|
+
var LigCaretList = class extends ParsedData {
|
|
2193
2194
|
constructor(p2) {
|
|
2194
2195
|
super(p2);
|
|
2195
2196
|
this.coverageOffset = p2.Offset16;
|
|
@@ -2206,8 +2207,8 @@ class LigCaretList extends ParsedData {
|
|
|
2206
2207
|
this.parser.currentPosition = this.start + this.ligGlyphOffsets[ligGlyphID];
|
|
2207
2208
|
return new LigGlyph(this.parser);
|
|
2208
2209
|
}
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2210
|
+
};
|
|
2211
|
+
var LigGlyph = class extends ParsedData {
|
|
2211
2212
|
constructor(p2) {
|
|
2212
2213
|
super(p2);
|
|
2213
2214
|
this.caretCount = p2.uint16;
|
|
@@ -2219,8 +2220,8 @@ class LigGlyph extends ParsedData {
|
|
|
2219
2220
|
this.parser.currentPosition = this.start + this.caretValueOffsets[caretID];
|
|
2220
2221
|
return new CaretValue(this.parser);
|
|
2221
2222
|
}
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2223
|
+
};
|
|
2224
|
+
var CaretValue = class {
|
|
2224
2225
|
constructor(p2) {
|
|
2225
2226
|
this.caretValueFormat = p2.uint16;
|
|
2226
2227
|
if (this.caretValueFormat === 1) {
|
|
@@ -2234,8 +2235,8 @@ class CaretValue {
|
|
|
2234
2235
|
this.deviceOffset = p2.Offset16;
|
|
2235
2236
|
}
|
|
2236
2237
|
}
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2238
|
+
};
|
|
2239
|
+
var MarkGlyphSetsTable = class extends ParsedData {
|
|
2239
2240
|
constructor(p2) {
|
|
2240
2241
|
super(p2);
|
|
2241
2242
|
this.markGlyphSetTableFormat = p2.uint16;
|
|
@@ -2248,9 +2249,9 @@ class MarkGlyphSetsTable extends ParsedData {
|
|
|
2248
2249
|
this.parser.currentPosition = this.start + this.coverageOffsets[markGlyphSetID];
|
|
2249
2250
|
return new CoverageTable(this.parser);
|
|
2250
2251
|
}
|
|
2251
|
-
}
|
|
2252
|
+
};
|
|
2252
2253
|
var GDEF$1 = Object.freeze({ __proto__: null, GDEF });
|
|
2253
|
-
|
|
2254
|
+
var ScriptList = class extends ParsedData {
|
|
2254
2255
|
static EMPTY = { scriptCount: 0, scriptRecords: [] };
|
|
2255
2256
|
constructor(p2) {
|
|
2256
2257
|
super(p2);
|
|
@@ -2259,14 +2260,14 @@ class ScriptList extends ParsedData {
|
|
|
2259
2260
|
(_) => new ScriptRecord(p2)
|
|
2260
2261
|
);
|
|
2261
2262
|
}
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2263
|
+
};
|
|
2264
|
+
var ScriptRecord = class {
|
|
2264
2265
|
constructor(p2) {
|
|
2265
2266
|
this.scriptTag = p2.tag;
|
|
2266
2267
|
this.scriptOffset = p2.Offset16;
|
|
2267
2268
|
}
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2269
|
+
};
|
|
2270
|
+
var ScriptTable = class extends ParsedData {
|
|
2270
2271
|
constructor(p2) {
|
|
2271
2272
|
super(p2);
|
|
2272
2273
|
this.defaultLangSys = p2.Offset16;
|
|
@@ -2275,14 +2276,14 @@ class ScriptTable extends ParsedData {
|
|
|
2275
2276
|
(_) => new LangSysRecord(p2)
|
|
2276
2277
|
);
|
|
2277
2278
|
}
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2279
|
+
};
|
|
2280
|
+
var LangSysRecord = class {
|
|
2280
2281
|
constructor(p2) {
|
|
2281
2282
|
this.langSysTag = p2.tag;
|
|
2282
2283
|
this.langSysOffset = p2.Offset16;
|
|
2283
2284
|
}
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2285
|
+
};
|
|
2286
|
+
var LangSysTable = class {
|
|
2286
2287
|
constructor(p2) {
|
|
2287
2288
|
this.lookupOrder = p2.Offset16;
|
|
2288
2289
|
this.requiredFeatureIndex = p2.uint16;
|
|
@@ -2291,8 +2292,8 @@ class LangSysTable {
|
|
|
2291
2292
|
(_) => p2.uint16
|
|
2292
2293
|
);
|
|
2293
2294
|
}
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2295
|
+
};
|
|
2296
|
+
var FeatureList = class extends ParsedData {
|
|
2296
2297
|
static EMPTY = { featureCount: 0, featureRecords: [] };
|
|
2297
2298
|
constructor(p2) {
|
|
2298
2299
|
super(p2);
|
|
@@ -2301,14 +2302,14 @@ class FeatureList extends ParsedData {
|
|
|
2301
2302
|
(_) => new FeatureRecord(p2)
|
|
2302
2303
|
);
|
|
2303
2304
|
}
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2305
|
+
};
|
|
2306
|
+
var FeatureRecord = class {
|
|
2306
2307
|
constructor(p2) {
|
|
2307
2308
|
this.featureTag = p2.tag;
|
|
2308
2309
|
this.featureOffset = p2.Offset16;
|
|
2309
2310
|
}
|
|
2310
|
-
}
|
|
2311
|
-
|
|
2311
|
+
};
|
|
2312
|
+
var FeatureTable = class extends ParsedData {
|
|
2312
2313
|
constructor(p2) {
|
|
2313
2314
|
super(p2);
|
|
2314
2315
|
this.featureParams = p2.Offset16;
|
|
@@ -2327,8 +2328,8 @@ class FeatureTable extends ParsedData {
|
|
|
2327
2328
|
if (tag.startsWith(`ss`)) return new StylisticSet(p2);
|
|
2328
2329
|
}
|
|
2329
2330
|
}
|
|
2330
|
-
}
|
|
2331
|
-
|
|
2331
|
+
};
|
|
2332
|
+
var CharacterVariant = class {
|
|
2332
2333
|
constructor(p2) {
|
|
2333
2334
|
this.format = p2.uint16;
|
|
2334
2335
|
this.featUiLabelNameId = p2.uint16;
|
|
@@ -2341,8 +2342,8 @@ class CharacterVariant {
|
|
|
2341
2342
|
(_) => p2.uint24
|
|
2342
2343
|
);
|
|
2343
2344
|
}
|
|
2344
|
-
}
|
|
2345
|
-
|
|
2345
|
+
};
|
|
2346
|
+
var Size = class {
|
|
2346
2347
|
constructor(p2) {
|
|
2347
2348
|
this.designSize = p2.uint16;
|
|
2348
2349
|
this.subfamilyIdentifier = p2.uint16;
|
|
@@ -2350,19 +2351,19 @@ class Size {
|
|
|
2350
2351
|
this.smallEnd = p2.uint16;
|
|
2351
2352
|
this.largeEnd = p2.uint16;
|
|
2352
2353
|
}
|
|
2353
|
-
}
|
|
2354
|
-
|
|
2354
|
+
};
|
|
2355
|
+
var StylisticSet = class {
|
|
2355
2356
|
constructor(p2) {
|
|
2356
2357
|
this.version = p2.uint16;
|
|
2357
2358
|
this.UINameID = p2.uint16;
|
|
2358
2359
|
}
|
|
2359
|
-
}
|
|
2360
|
+
};
|
|
2360
2361
|
function undoCoverageOffsetParsing(instance) {
|
|
2361
2362
|
instance.parser.currentPosition -= 2;
|
|
2362
2363
|
delete instance.coverageOffset;
|
|
2363
2364
|
delete instance.getCoverageTable;
|
|
2364
2365
|
}
|
|
2365
|
-
|
|
2366
|
+
var LookupType$1 = class extends ParsedData {
|
|
2366
2367
|
constructor(p2) {
|
|
2367
2368
|
super(p2);
|
|
2368
2369
|
this.substFormat = p2.uint16;
|
|
@@ -2373,20 +2374,20 @@ class LookupType$1 extends ParsedData {
|
|
|
2373
2374
|
p2.currentPosition = this.start + this.coverageOffset;
|
|
2374
2375
|
return new CoverageTable(p2);
|
|
2375
2376
|
}
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2377
|
+
};
|
|
2378
|
+
var SubstLookupRecord = class {
|
|
2378
2379
|
constructor(p2) {
|
|
2379
2380
|
this.glyphSequenceIndex = p2.uint16;
|
|
2380
2381
|
this.lookupListIndex = p2.uint16;
|
|
2381
2382
|
}
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2383
|
+
};
|
|
2384
|
+
var LookupType1$1 = class extends LookupType$1 {
|
|
2384
2385
|
constructor(p2) {
|
|
2385
2386
|
super(p2);
|
|
2386
2387
|
this.deltaGlyphID = p2.int16;
|
|
2387
2388
|
}
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2389
|
+
};
|
|
2390
|
+
var LookupType2$1 = class extends LookupType$1 {
|
|
2390
2391
|
constructor(p2) {
|
|
2391
2392
|
super(p2);
|
|
2392
2393
|
this.sequenceCount = p2.uint16;
|
|
@@ -2399,16 +2400,16 @@ class LookupType2$1 extends LookupType$1 {
|
|
|
2399
2400
|
p2.currentPosition = this.start + this.sequenceOffsets[index];
|
|
2400
2401
|
return new SequenceTable(p2);
|
|
2401
2402
|
}
|
|
2402
|
-
}
|
|
2403
|
-
|
|
2403
|
+
};
|
|
2404
|
+
var SequenceTable = class {
|
|
2404
2405
|
constructor(p2) {
|
|
2405
2406
|
this.glyphCount = p2.uint16;
|
|
2406
2407
|
this.substituteGlyphIDs = [...new Array(this.glyphCount)].map(
|
|
2407
2408
|
(_) => p2.uint16
|
|
2408
2409
|
);
|
|
2409
2410
|
}
|
|
2410
|
-
}
|
|
2411
|
-
|
|
2411
|
+
};
|
|
2412
|
+
var LookupType3$1 = class extends LookupType$1 {
|
|
2412
2413
|
constructor(p2) {
|
|
2413
2414
|
super(p2);
|
|
2414
2415
|
this.alternateSetCount = p2.uint16;
|
|
@@ -2421,16 +2422,16 @@ class LookupType3$1 extends LookupType$1 {
|
|
|
2421
2422
|
p2.currentPosition = this.start + this.alternateSetOffsets[index];
|
|
2422
2423
|
return new AlternateSetTable(p2);
|
|
2423
2424
|
}
|
|
2424
|
-
}
|
|
2425
|
-
|
|
2425
|
+
};
|
|
2426
|
+
var AlternateSetTable = class {
|
|
2426
2427
|
constructor(p2) {
|
|
2427
2428
|
this.glyphCount = p2.uint16;
|
|
2428
2429
|
this.alternateGlyphIDs = [...new Array(this.glyphCount)].map(
|
|
2429
2430
|
(_) => p2.uint16
|
|
2430
2431
|
);
|
|
2431
2432
|
}
|
|
2432
|
-
}
|
|
2433
|
-
|
|
2433
|
+
};
|
|
2434
|
+
var LookupType4$1 = class extends LookupType$1 {
|
|
2434
2435
|
constructor(p2) {
|
|
2435
2436
|
super(p2);
|
|
2436
2437
|
this.ligatureSetCount = p2.uint16;
|
|
@@ -2443,8 +2444,8 @@ class LookupType4$1 extends LookupType$1 {
|
|
|
2443
2444
|
p2.currentPosition = this.start + this.ligatureSetOffsets[index];
|
|
2444
2445
|
return new LigatureSetTable(p2);
|
|
2445
2446
|
}
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2447
|
+
};
|
|
2448
|
+
var LigatureSetTable = class extends ParsedData {
|
|
2448
2449
|
constructor(p2) {
|
|
2449
2450
|
super(p2);
|
|
2450
2451
|
this.ligatureCount = p2.uint16;
|
|
@@ -2457,8 +2458,8 @@ class LigatureSetTable extends ParsedData {
|
|
|
2457
2458
|
p2.currentPosition = this.start + this.ligatureOffsets[index];
|
|
2458
2459
|
return new LigatureTable(p2);
|
|
2459
2460
|
}
|
|
2460
|
-
}
|
|
2461
|
-
|
|
2461
|
+
};
|
|
2462
|
+
var LigatureTable = class {
|
|
2462
2463
|
constructor(p2) {
|
|
2463
2464
|
this.ligatureGlyph = p2.uint16;
|
|
2464
2465
|
this.componentCount = p2.uint16;
|
|
@@ -2466,8 +2467,8 @@ class LigatureTable {
|
|
|
2466
2467
|
...new Array(this.componentCount - 1)
|
|
2467
2468
|
].map((_) => p2.uint16);
|
|
2468
2469
|
}
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2470
|
+
};
|
|
2471
|
+
var LookupType5$1 = class extends LookupType$1 {
|
|
2471
2472
|
constructor(p2) {
|
|
2472
2473
|
super(p2);
|
|
2473
2474
|
if (this.substFormat === 1) {
|
|
@@ -2524,8 +2525,8 @@ class LookupType5$1 extends LookupType$1 {
|
|
|
2524
2525
|
p2.currentPosition = this.start + this.coverageOffsets[index];
|
|
2525
2526
|
return new CoverageTable(p2);
|
|
2526
2527
|
}
|
|
2527
|
-
}
|
|
2528
|
-
|
|
2528
|
+
};
|
|
2529
|
+
var SubRuleSetTable = class extends ParsedData {
|
|
2529
2530
|
constructor(p2) {
|
|
2530
2531
|
super(p2);
|
|
2531
2532
|
this.subRuleCount = p2.uint16;
|
|
@@ -2538,8 +2539,8 @@ class SubRuleSetTable extends ParsedData {
|
|
|
2538
2539
|
p2.currentPosition = this.start + this.subRuleOffsets[index];
|
|
2539
2540
|
return new SubRuleTable(p2);
|
|
2540
2541
|
}
|
|
2541
|
-
}
|
|
2542
|
-
|
|
2542
|
+
};
|
|
2543
|
+
var SubRuleTable = class {
|
|
2543
2544
|
constructor(p2) {
|
|
2544
2545
|
this.glyphCount = p2.uint16;
|
|
2545
2546
|
this.substitutionCount = p2.uint16;
|
|
@@ -2550,8 +2551,8 @@ class SubRuleTable {
|
|
|
2550
2551
|
...new Array(this.substitutionCount)
|
|
2551
2552
|
].map((_) => new SubstLookupRecord(p2));
|
|
2552
2553
|
}
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2554
|
+
};
|
|
2555
|
+
var SubClassSetTable = class extends ParsedData {
|
|
2555
2556
|
constructor(p2) {
|
|
2556
2557
|
super(p2);
|
|
2557
2558
|
this.subClassRuleCount = p2.uint16;
|
|
@@ -2564,13 +2565,13 @@ class SubClassSetTable extends ParsedData {
|
|
|
2564
2565
|
p2.currentPosition = this.start + this.subClassRuleOffsets[index];
|
|
2565
2566
|
return new SubClassRuleTable(p2);
|
|
2566
2567
|
}
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2568
|
+
};
|
|
2569
|
+
var SubClassRuleTable = class extends SubRuleTable {
|
|
2569
2570
|
constructor(p2) {
|
|
2570
2571
|
super(p2);
|
|
2571
2572
|
}
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2573
|
+
};
|
|
2574
|
+
var LookupType6$1 = class extends LookupType$1 {
|
|
2574
2575
|
constructor(p2) {
|
|
2575
2576
|
super(p2);
|
|
2576
2577
|
if (this.substFormat === 1) {
|
|
@@ -2635,8 +2636,8 @@ class LookupType6$1 extends LookupType$1 {
|
|
|
2635
2636
|
p2.currentPosition = this.start + offset;
|
|
2636
2637
|
return new CoverageTable(p2);
|
|
2637
2638
|
}
|
|
2638
|
-
}
|
|
2639
|
-
|
|
2639
|
+
};
|
|
2640
|
+
var ChainSubRuleSetTable = class extends ParsedData {
|
|
2640
2641
|
constructor(p2) {
|
|
2641
2642
|
super(p2);
|
|
2642
2643
|
this.chainSubRuleCount = p2.uint16;
|
|
@@ -2649,8 +2650,8 @@ class ChainSubRuleSetTable extends ParsedData {
|
|
|
2649
2650
|
p2.currentPosition = this.start + this.chainSubRuleOffsets[index];
|
|
2650
2651
|
return new ChainSubRuleTable(p2);
|
|
2651
2652
|
}
|
|
2652
|
-
}
|
|
2653
|
-
|
|
2653
|
+
};
|
|
2654
|
+
var ChainSubRuleTable = class {
|
|
2654
2655
|
constructor(p2) {
|
|
2655
2656
|
this.backtrackGlyphCount = p2.uint16;
|
|
2656
2657
|
this.backtrackSequence = [
|
|
@@ -2669,8 +2670,8 @@ class ChainSubRuleTable {
|
|
|
2669
2670
|
(_) => new SubstLookupRecord(p2)
|
|
2670
2671
|
);
|
|
2671
2672
|
}
|
|
2672
|
-
}
|
|
2673
|
-
|
|
2673
|
+
};
|
|
2674
|
+
var ChainSubClassSetTable = class extends ParsedData {
|
|
2674
2675
|
constructor(p2) {
|
|
2675
2676
|
super(p2);
|
|
2676
2677
|
this.chainSubClassRuleCount = p2.uint16;
|
|
@@ -2683,8 +2684,8 @@ class ChainSubClassSetTable extends ParsedData {
|
|
|
2683
2684
|
p2.currentPosition = this.start + this.chainSubRuleOffsets[index];
|
|
2684
2685
|
return new ChainSubClassRuleTable(p2);
|
|
2685
2686
|
}
|
|
2686
|
-
}
|
|
2687
|
-
|
|
2687
|
+
};
|
|
2688
|
+
var ChainSubClassRuleTable = class {
|
|
2688
2689
|
constructor(p2) {
|
|
2689
2690
|
this.backtrackGlyphCount = p2.uint16;
|
|
2690
2691
|
this.backtrackSequence = [
|
|
@@ -2703,23 +2704,23 @@ class ChainSubClassRuleTable {
|
|
|
2703
2704
|
...new Array(this.substitutionCount)
|
|
2704
2705
|
].map((_) => new SequenceLookupRecord(p2));
|
|
2705
2706
|
}
|
|
2706
|
-
}
|
|
2707
|
-
|
|
2707
|
+
};
|
|
2708
|
+
var SequenceLookupRecord = class extends ParsedData {
|
|
2708
2709
|
constructor(p2) {
|
|
2709
2710
|
super(p2);
|
|
2710
2711
|
this.sequenceIndex = p2.uint16;
|
|
2711
2712
|
this.lookupListIndex = p2.uint16;
|
|
2712
2713
|
}
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2714
|
+
};
|
|
2715
|
+
var LookupType7$1 = class extends ParsedData {
|
|
2715
2716
|
constructor(p2) {
|
|
2716
2717
|
super(p2);
|
|
2717
2718
|
this.substFormat = p2.uint16;
|
|
2718
2719
|
this.extensionLookupType = p2.uint16;
|
|
2719
2720
|
this.extensionOffset = p2.Offset32;
|
|
2720
2721
|
}
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2722
|
+
};
|
|
2723
|
+
var LookupType8$1 = class extends LookupType$1 {
|
|
2723
2724
|
constructor(p2) {
|
|
2724
2725
|
super(p2);
|
|
2725
2726
|
this.backtrackGlyphCount = p2.uint16;
|
|
@@ -2735,7 +2736,7 @@ class LookupType8$1 extends LookupType$1 {
|
|
|
2735
2736
|
(_) => p2.uint16
|
|
2736
2737
|
);
|
|
2737
2738
|
}
|
|
2738
|
-
}
|
|
2739
|
+
};
|
|
2739
2740
|
var GSUBtables = {
|
|
2740
2741
|
buildSubtable: function(type, p2) {
|
|
2741
2742
|
const subtable = new [
|
|
@@ -2753,65 +2754,65 @@ var GSUBtables = {
|
|
|
2753
2754
|
return subtable;
|
|
2754
2755
|
}
|
|
2755
2756
|
};
|
|
2756
|
-
|
|
2757
|
+
var LookupType = class extends ParsedData {
|
|
2757
2758
|
constructor(p2) {
|
|
2758
2759
|
super(p2);
|
|
2759
2760
|
}
|
|
2760
|
-
}
|
|
2761
|
-
|
|
2761
|
+
};
|
|
2762
|
+
var LookupType1 = class extends LookupType {
|
|
2762
2763
|
constructor(p2) {
|
|
2763
2764
|
super(p2);
|
|
2764
2765
|
console.log(`lookup type 1`);
|
|
2765
2766
|
}
|
|
2766
|
-
}
|
|
2767
|
-
|
|
2767
|
+
};
|
|
2768
|
+
var LookupType2 = class extends LookupType {
|
|
2768
2769
|
constructor(p2) {
|
|
2769
2770
|
super(p2);
|
|
2770
2771
|
console.log(`lookup type 2`);
|
|
2771
2772
|
}
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2773
|
+
};
|
|
2774
|
+
var LookupType3 = class extends LookupType {
|
|
2774
2775
|
constructor(p2) {
|
|
2775
2776
|
super(p2);
|
|
2776
2777
|
console.log(`lookup type 3`);
|
|
2777
2778
|
}
|
|
2778
|
-
}
|
|
2779
|
-
|
|
2779
|
+
};
|
|
2780
|
+
var LookupType4 = class extends LookupType {
|
|
2780
2781
|
constructor(p2) {
|
|
2781
2782
|
super(p2);
|
|
2782
2783
|
console.log(`lookup type 4`);
|
|
2783
2784
|
}
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2785
|
+
};
|
|
2786
|
+
var LookupType5 = class extends LookupType {
|
|
2786
2787
|
constructor(p2) {
|
|
2787
2788
|
super(p2);
|
|
2788
2789
|
console.log(`lookup type 5`);
|
|
2789
2790
|
}
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2791
|
+
};
|
|
2792
|
+
var LookupType6 = class extends LookupType {
|
|
2792
2793
|
constructor(p2) {
|
|
2793
2794
|
super(p2);
|
|
2794
2795
|
console.log(`lookup type 6`);
|
|
2795
2796
|
}
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2797
|
+
};
|
|
2798
|
+
var LookupType7 = class extends LookupType {
|
|
2798
2799
|
constructor(p2) {
|
|
2799
2800
|
super(p2);
|
|
2800
2801
|
console.log(`lookup type 7`);
|
|
2801
2802
|
}
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2803
|
+
};
|
|
2804
|
+
var LookupType8 = class extends LookupType {
|
|
2804
2805
|
constructor(p2) {
|
|
2805
2806
|
super(p2);
|
|
2806
2807
|
console.log(`lookup type 8`);
|
|
2807
2808
|
}
|
|
2808
|
-
}
|
|
2809
|
-
|
|
2809
|
+
};
|
|
2810
|
+
var LookupType9 = class extends LookupType {
|
|
2810
2811
|
constructor(p2) {
|
|
2811
2812
|
super(p2);
|
|
2812
2813
|
console.log(`lookup type 9`);
|
|
2813
2814
|
}
|
|
2814
|
-
}
|
|
2815
|
+
};
|
|
2815
2816
|
var GPOStables = {
|
|
2816
2817
|
buildSubtable: function(type, p2) {
|
|
2817
2818
|
const subtable = new [
|
|
@@ -2830,7 +2831,7 @@ var GPOStables = {
|
|
|
2830
2831
|
return subtable;
|
|
2831
2832
|
}
|
|
2832
2833
|
};
|
|
2833
|
-
|
|
2834
|
+
var LookupList = class extends ParsedData {
|
|
2834
2835
|
static EMPTY = { lookupCount: 0, lookups: [] };
|
|
2835
2836
|
constructor(p2) {
|
|
2836
2837
|
super(p2);
|
|
@@ -2839,8 +2840,8 @@ class LookupList extends ParsedData {
|
|
|
2839
2840
|
(_) => p2.Offset16
|
|
2840
2841
|
);
|
|
2841
2842
|
}
|
|
2842
|
-
}
|
|
2843
|
-
|
|
2843
|
+
};
|
|
2844
|
+
var LookupTable = class extends ParsedData {
|
|
2844
2845
|
constructor(p2, type) {
|
|
2845
2846
|
super(p2);
|
|
2846
2847
|
this.ctType = type;
|
|
@@ -2875,8 +2876,8 @@ class LookupTable extends ParsedData {
|
|
|
2875
2876
|
this.parser.currentPosition = this.start + this.subtableOffsets[index];
|
|
2876
2877
|
return builder.buildSubtable(this.lookupType, this.parser);
|
|
2877
2878
|
}
|
|
2878
|
-
}
|
|
2879
|
-
|
|
2879
|
+
};
|
|
2880
|
+
var CommonLayoutTable = class extends SimpleTable {
|
|
2880
2881
|
constructor(dict, dataview, name2) {
|
|
2881
2882
|
const { p: p2, tableStart } = super(dict, dataview, name2);
|
|
2882
2883
|
this.majorVersion = p2.uint16;
|
|
@@ -2991,26 +2992,26 @@ class CommonLayoutTable extends SimpleTable {
|
|
|
2991
2992
|
this.parser.currentPosition = this.lookupList.start + lookupOffset;
|
|
2992
2993
|
return new LookupTable(this.parser, type);
|
|
2993
2994
|
}
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2995
|
+
};
|
|
2996
|
+
var GSUB = class extends CommonLayoutTable {
|
|
2996
2997
|
constructor(dict, dataview) {
|
|
2997
2998
|
super(dict, dataview, `GSUB`);
|
|
2998
2999
|
}
|
|
2999
3000
|
getLookup(lookupIndex) {
|
|
3000
3001
|
return super.getLookup(lookupIndex, `GSUB`);
|
|
3001
3002
|
}
|
|
3002
|
-
}
|
|
3003
|
+
};
|
|
3003
3004
|
var GSUB$1 = Object.freeze({ __proto__: null, GSUB });
|
|
3004
|
-
|
|
3005
|
+
var GPOS = class extends CommonLayoutTable {
|
|
3005
3006
|
constructor(dict, dataview) {
|
|
3006
3007
|
super(dict, dataview, `GPOS`);
|
|
3007
3008
|
}
|
|
3008
3009
|
getLookup(lookupIndex) {
|
|
3009
3010
|
return super.getLookup(lookupIndex, `GPOS`);
|
|
3010
3011
|
}
|
|
3011
|
-
}
|
|
3012
|
+
};
|
|
3012
3013
|
var GPOS$1 = Object.freeze({ __proto__: null, GPOS });
|
|
3013
|
-
|
|
3014
|
+
var SVG = class extends SimpleTable {
|
|
3014
3015
|
constructor(dict, dataview) {
|
|
3015
3016
|
const { p: p2 } = super(dict, dataview);
|
|
3016
3017
|
this.version = p2.uint16;
|
|
@@ -3018,8 +3019,8 @@ class SVG extends SimpleTable {
|
|
|
3018
3019
|
p2.currentPosition = this.tableStart + this.offsetToSVGDocumentList;
|
|
3019
3020
|
this.documentList = new SVGDocumentList(p2);
|
|
3020
3021
|
}
|
|
3021
|
-
}
|
|
3022
|
-
|
|
3022
|
+
};
|
|
3023
|
+
var SVGDocumentList = class extends ParsedData {
|
|
3023
3024
|
constructor(p2) {
|
|
3024
3025
|
super(p2);
|
|
3025
3026
|
this.numEntries = p2.uint16;
|
|
@@ -3041,17 +3042,17 @@ class SVGDocumentList extends ParsedData {
|
|
|
3041
3042
|
if (id === -1) return "";
|
|
3042
3043
|
return this.getDocument(id);
|
|
3043
3044
|
}
|
|
3044
|
-
}
|
|
3045
|
-
|
|
3045
|
+
};
|
|
3046
|
+
var SVGDocumentRecord = class {
|
|
3046
3047
|
constructor(p2) {
|
|
3047
3048
|
this.startGlyphID = p2.uint16;
|
|
3048
3049
|
this.endGlyphID = p2.uint16;
|
|
3049
3050
|
this.svgDocOffset = p2.Offset32;
|
|
3050
3051
|
this.svgDocLength = p2.uint32;
|
|
3051
3052
|
}
|
|
3052
|
-
}
|
|
3053
|
+
};
|
|
3053
3054
|
var SVG$1 = Object.freeze({ __proto__: null, SVG });
|
|
3054
|
-
|
|
3055
|
+
var fvar = class extends SimpleTable {
|
|
3055
3056
|
constructor(dict, dataview) {
|
|
3056
3057
|
const { p: p2 } = super(dict, dataview);
|
|
3057
3058
|
this.majorVersion = p2.uint16;
|
|
@@ -3087,8 +3088,8 @@ class fvar extends SimpleTable {
|
|
|
3087
3088
|
getAxis(name2) {
|
|
3088
3089
|
return this.axes.find((a) => a.tag === name2);
|
|
3089
3090
|
}
|
|
3090
|
-
}
|
|
3091
|
-
|
|
3091
|
+
};
|
|
3092
|
+
var VariationAxisRecord = class {
|
|
3092
3093
|
constructor(p2) {
|
|
3093
3094
|
this.tag = p2.tag;
|
|
3094
3095
|
this.minValue = p2.fixed;
|
|
@@ -3097,8 +3098,8 @@ class VariationAxisRecord {
|
|
|
3097
3098
|
this.flags = p2.flags(16);
|
|
3098
3099
|
this.axisNameID = p2.uint16;
|
|
3099
3100
|
}
|
|
3100
|
-
}
|
|
3101
|
-
|
|
3101
|
+
};
|
|
3102
|
+
var InstanceRecord = class {
|
|
3102
3103
|
constructor(p2, axisCount, size) {
|
|
3103
3104
|
let start = p2.currentPosition;
|
|
3104
3105
|
this.subfamilyNameID = p2.uint16;
|
|
@@ -3110,9 +3111,9 @@ class InstanceRecord {
|
|
|
3110
3111
|
this.postScriptNameID = p2.uint16;
|
|
3111
3112
|
}
|
|
3112
3113
|
}
|
|
3113
|
-
}
|
|
3114
|
+
};
|
|
3114
3115
|
var fvar$1 = Object.freeze({ __proto__: null, fvar });
|
|
3115
|
-
|
|
3116
|
+
var cvt = class extends SimpleTable {
|
|
3116
3117
|
constructor(dict, dataview) {
|
|
3117
3118
|
const { p: p2 } = super(dict, dataview);
|
|
3118
3119
|
const n = dict.length / 2;
|
|
@@ -3122,9 +3123,9 @@ class cvt extends SimpleTable {
|
|
|
3122
3123
|
() => [...new Array(n)].map((_) => p2.fword)
|
|
3123
3124
|
);
|
|
3124
3125
|
}
|
|
3125
|
-
}
|
|
3126
|
+
};
|
|
3126
3127
|
var cvt$1 = Object.freeze({ __proto__: null, cvt });
|
|
3127
|
-
|
|
3128
|
+
var fpgm = class extends SimpleTable {
|
|
3128
3129
|
constructor(dict, dataview) {
|
|
3129
3130
|
const { p: p2 } = super(dict, dataview);
|
|
3130
3131
|
lazy$1(
|
|
@@ -3133,9 +3134,9 @@ class fpgm extends SimpleTable {
|
|
|
3133
3134
|
() => [...new Array(dict.length)].map((_) => p2.uint8)
|
|
3134
3135
|
);
|
|
3135
3136
|
}
|
|
3136
|
-
}
|
|
3137
|
+
};
|
|
3137
3138
|
var fpgm$1 = Object.freeze({ __proto__: null, fpgm });
|
|
3138
|
-
|
|
3139
|
+
var gasp = class extends SimpleTable {
|
|
3139
3140
|
constructor(dict, dataview) {
|
|
3140
3141
|
const { p: p2 } = super(dict, dataview);
|
|
3141
3142
|
this.version = p2.uint16;
|
|
@@ -3145,15 +3146,15 @@ class gasp extends SimpleTable {
|
|
|
3145
3146
|
);
|
|
3146
3147
|
lazy$1(this, `gaspRanges`, getter);
|
|
3147
3148
|
}
|
|
3148
|
-
}
|
|
3149
|
-
|
|
3149
|
+
};
|
|
3150
|
+
var GASPRange = class {
|
|
3150
3151
|
constructor(p2) {
|
|
3151
3152
|
this.rangeMaxPPEM = p2.uint16;
|
|
3152
3153
|
this.rangeGaspBehavior = p2.uint16;
|
|
3153
3154
|
}
|
|
3154
|
-
}
|
|
3155
|
+
};
|
|
3155
3156
|
var gasp$1 = Object.freeze({ __proto__: null, gasp });
|
|
3156
|
-
|
|
3157
|
+
var glyf = class extends SimpleTable {
|
|
3157
3158
|
constructor(dict, dataview) {
|
|
3158
3159
|
super(dict, dataview);
|
|
3159
3160
|
}
|
|
@@ -3161,9 +3162,9 @@ class glyf extends SimpleTable {
|
|
|
3161
3162
|
this.parser.currentPosition = this.tableStart + offset;
|
|
3162
3163
|
return this.parser.readBytes(length);
|
|
3163
3164
|
}
|
|
3164
|
-
}
|
|
3165
|
+
};
|
|
3165
3166
|
var glyf$1 = Object.freeze({ __proto__: null, glyf });
|
|
3166
|
-
|
|
3167
|
+
var loca = class extends SimpleTable {
|
|
3167
3168
|
constructor(dict, dataview, tables) {
|
|
3168
3169
|
const { p: p2 } = super(dict, dataview);
|
|
3169
3170
|
const n = tables.maxp.numGlyphs + 1;
|
|
@@ -3187,9 +3188,9 @@ class loca extends SimpleTable {
|
|
|
3187
3188
|
let nextOffset = this.offsets[glyphID + 1] * this.x2 ? 2 : 1;
|
|
3188
3189
|
return { offset, length: nextOffset - offset };
|
|
3189
3190
|
}
|
|
3190
|
-
}
|
|
3191
|
+
};
|
|
3191
3192
|
var loca$1 = Object.freeze({ __proto__: null, loca });
|
|
3192
|
-
|
|
3193
|
+
var prep = class extends SimpleTable {
|
|
3193
3194
|
constructor(dict, dataview) {
|
|
3194
3195
|
const { p: p2 } = super(dict, dataview);
|
|
3195
3196
|
lazy$1(
|
|
@@ -3198,23 +3199,23 @@ class prep extends SimpleTable {
|
|
|
3198
3199
|
() => [...new Array(dict.length)].map((_) => p2.uint8)
|
|
3199
3200
|
);
|
|
3200
3201
|
}
|
|
3201
|
-
}
|
|
3202
|
+
};
|
|
3202
3203
|
var prep$1 = Object.freeze({ __proto__: null, prep });
|
|
3203
|
-
|
|
3204
|
+
var CFF = class extends SimpleTable {
|
|
3204
3205
|
constructor(dict, dataview) {
|
|
3205
3206
|
const { p: p2 } = super(dict, dataview);
|
|
3206
3207
|
lazy$1(this, `data`, () => p2.readBytes());
|
|
3207
3208
|
}
|
|
3208
|
-
}
|
|
3209
|
+
};
|
|
3209
3210
|
var CFF$1 = Object.freeze({ __proto__: null, CFF });
|
|
3210
|
-
|
|
3211
|
+
var CFF2 = class extends SimpleTable {
|
|
3211
3212
|
constructor(dict, dataview) {
|
|
3212
3213
|
const { p: p2 } = super(dict, dataview);
|
|
3213
3214
|
lazy$1(this, `data`, () => p2.readBytes());
|
|
3214
3215
|
}
|
|
3215
|
-
}
|
|
3216
|
+
};
|
|
3216
3217
|
var CFF2$1 = Object.freeze({ __proto__: null, CFF2 });
|
|
3217
|
-
|
|
3218
|
+
var VORG = class extends SimpleTable {
|
|
3218
3219
|
constructor(dict, dataview) {
|
|
3219
3220
|
const { p: p2 } = super(dict, dataview);
|
|
3220
3221
|
this.majorVersion = p2.uint16;
|
|
@@ -3229,15 +3230,15 @@ class VORG extends SimpleTable {
|
|
|
3229
3230
|
)
|
|
3230
3231
|
);
|
|
3231
3232
|
}
|
|
3232
|
-
}
|
|
3233
|
-
|
|
3233
|
+
};
|
|
3234
|
+
var VertOriginYMetric = class {
|
|
3234
3235
|
constructor(p2) {
|
|
3235
3236
|
this.glyphIndex = p2.uint16;
|
|
3236
3237
|
this.vertOriginY = p2.int16;
|
|
3237
3238
|
}
|
|
3238
|
-
}
|
|
3239
|
+
};
|
|
3239
3240
|
var VORG$1 = Object.freeze({ __proto__: null, VORG });
|
|
3240
|
-
|
|
3241
|
+
var BitmapSize = class {
|
|
3241
3242
|
constructor(p2) {
|
|
3242
3243
|
this.indexSubTableArrayOffset = p2.Offset32;
|
|
3243
3244
|
this.indexTablesSize = p2.uint32;
|
|
@@ -3252,8 +3253,8 @@ class BitmapSize {
|
|
|
3252
3253
|
this.bitDepth = p2.uint8;
|
|
3253
3254
|
this.flags = p2.int8;
|
|
3254
3255
|
}
|
|
3255
|
-
}
|
|
3256
|
-
|
|
3256
|
+
};
|
|
3257
|
+
var BitmapScale = class {
|
|
3257
3258
|
constructor(p2) {
|
|
3258
3259
|
this.hori = new SbitLineMetrics(p2);
|
|
3259
3260
|
this.vert = new SbitLineMetrics(p2);
|
|
@@ -3262,8 +3263,8 @@ class BitmapScale {
|
|
|
3262
3263
|
this.substitutePpemX = p2.uint8;
|
|
3263
3264
|
this.substitutePpemY = p2.uint8;
|
|
3264
3265
|
}
|
|
3265
|
-
}
|
|
3266
|
-
|
|
3266
|
+
};
|
|
3267
|
+
var SbitLineMetrics = class {
|
|
3267
3268
|
constructor(p2) {
|
|
3268
3269
|
this.ascender = p2.int8;
|
|
3269
3270
|
this.descender = p2.int8;
|
|
@@ -3278,8 +3279,8 @@ class SbitLineMetrics {
|
|
|
3278
3279
|
this.pad1 = p2.int8;
|
|
3279
3280
|
this.pad2 = p2.int8;
|
|
3280
3281
|
}
|
|
3281
|
-
}
|
|
3282
|
-
|
|
3282
|
+
};
|
|
3283
|
+
var EBLC = class extends SimpleTable {
|
|
3283
3284
|
constructor(dict, dataview, name2) {
|
|
3284
3285
|
const { p: p2 } = super(dict, dataview, name2);
|
|
3285
3286
|
this.majorVersion = p2.uint16;
|
|
@@ -3293,17 +3294,17 @@ class EBLC extends SimpleTable {
|
|
|
3293
3294
|
)
|
|
3294
3295
|
);
|
|
3295
3296
|
}
|
|
3296
|
-
}
|
|
3297
|
+
};
|
|
3297
3298
|
var EBLC$1 = Object.freeze({ __proto__: null, EBLC });
|
|
3298
|
-
|
|
3299
|
+
var EBDT = class extends SimpleTable {
|
|
3299
3300
|
constructor(dict, dataview, name2) {
|
|
3300
3301
|
const { p: p2 } = super(dict, dataview, name2);
|
|
3301
3302
|
this.majorVersion = p2.uint16;
|
|
3302
3303
|
this.minorVersion = p2.uint16;
|
|
3303
3304
|
}
|
|
3304
|
-
}
|
|
3305
|
+
};
|
|
3305
3306
|
var EBDT$1 = Object.freeze({ __proto__: null, EBDT });
|
|
3306
|
-
|
|
3307
|
+
var EBSC = class extends SimpleTable {
|
|
3307
3308
|
constructor(dict, dataview) {
|
|
3308
3309
|
const { p: p2 } = super(dict, dataview);
|
|
3309
3310
|
this.majorVersion = p2.uint16;
|
|
@@ -3317,21 +3318,21 @@ class EBSC extends SimpleTable {
|
|
|
3317
3318
|
)
|
|
3318
3319
|
);
|
|
3319
3320
|
}
|
|
3320
|
-
}
|
|
3321
|
+
};
|
|
3321
3322
|
var EBSC$1 = Object.freeze({ __proto__: null, EBSC });
|
|
3322
|
-
|
|
3323
|
+
var CBLC = class extends EBLC {
|
|
3323
3324
|
constructor(dict, dataview) {
|
|
3324
3325
|
super(dict, dataview, `CBLC`);
|
|
3325
3326
|
}
|
|
3326
|
-
}
|
|
3327
|
+
};
|
|
3327
3328
|
var CBLC$1 = Object.freeze({ __proto__: null, CBLC });
|
|
3328
|
-
|
|
3329
|
+
var CBDT = class extends EBDT {
|
|
3329
3330
|
constructor(dict, dataview) {
|
|
3330
3331
|
super(dict, dataview, `CBDT`);
|
|
3331
3332
|
}
|
|
3332
|
-
}
|
|
3333
|
+
};
|
|
3333
3334
|
var CBDT$1 = Object.freeze({ __proto__: null, CBDT });
|
|
3334
|
-
|
|
3335
|
+
var sbix = class extends SimpleTable {
|
|
3335
3336
|
constructor(dict, dataview) {
|
|
3336
3337
|
const { p: p2 } = super(dict, dataview);
|
|
3337
3338
|
this.version = p2.uint16;
|
|
@@ -3343,9 +3344,9 @@ class sbix extends SimpleTable {
|
|
|
3343
3344
|
() => [...new Array(this.numStrikes)].map((_) => p2.Offset32)
|
|
3344
3345
|
);
|
|
3345
3346
|
}
|
|
3346
|
-
}
|
|
3347
|
+
};
|
|
3347
3348
|
var sbix$1 = Object.freeze({ __proto__: null, sbix });
|
|
3348
|
-
|
|
3349
|
+
var COLR = class extends SimpleTable {
|
|
3349
3350
|
constructor(dict, dataview) {
|
|
3350
3351
|
const { p: p2 } = super(dict, dataview);
|
|
3351
3352
|
this.version = p2.uint16;
|
|
@@ -3387,22 +3388,22 @@ class COLR extends SimpleTable {
|
|
|
3387
3388
|
(_) => new LayerRecord(p)
|
|
3388
3389
|
);
|
|
3389
3390
|
}
|
|
3390
|
-
}
|
|
3391
|
-
|
|
3391
|
+
};
|
|
3392
|
+
var BaseGlyphRecord = class {
|
|
3392
3393
|
constructor(p2) {
|
|
3393
3394
|
this.gID = p2.uint16;
|
|
3394
3395
|
this.firstLayerIndex = p2.uint16;
|
|
3395
3396
|
this.numLayers = p2.uint16;
|
|
3396
3397
|
}
|
|
3397
|
-
}
|
|
3398
|
-
|
|
3398
|
+
};
|
|
3399
|
+
var LayerRecord = class {
|
|
3399
3400
|
constructor(p2) {
|
|
3400
3401
|
this.gID = p2.uint16;
|
|
3401
3402
|
this.paletteIndex = p2.uint16;
|
|
3402
3403
|
}
|
|
3403
|
-
}
|
|
3404
|
+
};
|
|
3404
3405
|
var COLR$1 = Object.freeze({ __proto__: null, COLR });
|
|
3405
|
-
|
|
3406
|
+
var CPAL = class extends SimpleTable {
|
|
3406
3407
|
constructor(dict, dataview) {
|
|
3407
3408
|
const { p: p2 } = super(dict, dataview);
|
|
3408
3409
|
this.version = p2.uint16;
|
|
@@ -3437,38 +3438,38 @@ class CPAL extends SimpleTable {
|
|
|
3437
3438
|
});
|
|
3438
3439
|
}
|
|
3439
3440
|
}
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3441
|
+
};
|
|
3442
|
+
var ColorRecord = class {
|
|
3442
3443
|
constructor(p2) {
|
|
3443
3444
|
this.blue = p2.uint8;
|
|
3444
3445
|
this.green = p2.uint8;
|
|
3445
3446
|
this.red = p2.uint8;
|
|
3446
3447
|
this.alpha = p2.uint8;
|
|
3447
3448
|
}
|
|
3448
|
-
}
|
|
3449
|
-
|
|
3449
|
+
};
|
|
3450
|
+
var PaletteTypeArray = class {
|
|
3450
3451
|
constructor(p2, numPalettes) {
|
|
3451
3452
|
this.paletteTypes = [...new Array(numPalettes)].map(
|
|
3452
3453
|
(_) => p2.uint32
|
|
3453
3454
|
);
|
|
3454
3455
|
}
|
|
3455
|
-
}
|
|
3456
|
-
|
|
3456
|
+
};
|
|
3457
|
+
var PaletteLabelsArray = class {
|
|
3457
3458
|
constructor(p2, numPalettes) {
|
|
3458
3459
|
this.paletteLabels = [...new Array(numPalettes)].map(
|
|
3459
3460
|
(_) => p2.uint16
|
|
3460
3461
|
);
|
|
3461
3462
|
}
|
|
3462
|
-
}
|
|
3463
|
-
|
|
3463
|
+
};
|
|
3464
|
+
var PaletteEntryLabelArray = class {
|
|
3464
3465
|
constructor(p2, numPalettes) {
|
|
3465
3466
|
this.paletteEntryLabels = [...new Array(numPalettes)].map(
|
|
3466
3467
|
(_) => p2.uint16
|
|
3467
3468
|
);
|
|
3468
3469
|
}
|
|
3469
|
-
}
|
|
3470
|
+
};
|
|
3470
3471
|
var CPAL$1 = Object.freeze({ __proto__: null, CPAL });
|
|
3471
|
-
|
|
3472
|
+
var DSIG = class extends SimpleTable {
|
|
3472
3473
|
constructor(dict, dataview) {
|
|
3473
3474
|
const { p: p2 } = super(dict, dataview);
|
|
3474
3475
|
this.version = p2.uint32;
|
|
@@ -3483,24 +3484,24 @@ class DSIG extends SimpleTable {
|
|
|
3483
3484
|
this.parser.currentPosition = this.tableStart + record.offset;
|
|
3484
3485
|
return new SignatureBlockFormat1(this.parser);
|
|
3485
3486
|
}
|
|
3486
|
-
}
|
|
3487
|
-
|
|
3487
|
+
};
|
|
3488
|
+
var SignatureRecord = class {
|
|
3488
3489
|
constructor(p2) {
|
|
3489
3490
|
this.format = p2.uint32;
|
|
3490
3491
|
this.length = p2.uint32;
|
|
3491
3492
|
this.offset = p2.Offset32;
|
|
3492
3493
|
}
|
|
3493
|
-
}
|
|
3494
|
-
|
|
3494
|
+
};
|
|
3495
|
+
var SignatureBlockFormat1 = class {
|
|
3495
3496
|
constructor(p2) {
|
|
3496
3497
|
p2.uint16;
|
|
3497
3498
|
p2.uint16;
|
|
3498
3499
|
this.signatureLength = p2.uint32;
|
|
3499
3500
|
this.signature = p2.readBytes(this.signatureLength);
|
|
3500
3501
|
}
|
|
3501
|
-
}
|
|
3502
|
+
};
|
|
3502
3503
|
var DSIG$1 = Object.freeze({ __proto__: null, DSIG });
|
|
3503
|
-
|
|
3504
|
+
var hdmx = class extends SimpleTable {
|
|
3504
3505
|
constructor(dict, dataview, tables) {
|
|
3505
3506
|
const { p: p2 } = super(dict, dataview);
|
|
3506
3507
|
const numGlyphs = tables.hmtx.numGlyphs;
|
|
@@ -3511,16 +3512,16 @@ class hdmx extends SimpleTable {
|
|
|
3511
3512
|
(_) => new DeviceRecord(p2, numGlyphs)
|
|
3512
3513
|
);
|
|
3513
3514
|
}
|
|
3514
|
-
}
|
|
3515
|
-
|
|
3515
|
+
};
|
|
3516
|
+
var DeviceRecord = class {
|
|
3516
3517
|
constructor(p2, numGlyphs) {
|
|
3517
3518
|
this.pixelSize = p2.uint8;
|
|
3518
3519
|
this.maxWidth = p2.uint8;
|
|
3519
3520
|
this.widths = p2.readBytes(numGlyphs);
|
|
3520
3521
|
}
|
|
3521
|
-
}
|
|
3522
|
+
};
|
|
3522
3523
|
var hdmx$1 = Object.freeze({ __proto__: null, hdmx });
|
|
3523
|
-
|
|
3524
|
+
var kern = class extends SimpleTable {
|
|
3524
3525
|
constructor(dict, dataview) {
|
|
3525
3526
|
const { p: p2 } = super(dict, dataview);
|
|
3526
3527
|
this.version = p2.uint16;
|
|
@@ -3537,8 +3538,8 @@ class kern extends SimpleTable {
|
|
|
3537
3538
|
return tables;
|
|
3538
3539
|
});
|
|
3539
3540
|
}
|
|
3540
|
-
}
|
|
3541
|
-
|
|
3541
|
+
};
|
|
3542
|
+
var KernSubTable = class {
|
|
3542
3543
|
constructor(p2) {
|
|
3543
3544
|
this.version = p2.uint16;
|
|
3544
3545
|
this.length = p2.uint16;
|
|
@@ -3573,25 +3574,25 @@ class KernSubTable {
|
|
|
3573
3574
|
get override() {
|
|
3574
3575
|
return this.coverage[3];
|
|
3575
3576
|
}
|
|
3576
|
-
}
|
|
3577
|
-
|
|
3577
|
+
};
|
|
3578
|
+
var Pair = class {
|
|
3578
3579
|
constructor(p2) {
|
|
3579
3580
|
this.left = p2.uint16;
|
|
3580
3581
|
this.right = p2.uint16;
|
|
3581
3582
|
this.value = p2.fword;
|
|
3582
3583
|
}
|
|
3583
|
-
}
|
|
3584
|
+
};
|
|
3584
3585
|
var kern$1 = Object.freeze({ __proto__: null, kern });
|
|
3585
|
-
|
|
3586
|
+
var LTSH = class extends SimpleTable {
|
|
3586
3587
|
constructor(dict, dataview) {
|
|
3587
3588
|
const { p: p2 } = super(dict, dataview);
|
|
3588
3589
|
this.version = p2.uint16;
|
|
3589
3590
|
this.numGlyphs = p2.uint16;
|
|
3590
3591
|
this.yPels = p2.readBytes(this.numGlyphs);
|
|
3591
3592
|
}
|
|
3592
|
-
}
|
|
3593
|
+
};
|
|
3593
3594
|
var LTSH$1 = Object.freeze({ __proto__: null, LTSH });
|
|
3594
|
-
|
|
3595
|
+
var MERG = class extends SimpleTable {
|
|
3595
3596
|
constructor(dict, dataview) {
|
|
3596
3597
|
const { p: p2 } = super(dict, dataview);
|
|
3597
3598
|
this.version = p2.uint16;
|
|
@@ -3611,9 +3612,9 @@ class MERG extends SimpleTable {
|
|
|
3611
3612
|
`If you need this table parsed, please file an issue, or better yet, a PR.`
|
|
3612
3613
|
);
|
|
3613
3614
|
}
|
|
3614
|
-
}
|
|
3615
|
+
};
|
|
3615
3616
|
var MERG$1 = Object.freeze({ __proto__: null, MERG });
|
|
3616
|
-
|
|
3617
|
+
var meta = class extends SimpleTable {
|
|
3617
3618
|
constructor(dict, dataview) {
|
|
3618
3619
|
const { p: p2 } = super(dict, dataview);
|
|
3619
3620
|
this.version = p2.uint32;
|
|
@@ -3624,8 +3625,8 @@ class meta extends SimpleTable {
|
|
|
3624
3625
|
(_) => new DataMap(this.tableStart, p2)
|
|
3625
3626
|
);
|
|
3626
3627
|
}
|
|
3627
|
-
}
|
|
3628
|
-
|
|
3628
|
+
};
|
|
3629
|
+
var DataMap = class {
|
|
3629
3630
|
constructor(tableStart, p2) {
|
|
3630
3631
|
this.tableStart = tableStart;
|
|
3631
3632
|
this.parser = p2;
|
|
@@ -3637,9 +3638,9 @@ class DataMap {
|
|
|
3637
3638
|
this.parser.currentField = this.tableStart + this.dataOffset;
|
|
3638
3639
|
return this.parser.readBytes(this.dataLength);
|
|
3639
3640
|
}
|
|
3640
|
-
}
|
|
3641
|
+
};
|
|
3641
3642
|
var meta$1 = Object.freeze({ __proto__: null, meta });
|
|
3642
|
-
|
|
3643
|
+
var PCLT = class extends SimpleTable {
|
|
3643
3644
|
constructor(dict, dataview) {
|
|
3644
3645
|
super(dict, dataview);
|
|
3645
3646
|
console.warn(
|
|
@@ -3649,9 +3650,9 @@ class PCLT extends SimpleTable {
|
|
|
3649
3650
|
`If you need this table parsed, please file an issue, or better yet, a PR.`
|
|
3650
3651
|
);
|
|
3651
3652
|
}
|
|
3652
|
-
}
|
|
3653
|
+
};
|
|
3653
3654
|
var PCLT$1 = Object.freeze({ __proto__: null, PCLT });
|
|
3654
|
-
|
|
3655
|
+
var VDMX = class extends SimpleTable {
|
|
3655
3656
|
constructor(dict, dataview) {
|
|
3656
3657
|
const { p: p2 } = super(dict, dataview);
|
|
3657
3658
|
this.version = p2.uint16;
|
|
@@ -3667,16 +3668,16 @@ class VDMX extends SimpleTable {
|
|
|
3667
3668
|
(_) => new VDMXGroup(p2)
|
|
3668
3669
|
);
|
|
3669
3670
|
}
|
|
3670
|
-
}
|
|
3671
|
-
|
|
3671
|
+
};
|
|
3672
|
+
var RatioRange = class {
|
|
3672
3673
|
constructor(p2) {
|
|
3673
3674
|
this.bCharSet = p2.uint8;
|
|
3674
3675
|
this.xRatio = p2.uint8;
|
|
3675
3676
|
this.yStartRatio = p2.uint8;
|
|
3676
3677
|
this.yEndRatio = p2.uint8;
|
|
3677
3678
|
}
|
|
3678
|
-
}
|
|
3679
|
-
|
|
3679
|
+
};
|
|
3680
|
+
var VDMXGroup = class {
|
|
3680
3681
|
constructor(p2) {
|
|
3681
3682
|
this.recs = p2.uint16;
|
|
3682
3683
|
this.startsz = p2.uint8;
|
|
@@ -3685,16 +3686,16 @@ class VDMXGroup {
|
|
|
3685
3686
|
(_) => new vTable(p2)
|
|
3686
3687
|
);
|
|
3687
3688
|
}
|
|
3688
|
-
}
|
|
3689
|
-
|
|
3689
|
+
};
|
|
3690
|
+
var vTable = class {
|
|
3690
3691
|
constructor(p2) {
|
|
3691
3692
|
this.yPelHeight = p2.uint16;
|
|
3692
3693
|
this.yMax = p2.int16;
|
|
3693
3694
|
this.yMin = p2.int16;
|
|
3694
3695
|
}
|
|
3695
|
-
}
|
|
3696
|
+
};
|
|
3696
3697
|
var VDMX$1 = Object.freeze({ __proto__: null, VDMX });
|
|
3697
|
-
|
|
3698
|
+
var vhea = class extends SimpleTable {
|
|
3698
3699
|
constructor(dict, dataview) {
|
|
3699
3700
|
const { p: p2 } = super(dict, dataview);
|
|
3700
3701
|
this.version = p2.fixed;
|
|
@@ -3716,9 +3717,9 @@ class vhea extends SimpleTable {
|
|
|
3716
3717
|
this.numOfLongVerMetrics = p2.uint16;
|
|
3717
3718
|
p2.verifyLength();
|
|
3718
3719
|
}
|
|
3719
|
-
}
|
|
3720
|
+
};
|
|
3720
3721
|
var vhea$1 = Object.freeze({ __proto__: null, vhea });
|
|
3721
|
-
|
|
3722
|
+
var vmtx = class extends SimpleTable {
|
|
3722
3723
|
constructor(dict, dataview, tables) {
|
|
3723
3724
|
super(dict, dataview);
|
|
3724
3725
|
const numOfLongVerMetrics = tables.vhea.numOfLongVerMetrics;
|
|
@@ -3740,13 +3741,13 @@ class vmtx extends SimpleTable {
|
|
|
3740
3741
|
});
|
|
3741
3742
|
}
|
|
3742
3743
|
}
|
|
3743
|
-
}
|
|
3744
|
-
|
|
3744
|
+
};
|
|
3745
|
+
var LongVertMetric = class {
|
|
3745
3746
|
constructor(h, b) {
|
|
3746
3747
|
this.advanceHeight = h;
|
|
3747
3748
|
this.topSideBearing = b;
|
|
3748
3749
|
}
|
|
3749
|
-
}
|
|
3750
|
+
};
|
|
3750
3751
|
var vmtx$1 = Object.freeze({ __proto__: null, vmtx });
|
|
3751
3752
|
export {
|
|
3752
3753
|
Font
|