@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
|
@@ -26,6 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// packages/global-styles-ui/src/font-library-modal/lib/lib-font.browser.js
|
|
29
31
|
var lib_font_browser_exports = {};
|
|
30
32
|
__export(lib_font_browser_exports, {
|
|
31
33
|
Font: () => Font
|
|
@@ -33,8 +35,8 @@ __export(lib_font_browser_exports, {
|
|
|
33
35
|
module.exports = __toCommonJS(lib_font_browser_exports);
|
|
34
36
|
var import_unbrotli = __toESM(require("./unbrotli"));
|
|
35
37
|
var import_inflate = __toESM(require("./inflate"));
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
var fetchFunction = globalThis.fetch;
|
|
39
|
+
var Event = class {
|
|
38
40
|
constructor(type, detail = {}, msg) {
|
|
39
41
|
this.type = type;
|
|
40
42
|
this.detail = detail;
|
|
@@ -56,8 +58,8 @@ class Event {
|
|
|
56
58
|
toString() {
|
|
57
59
|
return this.msg ? `[${this.type} event]: ${this.msg}` : `[${this.type} event]`;
|
|
58
60
|
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
+
};
|
|
62
|
+
var EventManager = class {
|
|
61
63
|
constructor() {
|
|
62
64
|
this.listeners = {};
|
|
63
65
|
}
|
|
@@ -84,12 +86,12 @@ class EventManager {
|
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
+
};
|
|
90
|
+
var startDate = (/* @__PURE__ */ new Date(`1904-01-01T00:00:00+0000`)).getTime();
|
|
89
91
|
function asText(data) {
|
|
90
92
|
return Array.from(data).map((v) => String.fromCharCode(v)).join(``);
|
|
91
93
|
}
|
|
92
|
-
|
|
94
|
+
var Parser = class {
|
|
93
95
|
constructor(dict, dataview, name2) {
|
|
94
96
|
this.name = (name2 || dict.tag || ``).trim();
|
|
95
97
|
this.length = dict.length;
|
|
@@ -210,8 +212,8 @@ class Parser {
|
|
|
210
212
|
while (n--) slice.push(this[fn]);
|
|
211
213
|
return slice;
|
|
212
214
|
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
+
};
|
|
216
|
+
var ParsedData = class {
|
|
215
217
|
constructor(parser) {
|
|
216
218
|
const pGetter = { enumerable: false, get: () => parser };
|
|
217
219
|
Object.defineProperty(this, `parser`, pGetter);
|
|
@@ -232,8 +234,8 @@ class ParsedData {
|
|
|
232
234
|
this.parser.verifyLength();
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
+
};
|
|
238
|
+
var SimpleTable = class extends ParsedData {
|
|
237
239
|
constructor(dict, dataview, name2) {
|
|
238
240
|
const { parser, start } = super(
|
|
239
241
|
new Parser(dict, dataview, name2)
|
|
@@ -243,7 +245,7 @@ class SimpleTable extends ParsedData {
|
|
|
243
245
|
const startGetter = { enumerable: false, get: () => start };
|
|
244
246
|
Object.defineProperty(this, `tableStart`, startGetter);
|
|
245
247
|
}
|
|
246
|
-
}
|
|
248
|
+
};
|
|
247
249
|
function lazy$1(object, property, getter) {
|
|
248
250
|
let val;
|
|
249
251
|
Object.defineProperty(object, property, {
|
|
@@ -255,7 +257,7 @@ function lazy$1(object, property, getter) {
|
|
|
255
257
|
enumerable: true
|
|
256
258
|
});
|
|
257
259
|
}
|
|
258
|
-
|
|
260
|
+
var SFNT = class extends SimpleTable {
|
|
259
261
|
constructor(font2, dataview, createTable2) {
|
|
260
262
|
const { p: p2 } = super({ offset: 0, length: 12 }, dataview, `sfnt`);
|
|
261
263
|
this.version = p2.uint32;
|
|
@@ -281,18 +283,18 @@ class SFNT extends SimpleTable {
|
|
|
281
283
|
lazy$1(this.tables, entry.tag.trim(), getter);
|
|
282
284
|
});
|
|
283
285
|
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
+
};
|
|
287
|
+
var TableRecord = class {
|
|
286
288
|
constructor(p2) {
|
|
287
289
|
this.tag = p2.tag;
|
|
288
290
|
this.checksum = p2.uint32;
|
|
289
291
|
this.offset = p2.uint32;
|
|
290
292
|
this.length = p2.uint32;
|
|
291
293
|
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
};
|
|
295
|
+
var gzipDecode = import_inflate.default.inflate || void 0;
|
|
296
|
+
var nativeGzipDecode = void 0;
|
|
297
|
+
var WOFF$1 = class extends SimpleTable {
|
|
296
298
|
constructor(font2, dataview, createTable2) {
|
|
297
299
|
const { p: p2 } = super({ offset: 0, length: 44 }, dataview, `woff`);
|
|
298
300
|
this.signature = p2.tag;
|
|
@@ -314,8 +316,8 @@ class WOFF$1 extends SimpleTable {
|
|
|
314
316
|
);
|
|
315
317
|
buildWoffLazyLookups(this, dataview, createTable2);
|
|
316
318
|
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
+
};
|
|
320
|
+
var WoffTableDirectoryEntry = class {
|
|
319
321
|
constructor(p2) {
|
|
320
322
|
this.tag = p2.tag;
|
|
321
323
|
this.offset = p2.uint32;
|
|
@@ -323,7 +325,7 @@ class WoffTableDirectoryEntry {
|
|
|
323
325
|
this.origLength = p2.uint32;
|
|
324
326
|
this.origChecksum = p2.uint32;
|
|
325
327
|
}
|
|
326
|
-
}
|
|
328
|
+
};
|
|
327
329
|
function buildWoffLazyLookups(woff, dataview, createTable2) {
|
|
328
330
|
woff.tables = {};
|
|
329
331
|
woff.directory.forEach((entry) => {
|
|
@@ -357,9 +359,9 @@ function buildWoffLazyLookups(woff, dataview, createTable2) {
|
|
|
357
359
|
});
|
|
358
360
|
});
|
|
359
361
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
362
|
+
var brotliDecode = import_unbrotli.default;
|
|
363
|
+
var nativeBrotliDecode = void 0;
|
|
364
|
+
var WOFF2$1 = class extends SimpleTable {
|
|
363
365
|
constructor(font2, dataview, createTable2) {
|
|
364
366
|
const { p: p2 } = super({ offset: 0, length: 48 }, dataview, `woff2`);
|
|
365
367
|
this.signature = p2.tag;
|
|
@@ -401,8 +403,8 @@ class WOFF2$1 extends SimpleTable {
|
|
|
401
403
|
}
|
|
402
404
|
buildWoff2LazyLookups(this, decoded, createTable2);
|
|
403
405
|
}
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
+
};
|
|
407
|
+
var Woff2TableDirectoryEntry = class {
|
|
406
408
|
constructor(p2) {
|
|
407
409
|
this.flags = p2.uint8;
|
|
408
410
|
const tagNumber = this.tagNumber = this.flags & 63;
|
|
@@ -421,7 +423,7 @@ class Woff2TableDirectoryEntry {
|
|
|
421
423
|
this.transformLength = p2.uint128;
|
|
422
424
|
}
|
|
423
425
|
}
|
|
424
|
-
}
|
|
426
|
+
};
|
|
425
427
|
function buildWoff2LazyLookups(woff2, decoded, createTable2) {
|
|
426
428
|
woff2.tables = {};
|
|
427
429
|
woff2.directory.forEach((entry) => {
|
|
@@ -508,8 +510,8 @@ function getWOFF2Tag(flag) {
|
|
|
508
510
|
`Sill`
|
|
509
511
|
][flag & 63];
|
|
510
512
|
}
|
|
511
|
-
|
|
512
|
-
|
|
513
|
+
var tableClasses = {};
|
|
514
|
+
var tableClassesLoaded = false;
|
|
513
515
|
Promise.all([
|
|
514
516
|
Promise.resolve().then(function() {
|
|
515
517
|
return cmap$1;
|
|
@@ -711,10 +713,10 @@ async function setupFontFace(name2, url, options = {}) {
|
|
|
711
713
|
globalThis.document.head.appendChild(style);
|
|
712
714
|
return style;
|
|
713
715
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
716
|
+
var TTF = [0, 1, 0, 0];
|
|
717
|
+
var OTF = [79, 84, 84, 79];
|
|
718
|
+
var WOFF = [119, 79, 70, 70];
|
|
719
|
+
var WOFF2 = [119, 79, 70, 50];
|
|
718
720
|
function match(ar1, ar2) {
|
|
719
721
|
if (ar1.length !== ar2.length) return;
|
|
720
722
|
for (let i = 0; i < ar1.length; i++) {
|
|
@@ -741,7 +743,7 @@ function checkFetchResponseStatus(response) {
|
|
|
741
743
|
}
|
|
742
744
|
return response;
|
|
743
745
|
}
|
|
744
|
-
|
|
746
|
+
var Font = class extends EventManager {
|
|
745
747
|
constructor(name2, options = {}) {
|
|
746
748
|
super();
|
|
747
749
|
this.name = name2;
|
|
@@ -855,16 +857,16 @@ class Font extends EventManager {
|
|
|
855
857
|
if (this.onload) this.onload(evt);
|
|
856
858
|
}
|
|
857
859
|
}
|
|
858
|
-
}
|
|
860
|
+
};
|
|
859
861
|
globalThis.Font = Font;
|
|
860
|
-
|
|
862
|
+
var Subtable = class extends ParsedData {
|
|
861
863
|
constructor(p2, plaformID, encodingID) {
|
|
862
864
|
super(p2);
|
|
863
865
|
this.plaformID = plaformID;
|
|
864
866
|
this.encodingID = encodingID;
|
|
865
867
|
}
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
+
};
|
|
869
|
+
var Format0 = class extends Subtable {
|
|
868
870
|
constructor(p2, platformID, encodingID) {
|
|
869
871
|
super(p2, platformID, encodingID);
|
|
870
872
|
this.format = 0;
|
|
@@ -888,8 +890,8 @@ class Format0 extends Subtable {
|
|
|
888
890
|
getSupportedCharCodes() {
|
|
889
891
|
return [{ start: 1, end: 256 }];
|
|
890
892
|
}
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
+
};
|
|
894
|
+
var Format2 = class extends Subtable {
|
|
893
895
|
constructor(p2, platformID, encodingID) {
|
|
894
896
|
super(p2, platformID, encodingID);
|
|
895
897
|
this.format = 2;
|
|
@@ -941,8 +943,8 @@ class Format2 extends Subtable {
|
|
|
941
943
|
end: h.lastCode
|
|
942
944
|
}));
|
|
943
945
|
}
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
+
};
|
|
947
|
+
var SubHeader = class {
|
|
946
948
|
constructor(p2) {
|
|
947
949
|
this.firstCode = p2.uint16;
|
|
948
950
|
this.entryCount = p2.uint16;
|
|
@@ -950,8 +952,8 @@ class SubHeader {
|
|
|
950
952
|
this.idDelta = p2.int16;
|
|
951
953
|
this.idRangeOffset = p2.uint16;
|
|
952
954
|
}
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
+
};
|
|
956
|
+
var Format4 = class extends Subtable {
|
|
955
957
|
constructor(p2, platformID, encodingID) {
|
|
956
958
|
super(p2, platformID, encodingID);
|
|
957
959
|
this.format = 4;
|
|
@@ -1049,8 +1051,8 @@ class Format4 extends Subtable {
|
|
|
1049
1051
|
end: v.endCode
|
|
1050
1052
|
}));
|
|
1051
1053
|
}
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
+
};
|
|
1055
|
+
var Format6 = class extends Subtable {
|
|
1054
1056
|
constructor(p2, platformID, encodingID) {
|
|
1055
1057
|
super(p2, platformID, encodingID);
|
|
1056
1058
|
this.format = 6;
|
|
@@ -1084,8 +1086,8 @@ class Format6 extends Subtable {
|
|
|
1084
1086
|
}
|
|
1085
1087
|
return [{ start: this.firstCode, end: this.lastCode }];
|
|
1086
1088
|
}
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
+
};
|
|
1090
|
+
var Format8 = class extends Subtable {
|
|
1089
1091
|
constructor(p2, platformID, encodingID) {
|
|
1090
1092
|
super(p2, platformID, encodingID);
|
|
1091
1093
|
this.format = 8;
|
|
@@ -1121,15 +1123,15 @@ class Format8 extends Subtable {
|
|
|
1121
1123
|
end: v.endcharCode
|
|
1122
1124
|
}));
|
|
1123
1125
|
}
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
+
};
|
|
1127
|
+
var SequentialMapGroup$1 = class {
|
|
1126
1128
|
constructor(p2) {
|
|
1127
1129
|
this.startcharCode = p2.uint32;
|
|
1128
1130
|
this.endcharCode = p2.uint32;
|
|
1129
1131
|
this.startGlyphID = p2.uint32;
|
|
1130
1132
|
}
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
+
};
|
|
1134
|
+
var Format10 = class extends Subtable {
|
|
1133
1135
|
constructor(p2, platformID, encodingID) {
|
|
1134
1136
|
super(p2, platformID, encodingID);
|
|
1135
1137
|
this.format = 10;
|
|
@@ -1168,8 +1170,8 @@ class Format10 extends Subtable {
|
|
|
1168
1170
|
}
|
|
1169
1171
|
return [{ start: this.startCharCode, end: this.endCharCode }];
|
|
1170
1172
|
}
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
+
};
|
|
1174
|
+
var Format12 = class extends Subtable {
|
|
1173
1175
|
constructor(p2, platformID, encodingID) {
|
|
1174
1176
|
super(p2, platformID, encodingID);
|
|
1175
1177
|
this.format = 12;
|
|
@@ -1210,15 +1212,15 @@ class Format12 extends Subtable {
|
|
|
1210
1212
|
end: v.endCharCode
|
|
1211
1213
|
}));
|
|
1212
1214
|
}
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
+
};
|
|
1216
|
+
var SequentialMapGroup = class {
|
|
1215
1217
|
constructor(p2) {
|
|
1216
1218
|
this.startCharCode = p2.uint32;
|
|
1217
1219
|
this.endCharCode = p2.uint32;
|
|
1218
1220
|
this.startGlyphID = p2.uint32;
|
|
1219
1221
|
}
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
+
};
|
|
1223
|
+
var Format13 = class extends Subtable {
|
|
1222
1224
|
constructor(p2, platformID, encodingID) {
|
|
1223
1225
|
super(p2, platformID, encodingID);
|
|
1224
1226
|
this.format = 13;
|
|
@@ -1248,15 +1250,15 @@ class Format13 extends Subtable {
|
|
|
1248
1250
|
end: v.endCharCode
|
|
1249
1251
|
}));
|
|
1250
1252
|
}
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
+
};
|
|
1254
|
+
var ConstantMapGroup = class {
|
|
1253
1255
|
constructor(p2) {
|
|
1254
1256
|
this.startCharCode = p2.uint32;
|
|
1255
1257
|
this.endCharCode = p2.uint32;
|
|
1256
1258
|
this.glyphID = p2.uint32;
|
|
1257
1259
|
}
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
+
};
|
|
1261
|
+
var Format14 = class extends Subtable {
|
|
1260
1262
|
constructor(p2, platformID, encodingID) {
|
|
1261
1263
|
super(p2, platformID, encodingID);
|
|
1262
1264
|
this.subTableStart = p2.currentPosition;
|
|
@@ -1294,14 +1296,14 @@ class Format14 extends Subtable {
|
|
|
1294
1296
|
getSupportedVariations() {
|
|
1295
1297
|
return this.varSelectors.map((v) => v.varSelector);
|
|
1296
1298
|
}
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
+
};
|
|
1300
|
+
var VariationSelector = class {
|
|
1299
1301
|
constructor(p2) {
|
|
1300
1302
|
this.varSelector = p2.uint24;
|
|
1301
1303
|
this.defaultUVSOffset = p2.Offset32;
|
|
1302
1304
|
this.nonDefaultUVSOffset = p2.Offset32;
|
|
1303
1305
|
}
|
|
1304
|
-
}
|
|
1306
|
+
};
|
|
1305
1307
|
function createSubTable(parser, platformID, encodingID) {
|
|
1306
1308
|
const format = parser.uint16;
|
|
1307
1309
|
if (format === 0) return new Format0(parser, platformID, encodingID);
|
|
@@ -1315,7 +1317,7 @@ function createSubTable(parser, platformID, encodingID) {
|
|
|
1315
1317
|
if (format === 14) return new Format14(parser, platformID, encodingID);
|
|
1316
1318
|
return {};
|
|
1317
1319
|
}
|
|
1318
|
-
|
|
1320
|
+
var cmap = class extends SimpleTable {
|
|
1319
1321
|
constructor(dict, dataview) {
|
|
1320
1322
|
const { p: p2 } = super(dict, dataview);
|
|
1321
1323
|
this.version = p2.uint16;
|
|
@@ -1369,8 +1371,8 @@ class cmap extends SimpleTable {
|
|
|
1369
1371
|
return t.supportsVariation && t.supportsVariation(variation) !== false;
|
|
1370
1372
|
});
|
|
1371
1373
|
}
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
+
};
|
|
1375
|
+
var EncodingRecord = class {
|
|
1374
1376
|
constructor(p2, tableStart) {
|
|
1375
1377
|
const platformID = this.platformID = p2.uint16;
|
|
1376
1378
|
const encodingID = this.encodingID = p2.uint16;
|
|
@@ -1380,9 +1382,9 @@ class EncodingRecord {
|
|
|
1380
1382
|
return createSubTable(p2, platformID, encodingID);
|
|
1381
1383
|
});
|
|
1382
1384
|
}
|
|
1383
|
-
}
|
|
1385
|
+
};
|
|
1384
1386
|
var cmap$1 = Object.freeze({ __proto__: null, cmap });
|
|
1385
|
-
|
|
1387
|
+
var head = class extends SimpleTable {
|
|
1386
1388
|
constructor(dict, dataview) {
|
|
1387
1389
|
const { p: p2 } = super(dict, dataview);
|
|
1388
1390
|
this.load({
|
|
@@ -1406,9 +1408,9 @@ class head extends SimpleTable {
|
|
|
1406
1408
|
glyphDataFormat: p2.uint16
|
|
1407
1409
|
});
|
|
1408
1410
|
}
|
|
1409
|
-
}
|
|
1411
|
+
};
|
|
1410
1412
|
var head$1 = Object.freeze({ __proto__: null, head });
|
|
1411
|
-
|
|
1413
|
+
var hhea = class extends SimpleTable {
|
|
1412
1414
|
constructor(dict, dataview) {
|
|
1413
1415
|
const { p: p2 } = super(dict, dataview);
|
|
1414
1416
|
this.majorVersion = p2.uint16;
|
|
@@ -1431,9 +1433,9 @@ class hhea extends SimpleTable {
|
|
|
1431
1433
|
this.numberOfHMetrics = p2.uint16;
|
|
1432
1434
|
p2.verifyLength();
|
|
1433
1435
|
}
|
|
1434
|
-
}
|
|
1436
|
+
};
|
|
1435
1437
|
var hhea$1 = Object.freeze({ __proto__: null, hhea });
|
|
1436
|
-
|
|
1438
|
+
var hmtx = class extends SimpleTable {
|
|
1437
1439
|
constructor(dict, dataview, tables) {
|
|
1438
1440
|
const { p: p2 } = super(dict, dataview);
|
|
1439
1441
|
const numberOfHMetrics = tables.hhea.numberOfHMetrics;
|
|
@@ -1455,15 +1457,15 @@ class hmtx extends SimpleTable {
|
|
|
1455
1457
|
});
|
|
1456
1458
|
}
|
|
1457
1459
|
}
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
+
};
|
|
1461
|
+
var LongHorMetric = class {
|
|
1460
1462
|
constructor(w, b) {
|
|
1461
1463
|
this.advanceWidth = w;
|
|
1462
1464
|
this.lsb = b;
|
|
1463
1465
|
}
|
|
1464
|
-
}
|
|
1466
|
+
};
|
|
1465
1467
|
var hmtx$1 = Object.freeze({ __proto__: null, hmtx });
|
|
1466
|
-
|
|
1468
|
+
var maxp = class extends SimpleTable {
|
|
1467
1469
|
constructor(dict, dataview) {
|
|
1468
1470
|
const { p: p2 } = super(dict, dataview);
|
|
1469
1471
|
this.version = p2.legacyFixed;
|
|
@@ -1485,9 +1487,9 @@ class maxp extends SimpleTable {
|
|
|
1485
1487
|
}
|
|
1486
1488
|
p2.verifyLength();
|
|
1487
1489
|
}
|
|
1488
|
-
}
|
|
1490
|
+
};
|
|
1489
1491
|
var maxp$1 = Object.freeze({ __proto__: null, maxp });
|
|
1490
|
-
|
|
1492
|
+
var name = class extends SimpleTable {
|
|
1491
1493
|
constructor(dict, dataview) {
|
|
1492
1494
|
const { p: p2 } = super(dict, dataview);
|
|
1493
1495
|
this.format = p2.uint16;
|
|
@@ -1510,14 +1512,14 @@ class name extends SimpleTable {
|
|
|
1510
1512
|
);
|
|
1511
1513
|
if (record) return record.string;
|
|
1512
1514
|
}
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
+
};
|
|
1516
|
+
var LangTagRecord = class {
|
|
1515
1517
|
constructor(length, offset) {
|
|
1516
1518
|
this.length = length;
|
|
1517
1519
|
this.offset = offset;
|
|
1518
1520
|
}
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
+
};
|
|
1522
|
+
var NameRecord = class {
|
|
1521
1523
|
constructor(p2, nameTable) {
|
|
1522
1524
|
this.platformID = p2.uint16;
|
|
1523
1525
|
this.encodingID = p2.uint16;
|
|
@@ -1530,7 +1532,7 @@ class NameRecord {
|
|
|
1530
1532
|
return decodeString(p2, this);
|
|
1531
1533
|
});
|
|
1532
1534
|
}
|
|
1533
|
-
}
|
|
1535
|
+
};
|
|
1534
1536
|
function decodeString(p2, record) {
|
|
1535
1537
|
const { platformID, length } = record;
|
|
1536
1538
|
if (length === 0) return ``;
|
|
@@ -1548,7 +1550,7 @@ function decodeString(p2, record) {
|
|
|
1548
1550
|
return str.join(``);
|
|
1549
1551
|
}
|
|
1550
1552
|
var name$1 = Object.freeze({ __proto__: null, name });
|
|
1551
|
-
|
|
1553
|
+
var OS2 = class extends SimpleTable {
|
|
1552
1554
|
constructor(dict, dataview) {
|
|
1553
1555
|
const { p: p2 } = super(dict, dataview);
|
|
1554
1556
|
this.version = p2.uint16;
|
|
@@ -1595,9 +1597,9 @@ class OS2 extends SimpleTable {
|
|
|
1595
1597
|
this.usUpperOpticalPointSize = p2.uint16;
|
|
1596
1598
|
if (this.version === 5) return p2.verifyLength();
|
|
1597
1599
|
}
|
|
1598
|
-
}
|
|
1600
|
+
};
|
|
1599
1601
|
var OS2$1 = Object.freeze({ __proto__: null, OS2 });
|
|
1600
|
-
|
|
1602
|
+
var post = class extends SimpleTable {
|
|
1601
1603
|
constructor(dict, dataview) {
|
|
1602
1604
|
const { p: p2 } = super(dict, dataview);
|
|
1603
1605
|
this.version = p2.legacyFixed;
|
|
@@ -1658,8 +1660,8 @@ class post extends SimpleTable {
|
|
|
1658
1660
|
);
|
|
1659
1661
|
return data.map((b) => String.fromCharCode(b)).join(``);
|
|
1660
1662
|
}
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
+
};
|
|
1664
|
+
var macStrings = [
|
|
1663
1665
|
`.notdef`,
|
|
1664
1666
|
`.null`,
|
|
1665
1667
|
`nonmarkingreturn`,
|
|
@@ -1920,7 +1922,7 @@ const macStrings = [
|
|
|
1920
1922
|
`dcroat`
|
|
1921
1923
|
];
|
|
1922
1924
|
var post$1 = Object.freeze({ __proto__: null, post });
|
|
1923
|
-
|
|
1925
|
+
var BASE = class extends SimpleTable {
|
|
1924
1926
|
constructor(dict, dataview) {
|
|
1925
1927
|
const { p: p2 } = super(dict, dataview);
|
|
1926
1928
|
this.majorVersion = p2.uint16;
|
|
@@ -1955,8 +1957,8 @@ class BASE extends SimpleTable {
|
|
|
1955
1957
|
);
|
|
1956
1958
|
}
|
|
1957
1959
|
}
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
+
};
|
|
1961
|
+
var AxisTable = class extends SimpleTable {
|
|
1960
1962
|
constructor(dict, dataview) {
|
|
1961
1963
|
const { p: p2 } = super(dict, dataview, `AxisTable`);
|
|
1962
1964
|
this.baseTagListOffset = p2.Offset16;
|
|
@@ -1978,8 +1980,8 @@ class AxisTable extends SimpleTable {
|
|
|
1978
1980
|
)
|
|
1979
1981
|
);
|
|
1980
1982
|
}
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
+
};
|
|
1984
|
+
var BaseTagListTable = class extends SimpleTable {
|
|
1983
1985
|
constructor(dict, dataview) {
|
|
1984
1986
|
const { p: p2 } = super(dict, dataview, `BaseTagListTable`);
|
|
1985
1987
|
this.baseTagCount = p2.uint16;
|
|
@@ -1987,8 +1989,8 @@ class BaseTagListTable extends SimpleTable {
|
|
|
1987
1989
|
(_) => p2.tag
|
|
1988
1990
|
);
|
|
1989
1991
|
}
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
+
};
|
|
1993
|
+
var BaseScriptListTable = class extends SimpleTable {
|
|
1992
1994
|
constructor(dict, dataview) {
|
|
1993
1995
|
const { p: p2 } = super(dict, dataview, `BaseScriptListTable`);
|
|
1994
1996
|
this.baseScriptCount = p2.uint16;
|
|
@@ -2000,8 +2002,8 @@ class BaseScriptListTable extends SimpleTable {
|
|
|
2000
2002
|
);
|
|
2001
2003
|
});
|
|
2002
2004
|
}
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
+
};
|
|
2006
|
+
var BaseScriptRecord = class {
|
|
2005
2007
|
constructor(baseScriptListTableStart, p2) {
|
|
2006
2008
|
this.baseScriptTag = p2.tag;
|
|
2007
2009
|
this.baseScriptOffset = p2.Offset16;
|
|
@@ -2010,8 +2012,8 @@ class BaseScriptRecord {
|
|
|
2010
2012
|
return new BaseScriptTable(p2);
|
|
2011
2013
|
});
|
|
2012
2014
|
}
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
+
};
|
|
2016
|
+
var BaseScriptTable = class {
|
|
2015
2017
|
constructor(p2) {
|
|
2016
2018
|
this.start = p2.currentPosition;
|
|
2017
2019
|
this.baseValuesOffset = p2.Offset16;
|
|
@@ -2029,8 +2031,8 @@ class BaseScriptTable {
|
|
|
2029
2031
|
return new MinMaxTable(p2);
|
|
2030
2032
|
});
|
|
2031
2033
|
}
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
|
+
};
|
|
2035
|
+
var BaseLangSysRecord = class {
|
|
2034
2036
|
constructor(baseScriptTableStart, p2) {
|
|
2035
2037
|
this.baseLangSysTag = p2.tag;
|
|
2036
2038
|
this.minMaxOffset = p2.Offset16;
|
|
@@ -2039,8 +2041,8 @@ class BaseLangSysRecord {
|
|
|
2039
2041
|
return new MinMaxTable(p2);
|
|
2040
2042
|
});
|
|
2041
2043
|
}
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
+
};
|
|
2045
|
+
var BaseValuesTable = class {
|
|
2044
2046
|
constructor(p2) {
|
|
2045
2047
|
this.parser = p2;
|
|
2046
2048
|
this.start = p2.currentPosition;
|
|
@@ -2054,8 +2056,8 @@ class BaseValuesTable {
|
|
|
2054
2056
|
this.parser.currentPosition = this.start + this.baseCoords[id];
|
|
2055
2057
|
return new BaseCoordTable(this.parser);
|
|
2056
2058
|
}
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
+
};
|
|
2060
|
+
var MinMaxTable = class {
|
|
2059
2061
|
constructor(p2) {
|
|
2060
2062
|
this.minCoord = p2.Offset16;
|
|
2061
2063
|
this.maxCoord = p2.Offset16;
|
|
@@ -2068,15 +2070,15 @@ class MinMaxTable {
|
|
|
2068
2070
|
);
|
|
2069
2071
|
});
|
|
2070
2072
|
}
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
+
};
|
|
2074
|
+
var FeatMinMaxRecord = class {
|
|
2073
2075
|
constructor(p2) {
|
|
2074
2076
|
this.featureTableTag = p2.tag;
|
|
2075
2077
|
this.minCoord = p2.Offset16;
|
|
2076
2078
|
this.maxCoord = p2.Offset16;
|
|
2077
2079
|
}
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
+
};
|
|
2081
|
+
var BaseCoordTable = class {
|
|
2080
2082
|
constructor(p2) {
|
|
2081
2083
|
this.baseCoordFormat = p2.uint16;
|
|
2082
2084
|
this.coordinate = p2.int16;
|
|
@@ -2088,9 +2090,9 @@ class BaseCoordTable {
|
|
|
2088
2090
|
this.deviceTable = p2.Offset16;
|
|
2089
2091
|
}
|
|
2090
2092
|
}
|
|
2091
|
-
}
|
|
2093
|
+
};
|
|
2092
2094
|
var BASE$1 = Object.freeze({ __proto__: null, BASE });
|
|
2093
|
-
|
|
2095
|
+
var ClassDefinition = class {
|
|
2094
2096
|
constructor(p2) {
|
|
2095
2097
|
this.classFormat = p2.uint16;
|
|
2096
2098
|
if (this.classFormat === 1) {
|
|
@@ -2107,15 +2109,15 @@ class ClassDefinition {
|
|
|
2107
2109
|
].map((_) => new ClassRangeRecord(p2));
|
|
2108
2110
|
}
|
|
2109
2111
|
}
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
+
};
|
|
2113
|
+
var ClassRangeRecord = class {
|
|
2112
2114
|
constructor(p2) {
|
|
2113
2115
|
this.startGlyphID = p2.uint16;
|
|
2114
2116
|
this.endGlyphID = p2.uint16;
|
|
2115
2117
|
this.class = p2.uint16;
|
|
2116
2118
|
}
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
+
};
|
|
2120
|
+
var CoverageTable = class extends ParsedData {
|
|
2119
2121
|
constructor(p2) {
|
|
2120
2122
|
super(p2);
|
|
2121
2123
|
this.coverageFormat = p2.uint16;
|
|
@@ -2132,15 +2134,15 @@ class CoverageTable extends ParsedData {
|
|
|
2132
2134
|
);
|
|
2133
2135
|
}
|
|
2134
2136
|
}
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
+
};
|
|
2138
|
+
var CoverageRangeRecord = class {
|
|
2137
2139
|
constructor(p2) {
|
|
2138
2140
|
this.startGlyphID = p2.uint16;
|
|
2139
2141
|
this.endGlyphID = p2.uint16;
|
|
2140
2142
|
this.startCoverageIndex = p2.uint16;
|
|
2141
2143
|
}
|
|
2142
|
-
}
|
|
2143
|
-
|
|
2144
|
+
};
|
|
2145
|
+
var ItemVariationStoreTable = class {
|
|
2144
2146
|
constructor(table, p2) {
|
|
2145
2147
|
this.table = table;
|
|
2146
2148
|
this.parser = p2;
|
|
@@ -2152,8 +2154,8 @@ class ItemVariationStoreTable {
|
|
|
2152
2154
|
...new Array(this.itemVariationDataCount)
|
|
2153
2155
|
].map((_) => p2.Offset32);
|
|
2154
2156
|
}
|
|
2155
|
-
}
|
|
2156
|
-
|
|
2157
|
+
};
|
|
2158
|
+
var GDEF = class extends SimpleTable {
|
|
2157
2159
|
constructor(dict, dataview) {
|
|
2158
2160
|
const { p: p2 } = super(dict, dataview);
|
|
2159
2161
|
this.majorVersion = p2.uint16;
|
|
@@ -2199,8 +2201,8 @@ class GDEF extends SimpleTable {
|
|
|
2199
2201
|
});
|
|
2200
2202
|
}
|
|
2201
2203
|
}
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
+
};
|
|
2205
|
+
var AttachList = class extends ParsedData {
|
|
2204
2206
|
constructor(p2) {
|
|
2205
2207
|
super(p2);
|
|
2206
2208
|
this.coverageOffset = p2.Offset16;
|
|
@@ -2213,16 +2215,16 @@ class AttachList extends ParsedData {
|
|
|
2213
2215
|
this.parser.currentPosition = this.start + this.attachPointOffsets[pointID];
|
|
2214
2216
|
return new AttachPoint(this.parser);
|
|
2215
2217
|
}
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
+
};
|
|
2219
|
+
var AttachPoint = class {
|
|
2218
2220
|
constructor(p2) {
|
|
2219
2221
|
this.pointCount = p2.uint16;
|
|
2220
2222
|
this.pointIndices = [...new Array(this.pointCount)].map(
|
|
2221
2223
|
(_) => p2.uint16
|
|
2222
2224
|
);
|
|
2223
2225
|
}
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
+
};
|
|
2227
|
+
var LigCaretList = class extends ParsedData {
|
|
2226
2228
|
constructor(p2) {
|
|
2227
2229
|
super(p2);
|
|
2228
2230
|
this.coverageOffset = p2.Offset16;
|
|
@@ -2239,8 +2241,8 @@ class LigCaretList extends ParsedData {
|
|
|
2239
2241
|
this.parser.currentPosition = this.start + this.ligGlyphOffsets[ligGlyphID];
|
|
2240
2242
|
return new LigGlyph(this.parser);
|
|
2241
2243
|
}
|
|
2242
|
-
}
|
|
2243
|
-
|
|
2244
|
+
};
|
|
2245
|
+
var LigGlyph = class extends ParsedData {
|
|
2244
2246
|
constructor(p2) {
|
|
2245
2247
|
super(p2);
|
|
2246
2248
|
this.caretCount = p2.uint16;
|
|
@@ -2252,8 +2254,8 @@ class LigGlyph extends ParsedData {
|
|
|
2252
2254
|
this.parser.currentPosition = this.start + this.caretValueOffsets[caretID];
|
|
2253
2255
|
return new CaretValue(this.parser);
|
|
2254
2256
|
}
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
|
+
};
|
|
2258
|
+
var CaretValue = class {
|
|
2257
2259
|
constructor(p2) {
|
|
2258
2260
|
this.caretValueFormat = p2.uint16;
|
|
2259
2261
|
if (this.caretValueFormat === 1) {
|
|
@@ -2267,8 +2269,8 @@ class CaretValue {
|
|
|
2267
2269
|
this.deviceOffset = p2.Offset16;
|
|
2268
2270
|
}
|
|
2269
2271
|
}
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
+
};
|
|
2273
|
+
var MarkGlyphSetsTable = class extends ParsedData {
|
|
2272
2274
|
constructor(p2) {
|
|
2273
2275
|
super(p2);
|
|
2274
2276
|
this.markGlyphSetTableFormat = p2.uint16;
|
|
@@ -2281,9 +2283,9 @@ class MarkGlyphSetsTable extends ParsedData {
|
|
|
2281
2283
|
this.parser.currentPosition = this.start + this.coverageOffsets[markGlyphSetID];
|
|
2282
2284
|
return new CoverageTable(this.parser);
|
|
2283
2285
|
}
|
|
2284
|
-
}
|
|
2286
|
+
};
|
|
2285
2287
|
var GDEF$1 = Object.freeze({ __proto__: null, GDEF });
|
|
2286
|
-
|
|
2288
|
+
var ScriptList = class extends ParsedData {
|
|
2287
2289
|
static EMPTY = { scriptCount: 0, scriptRecords: [] };
|
|
2288
2290
|
constructor(p2) {
|
|
2289
2291
|
super(p2);
|
|
@@ -2292,14 +2294,14 @@ class ScriptList extends ParsedData {
|
|
|
2292
2294
|
(_) => new ScriptRecord(p2)
|
|
2293
2295
|
);
|
|
2294
2296
|
}
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
+
};
|
|
2298
|
+
var ScriptRecord = class {
|
|
2297
2299
|
constructor(p2) {
|
|
2298
2300
|
this.scriptTag = p2.tag;
|
|
2299
2301
|
this.scriptOffset = p2.Offset16;
|
|
2300
2302
|
}
|
|
2301
|
-
}
|
|
2302
|
-
|
|
2303
|
+
};
|
|
2304
|
+
var ScriptTable = class extends ParsedData {
|
|
2303
2305
|
constructor(p2) {
|
|
2304
2306
|
super(p2);
|
|
2305
2307
|
this.defaultLangSys = p2.Offset16;
|
|
@@ -2308,14 +2310,14 @@ class ScriptTable extends ParsedData {
|
|
|
2308
2310
|
(_) => new LangSysRecord(p2)
|
|
2309
2311
|
);
|
|
2310
2312
|
}
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
+
};
|
|
2314
|
+
var LangSysRecord = class {
|
|
2313
2315
|
constructor(p2) {
|
|
2314
2316
|
this.langSysTag = p2.tag;
|
|
2315
2317
|
this.langSysOffset = p2.Offset16;
|
|
2316
2318
|
}
|
|
2317
|
-
}
|
|
2318
|
-
|
|
2319
|
+
};
|
|
2320
|
+
var LangSysTable = class {
|
|
2319
2321
|
constructor(p2) {
|
|
2320
2322
|
this.lookupOrder = p2.Offset16;
|
|
2321
2323
|
this.requiredFeatureIndex = p2.uint16;
|
|
@@ -2324,8 +2326,8 @@ class LangSysTable {
|
|
|
2324
2326
|
(_) => p2.uint16
|
|
2325
2327
|
);
|
|
2326
2328
|
}
|
|
2327
|
-
}
|
|
2328
|
-
|
|
2329
|
+
};
|
|
2330
|
+
var FeatureList = class extends ParsedData {
|
|
2329
2331
|
static EMPTY = { featureCount: 0, featureRecords: [] };
|
|
2330
2332
|
constructor(p2) {
|
|
2331
2333
|
super(p2);
|
|
@@ -2334,14 +2336,14 @@ class FeatureList extends ParsedData {
|
|
|
2334
2336
|
(_) => new FeatureRecord(p2)
|
|
2335
2337
|
);
|
|
2336
2338
|
}
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
+
};
|
|
2340
|
+
var FeatureRecord = class {
|
|
2339
2341
|
constructor(p2) {
|
|
2340
2342
|
this.featureTag = p2.tag;
|
|
2341
2343
|
this.featureOffset = p2.Offset16;
|
|
2342
2344
|
}
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
+
};
|
|
2346
|
+
var FeatureTable = class extends ParsedData {
|
|
2345
2347
|
constructor(p2) {
|
|
2346
2348
|
super(p2);
|
|
2347
2349
|
this.featureParams = p2.Offset16;
|
|
@@ -2360,8 +2362,8 @@ class FeatureTable extends ParsedData {
|
|
|
2360
2362
|
if (tag.startsWith(`ss`)) return new StylisticSet(p2);
|
|
2361
2363
|
}
|
|
2362
2364
|
}
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
|
+
};
|
|
2366
|
+
var CharacterVariant = class {
|
|
2365
2367
|
constructor(p2) {
|
|
2366
2368
|
this.format = p2.uint16;
|
|
2367
2369
|
this.featUiLabelNameId = p2.uint16;
|
|
@@ -2374,8 +2376,8 @@ class CharacterVariant {
|
|
|
2374
2376
|
(_) => p2.uint24
|
|
2375
2377
|
);
|
|
2376
2378
|
}
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
+
};
|
|
2380
|
+
var Size = class {
|
|
2379
2381
|
constructor(p2) {
|
|
2380
2382
|
this.designSize = p2.uint16;
|
|
2381
2383
|
this.subfamilyIdentifier = p2.uint16;
|
|
@@ -2383,19 +2385,19 @@ class Size {
|
|
|
2383
2385
|
this.smallEnd = p2.uint16;
|
|
2384
2386
|
this.largeEnd = p2.uint16;
|
|
2385
2387
|
}
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
+
};
|
|
2389
|
+
var StylisticSet = class {
|
|
2388
2390
|
constructor(p2) {
|
|
2389
2391
|
this.version = p2.uint16;
|
|
2390
2392
|
this.UINameID = p2.uint16;
|
|
2391
2393
|
}
|
|
2392
|
-
}
|
|
2394
|
+
};
|
|
2393
2395
|
function undoCoverageOffsetParsing(instance) {
|
|
2394
2396
|
instance.parser.currentPosition -= 2;
|
|
2395
2397
|
delete instance.coverageOffset;
|
|
2396
2398
|
delete instance.getCoverageTable;
|
|
2397
2399
|
}
|
|
2398
|
-
|
|
2400
|
+
var LookupType$1 = class extends ParsedData {
|
|
2399
2401
|
constructor(p2) {
|
|
2400
2402
|
super(p2);
|
|
2401
2403
|
this.substFormat = p2.uint16;
|
|
@@ -2406,20 +2408,20 @@ class LookupType$1 extends ParsedData {
|
|
|
2406
2408
|
p2.currentPosition = this.start + this.coverageOffset;
|
|
2407
2409
|
return new CoverageTable(p2);
|
|
2408
2410
|
}
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
+
};
|
|
2412
|
+
var SubstLookupRecord = class {
|
|
2411
2413
|
constructor(p2) {
|
|
2412
2414
|
this.glyphSequenceIndex = p2.uint16;
|
|
2413
2415
|
this.lookupListIndex = p2.uint16;
|
|
2414
2416
|
}
|
|
2415
|
-
}
|
|
2416
|
-
|
|
2417
|
+
};
|
|
2418
|
+
var LookupType1$1 = class extends LookupType$1 {
|
|
2417
2419
|
constructor(p2) {
|
|
2418
2420
|
super(p2);
|
|
2419
2421
|
this.deltaGlyphID = p2.int16;
|
|
2420
2422
|
}
|
|
2421
|
-
}
|
|
2422
|
-
|
|
2423
|
+
};
|
|
2424
|
+
var LookupType2$1 = class extends LookupType$1 {
|
|
2423
2425
|
constructor(p2) {
|
|
2424
2426
|
super(p2);
|
|
2425
2427
|
this.sequenceCount = p2.uint16;
|
|
@@ -2432,16 +2434,16 @@ class LookupType2$1 extends LookupType$1 {
|
|
|
2432
2434
|
p2.currentPosition = this.start + this.sequenceOffsets[index];
|
|
2433
2435
|
return new SequenceTable(p2);
|
|
2434
2436
|
}
|
|
2435
|
-
}
|
|
2436
|
-
|
|
2437
|
+
};
|
|
2438
|
+
var SequenceTable = class {
|
|
2437
2439
|
constructor(p2) {
|
|
2438
2440
|
this.glyphCount = p2.uint16;
|
|
2439
2441
|
this.substituteGlyphIDs = [...new Array(this.glyphCount)].map(
|
|
2440
2442
|
(_) => p2.uint16
|
|
2441
2443
|
);
|
|
2442
2444
|
}
|
|
2443
|
-
}
|
|
2444
|
-
|
|
2445
|
+
};
|
|
2446
|
+
var LookupType3$1 = class extends LookupType$1 {
|
|
2445
2447
|
constructor(p2) {
|
|
2446
2448
|
super(p2);
|
|
2447
2449
|
this.alternateSetCount = p2.uint16;
|
|
@@ -2454,16 +2456,16 @@ class LookupType3$1 extends LookupType$1 {
|
|
|
2454
2456
|
p2.currentPosition = this.start + this.alternateSetOffsets[index];
|
|
2455
2457
|
return new AlternateSetTable(p2);
|
|
2456
2458
|
}
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
+
};
|
|
2460
|
+
var AlternateSetTable = class {
|
|
2459
2461
|
constructor(p2) {
|
|
2460
2462
|
this.glyphCount = p2.uint16;
|
|
2461
2463
|
this.alternateGlyphIDs = [...new Array(this.glyphCount)].map(
|
|
2462
2464
|
(_) => p2.uint16
|
|
2463
2465
|
);
|
|
2464
2466
|
}
|
|
2465
|
-
}
|
|
2466
|
-
|
|
2467
|
+
};
|
|
2468
|
+
var LookupType4$1 = class extends LookupType$1 {
|
|
2467
2469
|
constructor(p2) {
|
|
2468
2470
|
super(p2);
|
|
2469
2471
|
this.ligatureSetCount = p2.uint16;
|
|
@@ -2476,8 +2478,8 @@ class LookupType4$1 extends LookupType$1 {
|
|
|
2476
2478
|
p2.currentPosition = this.start + this.ligatureSetOffsets[index];
|
|
2477
2479
|
return new LigatureSetTable(p2);
|
|
2478
2480
|
}
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
+
};
|
|
2482
|
+
var LigatureSetTable = class extends ParsedData {
|
|
2481
2483
|
constructor(p2) {
|
|
2482
2484
|
super(p2);
|
|
2483
2485
|
this.ligatureCount = p2.uint16;
|
|
@@ -2490,8 +2492,8 @@ class LigatureSetTable extends ParsedData {
|
|
|
2490
2492
|
p2.currentPosition = this.start + this.ligatureOffsets[index];
|
|
2491
2493
|
return new LigatureTable(p2);
|
|
2492
2494
|
}
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
|
+
};
|
|
2496
|
+
var LigatureTable = class {
|
|
2495
2497
|
constructor(p2) {
|
|
2496
2498
|
this.ligatureGlyph = p2.uint16;
|
|
2497
2499
|
this.componentCount = p2.uint16;
|
|
@@ -2499,8 +2501,8 @@ class LigatureTable {
|
|
|
2499
2501
|
...new Array(this.componentCount - 1)
|
|
2500
2502
|
].map((_) => p2.uint16);
|
|
2501
2503
|
}
|
|
2502
|
-
}
|
|
2503
|
-
|
|
2504
|
+
};
|
|
2505
|
+
var LookupType5$1 = class extends LookupType$1 {
|
|
2504
2506
|
constructor(p2) {
|
|
2505
2507
|
super(p2);
|
|
2506
2508
|
if (this.substFormat === 1) {
|
|
@@ -2557,8 +2559,8 @@ class LookupType5$1 extends LookupType$1 {
|
|
|
2557
2559
|
p2.currentPosition = this.start + this.coverageOffsets[index];
|
|
2558
2560
|
return new CoverageTable(p2);
|
|
2559
2561
|
}
|
|
2560
|
-
}
|
|
2561
|
-
|
|
2562
|
+
};
|
|
2563
|
+
var SubRuleSetTable = class extends ParsedData {
|
|
2562
2564
|
constructor(p2) {
|
|
2563
2565
|
super(p2);
|
|
2564
2566
|
this.subRuleCount = p2.uint16;
|
|
@@ -2571,8 +2573,8 @@ class SubRuleSetTable extends ParsedData {
|
|
|
2571
2573
|
p2.currentPosition = this.start + this.subRuleOffsets[index];
|
|
2572
2574
|
return new SubRuleTable(p2);
|
|
2573
2575
|
}
|
|
2574
|
-
}
|
|
2575
|
-
|
|
2576
|
+
};
|
|
2577
|
+
var SubRuleTable = class {
|
|
2576
2578
|
constructor(p2) {
|
|
2577
2579
|
this.glyphCount = p2.uint16;
|
|
2578
2580
|
this.substitutionCount = p2.uint16;
|
|
@@ -2583,8 +2585,8 @@ class SubRuleTable {
|
|
|
2583
2585
|
...new Array(this.substitutionCount)
|
|
2584
2586
|
].map((_) => new SubstLookupRecord(p2));
|
|
2585
2587
|
}
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
+
};
|
|
2589
|
+
var SubClassSetTable = class extends ParsedData {
|
|
2588
2590
|
constructor(p2) {
|
|
2589
2591
|
super(p2);
|
|
2590
2592
|
this.subClassRuleCount = p2.uint16;
|
|
@@ -2597,13 +2599,13 @@ class SubClassSetTable extends ParsedData {
|
|
|
2597
2599
|
p2.currentPosition = this.start + this.subClassRuleOffsets[index];
|
|
2598
2600
|
return new SubClassRuleTable(p2);
|
|
2599
2601
|
}
|
|
2600
|
-
}
|
|
2601
|
-
|
|
2602
|
+
};
|
|
2603
|
+
var SubClassRuleTable = class extends SubRuleTable {
|
|
2602
2604
|
constructor(p2) {
|
|
2603
2605
|
super(p2);
|
|
2604
2606
|
}
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
|
+
};
|
|
2608
|
+
var LookupType6$1 = class extends LookupType$1 {
|
|
2607
2609
|
constructor(p2) {
|
|
2608
2610
|
super(p2);
|
|
2609
2611
|
if (this.substFormat === 1) {
|
|
@@ -2668,8 +2670,8 @@ class LookupType6$1 extends LookupType$1 {
|
|
|
2668
2670
|
p2.currentPosition = this.start + offset;
|
|
2669
2671
|
return new CoverageTable(p2);
|
|
2670
2672
|
}
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
+
};
|
|
2674
|
+
var ChainSubRuleSetTable = class extends ParsedData {
|
|
2673
2675
|
constructor(p2) {
|
|
2674
2676
|
super(p2);
|
|
2675
2677
|
this.chainSubRuleCount = p2.uint16;
|
|
@@ -2682,8 +2684,8 @@ class ChainSubRuleSetTable extends ParsedData {
|
|
|
2682
2684
|
p2.currentPosition = this.start + this.chainSubRuleOffsets[index];
|
|
2683
2685
|
return new ChainSubRuleTable(p2);
|
|
2684
2686
|
}
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2687
|
+
};
|
|
2688
|
+
var ChainSubRuleTable = class {
|
|
2687
2689
|
constructor(p2) {
|
|
2688
2690
|
this.backtrackGlyphCount = p2.uint16;
|
|
2689
2691
|
this.backtrackSequence = [
|
|
@@ -2702,8 +2704,8 @@ class ChainSubRuleTable {
|
|
|
2702
2704
|
(_) => new SubstLookupRecord(p2)
|
|
2703
2705
|
);
|
|
2704
2706
|
}
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
+
};
|
|
2708
|
+
var ChainSubClassSetTable = class extends ParsedData {
|
|
2707
2709
|
constructor(p2) {
|
|
2708
2710
|
super(p2);
|
|
2709
2711
|
this.chainSubClassRuleCount = p2.uint16;
|
|
@@ -2716,8 +2718,8 @@ class ChainSubClassSetTable extends ParsedData {
|
|
|
2716
2718
|
p2.currentPosition = this.start + this.chainSubRuleOffsets[index];
|
|
2717
2719
|
return new ChainSubClassRuleTable(p2);
|
|
2718
2720
|
}
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2721
|
+
};
|
|
2722
|
+
var ChainSubClassRuleTable = class {
|
|
2721
2723
|
constructor(p2) {
|
|
2722
2724
|
this.backtrackGlyphCount = p2.uint16;
|
|
2723
2725
|
this.backtrackSequence = [
|
|
@@ -2736,23 +2738,23 @@ class ChainSubClassRuleTable {
|
|
|
2736
2738
|
...new Array(this.substitutionCount)
|
|
2737
2739
|
].map((_) => new SequenceLookupRecord(p2));
|
|
2738
2740
|
}
|
|
2739
|
-
}
|
|
2740
|
-
|
|
2741
|
+
};
|
|
2742
|
+
var SequenceLookupRecord = class extends ParsedData {
|
|
2741
2743
|
constructor(p2) {
|
|
2742
2744
|
super(p2);
|
|
2743
2745
|
this.sequenceIndex = p2.uint16;
|
|
2744
2746
|
this.lookupListIndex = p2.uint16;
|
|
2745
2747
|
}
|
|
2746
|
-
}
|
|
2747
|
-
|
|
2748
|
+
};
|
|
2749
|
+
var LookupType7$1 = class extends ParsedData {
|
|
2748
2750
|
constructor(p2) {
|
|
2749
2751
|
super(p2);
|
|
2750
2752
|
this.substFormat = p2.uint16;
|
|
2751
2753
|
this.extensionLookupType = p2.uint16;
|
|
2752
2754
|
this.extensionOffset = p2.Offset32;
|
|
2753
2755
|
}
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
+
};
|
|
2757
|
+
var LookupType8$1 = class extends LookupType$1 {
|
|
2756
2758
|
constructor(p2) {
|
|
2757
2759
|
super(p2);
|
|
2758
2760
|
this.backtrackGlyphCount = p2.uint16;
|
|
@@ -2768,7 +2770,7 @@ class LookupType8$1 extends LookupType$1 {
|
|
|
2768
2770
|
(_) => p2.uint16
|
|
2769
2771
|
);
|
|
2770
2772
|
}
|
|
2771
|
-
}
|
|
2773
|
+
};
|
|
2772
2774
|
var GSUBtables = {
|
|
2773
2775
|
buildSubtable: function(type, p2) {
|
|
2774
2776
|
const subtable = new [
|
|
@@ -2786,65 +2788,65 @@ var GSUBtables = {
|
|
|
2786
2788
|
return subtable;
|
|
2787
2789
|
}
|
|
2788
2790
|
};
|
|
2789
|
-
|
|
2791
|
+
var LookupType = class extends ParsedData {
|
|
2790
2792
|
constructor(p2) {
|
|
2791
2793
|
super(p2);
|
|
2792
2794
|
}
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
+
};
|
|
2796
|
+
var LookupType1 = class extends LookupType {
|
|
2795
2797
|
constructor(p2) {
|
|
2796
2798
|
super(p2);
|
|
2797
2799
|
console.log(`lookup type 1`);
|
|
2798
2800
|
}
|
|
2799
|
-
}
|
|
2800
|
-
|
|
2801
|
+
};
|
|
2802
|
+
var LookupType2 = class extends LookupType {
|
|
2801
2803
|
constructor(p2) {
|
|
2802
2804
|
super(p2);
|
|
2803
2805
|
console.log(`lookup type 2`);
|
|
2804
2806
|
}
|
|
2805
|
-
}
|
|
2806
|
-
|
|
2807
|
+
};
|
|
2808
|
+
var LookupType3 = class extends LookupType {
|
|
2807
2809
|
constructor(p2) {
|
|
2808
2810
|
super(p2);
|
|
2809
2811
|
console.log(`lookup type 3`);
|
|
2810
2812
|
}
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
+
};
|
|
2814
|
+
var LookupType4 = class extends LookupType {
|
|
2813
2815
|
constructor(p2) {
|
|
2814
2816
|
super(p2);
|
|
2815
2817
|
console.log(`lookup type 4`);
|
|
2816
2818
|
}
|
|
2817
|
-
}
|
|
2818
|
-
|
|
2819
|
+
};
|
|
2820
|
+
var LookupType5 = class extends LookupType {
|
|
2819
2821
|
constructor(p2) {
|
|
2820
2822
|
super(p2);
|
|
2821
2823
|
console.log(`lookup type 5`);
|
|
2822
2824
|
}
|
|
2823
|
-
}
|
|
2824
|
-
|
|
2825
|
+
};
|
|
2826
|
+
var LookupType6 = class extends LookupType {
|
|
2825
2827
|
constructor(p2) {
|
|
2826
2828
|
super(p2);
|
|
2827
2829
|
console.log(`lookup type 6`);
|
|
2828
2830
|
}
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
+
};
|
|
2832
|
+
var LookupType7 = class extends LookupType {
|
|
2831
2833
|
constructor(p2) {
|
|
2832
2834
|
super(p2);
|
|
2833
2835
|
console.log(`lookup type 7`);
|
|
2834
2836
|
}
|
|
2835
|
-
}
|
|
2836
|
-
|
|
2837
|
+
};
|
|
2838
|
+
var LookupType8 = class extends LookupType {
|
|
2837
2839
|
constructor(p2) {
|
|
2838
2840
|
super(p2);
|
|
2839
2841
|
console.log(`lookup type 8`);
|
|
2840
2842
|
}
|
|
2841
|
-
}
|
|
2842
|
-
|
|
2843
|
+
};
|
|
2844
|
+
var LookupType9 = class extends LookupType {
|
|
2843
2845
|
constructor(p2) {
|
|
2844
2846
|
super(p2);
|
|
2845
2847
|
console.log(`lookup type 9`);
|
|
2846
2848
|
}
|
|
2847
|
-
}
|
|
2849
|
+
};
|
|
2848
2850
|
var GPOStables = {
|
|
2849
2851
|
buildSubtable: function(type, p2) {
|
|
2850
2852
|
const subtable = new [
|
|
@@ -2863,7 +2865,7 @@ var GPOStables = {
|
|
|
2863
2865
|
return subtable;
|
|
2864
2866
|
}
|
|
2865
2867
|
};
|
|
2866
|
-
|
|
2868
|
+
var LookupList = class extends ParsedData {
|
|
2867
2869
|
static EMPTY = { lookupCount: 0, lookups: [] };
|
|
2868
2870
|
constructor(p2) {
|
|
2869
2871
|
super(p2);
|
|
@@ -2872,8 +2874,8 @@ class LookupList extends ParsedData {
|
|
|
2872
2874
|
(_) => p2.Offset16
|
|
2873
2875
|
);
|
|
2874
2876
|
}
|
|
2875
|
-
}
|
|
2876
|
-
|
|
2877
|
+
};
|
|
2878
|
+
var LookupTable = class extends ParsedData {
|
|
2877
2879
|
constructor(p2, type) {
|
|
2878
2880
|
super(p2);
|
|
2879
2881
|
this.ctType = type;
|
|
@@ -2908,8 +2910,8 @@ class LookupTable extends ParsedData {
|
|
|
2908
2910
|
this.parser.currentPosition = this.start + this.subtableOffsets[index];
|
|
2909
2911
|
return builder.buildSubtable(this.lookupType, this.parser);
|
|
2910
2912
|
}
|
|
2911
|
-
}
|
|
2912
|
-
|
|
2913
|
+
};
|
|
2914
|
+
var CommonLayoutTable = class extends SimpleTable {
|
|
2913
2915
|
constructor(dict, dataview, name2) {
|
|
2914
2916
|
const { p: p2, tableStart } = super(dict, dataview, name2);
|
|
2915
2917
|
this.majorVersion = p2.uint16;
|
|
@@ -3024,26 +3026,26 @@ class CommonLayoutTable extends SimpleTable {
|
|
|
3024
3026
|
this.parser.currentPosition = this.lookupList.start + lookupOffset;
|
|
3025
3027
|
return new LookupTable(this.parser, type);
|
|
3026
3028
|
}
|
|
3027
|
-
}
|
|
3028
|
-
|
|
3029
|
+
};
|
|
3030
|
+
var GSUB = class extends CommonLayoutTable {
|
|
3029
3031
|
constructor(dict, dataview) {
|
|
3030
3032
|
super(dict, dataview, `GSUB`);
|
|
3031
3033
|
}
|
|
3032
3034
|
getLookup(lookupIndex) {
|
|
3033
3035
|
return super.getLookup(lookupIndex, `GSUB`);
|
|
3034
3036
|
}
|
|
3035
|
-
}
|
|
3037
|
+
};
|
|
3036
3038
|
var GSUB$1 = Object.freeze({ __proto__: null, GSUB });
|
|
3037
|
-
|
|
3039
|
+
var GPOS = class extends CommonLayoutTable {
|
|
3038
3040
|
constructor(dict, dataview) {
|
|
3039
3041
|
super(dict, dataview, `GPOS`);
|
|
3040
3042
|
}
|
|
3041
3043
|
getLookup(lookupIndex) {
|
|
3042
3044
|
return super.getLookup(lookupIndex, `GPOS`);
|
|
3043
3045
|
}
|
|
3044
|
-
}
|
|
3046
|
+
};
|
|
3045
3047
|
var GPOS$1 = Object.freeze({ __proto__: null, GPOS });
|
|
3046
|
-
|
|
3048
|
+
var SVG = class extends SimpleTable {
|
|
3047
3049
|
constructor(dict, dataview) {
|
|
3048
3050
|
const { p: p2 } = super(dict, dataview);
|
|
3049
3051
|
this.version = p2.uint16;
|
|
@@ -3051,8 +3053,8 @@ class SVG extends SimpleTable {
|
|
|
3051
3053
|
p2.currentPosition = this.tableStart + this.offsetToSVGDocumentList;
|
|
3052
3054
|
this.documentList = new SVGDocumentList(p2);
|
|
3053
3055
|
}
|
|
3054
|
-
}
|
|
3055
|
-
|
|
3056
|
+
};
|
|
3057
|
+
var SVGDocumentList = class extends ParsedData {
|
|
3056
3058
|
constructor(p2) {
|
|
3057
3059
|
super(p2);
|
|
3058
3060
|
this.numEntries = p2.uint16;
|
|
@@ -3074,17 +3076,17 @@ class SVGDocumentList extends ParsedData {
|
|
|
3074
3076
|
if (id === -1) return "";
|
|
3075
3077
|
return this.getDocument(id);
|
|
3076
3078
|
}
|
|
3077
|
-
}
|
|
3078
|
-
|
|
3079
|
+
};
|
|
3080
|
+
var SVGDocumentRecord = class {
|
|
3079
3081
|
constructor(p2) {
|
|
3080
3082
|
this.startGlyphID = p2.uint16;
|
|
3081
3083
|
this.endGlyphID = p2.uint16;
|
|
3082
3084
|
this.svgDocOffset = p2.Offset32;
|
|
3083
3085
|
this.svgDocLength = p2.uint32;
|
|
3084
3086
|
}
|
|
3085
|
-
}
|
|
3087
|
+
};
|
|
3086
3088
|
var SVG$1 = Object.freeze({ __proto__: null, SVG });
|
|
3087
|
-
|
|
3089
|
+
var fvar = class extends SimpleTable {
|
|
3088
3090
|
constructor(dict, dataview) {
|
|
3089
3091
|
const { p: p2 } = super(dict, dataview);
|
|
3090
3092
|
this.majorVersion = p2.uint16;
|
|
@@ -3120,8 +3122,8 @@ class fvar extends SimpleTable {
|
|
|
3120
3122
|
getAxis(name2) {
|
|
3121
3123
|
return this.axes.find((a) => a.tag === name2);
|
|
3122
3124
|
}
|
|
3123
|
-
}
|
|
3124
|
-
|
|
3125
|
+
};
|
|
3126
|
+
var VariationAxisRecord = class {
|
|
3125
3127
|
constructor(p2) {
|
|
3126
3128
|
this.tag = p2.tag;
|
|
3127
3129
|
this.minValue = p2.fixed;
|
|
@@ -3130,8 +3132,8 @@ class VariationAxisRecord {
|
|
|
3130
3132
|
this.flags = p2.flags(16);
|
|
3131
3133
|
this.axisNameID = p2.uint16;
|
|
3132
3134
|
}
|
|
3133
|
-
}
|
|
3134
|
-
|
|
3135
|
+
};
|
|
3136
|
+
var InstanceRecord = class {
|
|
3135
3137
|
constructor(p2, axisCount, size) {
|
|
3136
3138
|
let start = p2.currentPosition;
|
|
3137
3139
|
this.subfamilyNameID = p2.uint16;
|
|
@@ -3143,9 +3145,9 @@ class InstanceRecord {
|
|
|
3143
3145
|
this.postScriptNameID = p2.uint16;
|
|
3144
3146
|
}
|
|
3145
3147
|
}
|
|
3146
|
-
}
|
|
3148
|
+
};
|
|
3147
3149
|
var fvar$1 = Object.freeze({ __proto__: null, fvar });
|
|
3148
|
-
|
|
3150
|
+
var cvt = class extends SimpleTable {
|
|
3149
3151
|
constructor(dict, dataview) {
|
|
3150
3152
|
const { p: p2 } = super(dict, dataview);
|
|
3151
3153
|
const n = dict.length / 2;
|
|
@@ -3155,9 +3157,9 @@ class cvt extends SimpleTable {
|
|
|
3155
3157
|
() => [...new Array(n)].map((_) => p2.fword)
|
|
3156
3158
|
);
|
|
3157
3159
|
}
|
|
3158
|
-
}
|
|
3160
|
+
};
|
|
3159
3161
|
var cvt$1 = Object.freeze({ __proto__: null, cvt });
|
|
3160
|
-
|
|
3162
|
+
var fpgm = class extends SimpleTable {
|
|
3161
3163
|
constructor(dict, dataview) {
|
|
3162
3164
|
const { p: p2 } = super(dict, dataview);
|
|
3163
3165
|
lazy$1(
|
|
@@ -3166,9 +3168,9 @@ class fpgm extends SimpleTable {
|
|
|
3166
3168
|
() => [...new Array(dict.length)].map((_) => p2.uint8)
|
|
3167
3169
|
);
|
|
3168
3170
|
}
|
|
3169
|
-
}
|
|
3171
|
+
};
|
|
3170
3172
|
var fpgm$1 = Object.freeze({ __proto__: null, fpgm });
|
|
3171
|
-
|
|
3173
|
+
var gasp = class extends SimpleTable {
|
|
3172
3174
|
constructor(dict, dataview) {
|
|
3173
3175
|
const { p: p2 } = super(dict, dataview);
|
|
3174
3176
|
this.version = p2.uint16;
|
|
@@ -3178,15 +3180,15 @@ class gasp extends SimpleTable {
|
|
|
3178
3180
|
);
|
|
3179
3181
|
lazy$1(this, `gaspRanges`, getter);
|
|
3180
3182
|
}
|
|
3181
|
-
}
|
|
3182
|
-
|
|
3183
|
+
};
|
|
3184
|
+
var GASPRange = class {
|
|
3183
3185
|
constructor(p2) {
|
|
3184
3186
|
this.rangeMaxPPEM = p2.uint16;
|
|
3185
3187
|
this.rangeGaspBehavior = p2.uint16;
|
|
3186
3188
|
}
|
|
3187
|
-
}
|
|
3189
|
+
};
|
|
3188
3190
|
var gasp$1 = Object.freeze({ __proto__: null, gasp });
|
|
3189
|
-
|
|
3191
|
+
var glyf = class extends SimpleTable {
|
|
3190
3192
|
constructor(dict, dataview) {
|
|
3191
3193
|
super(dict, dataview);
|
|
3192
3194
|
}
|
|
@@ -3194,9 +3196,9 @@ class glyf extends SimpleTable {
|
|
|
3194
3196
|
this.parser.currentPosition = this.tableStart + offset;
|
|
3195
3197
|
return this.parser.readBytes(length);
|
|
3196
3198
|
}
|
|
3197
|
-
}
|
|
3199
|
+
};
|
|
3198
3200
|
var glyf$1 = Object.freeze({ __proto__: null, glyf });
|
|
3199
|
-
|
|
3201
|
+
var loca = class extends SimpleTable {
|
|
3200
3202
|
constructor(dict, dataview, tables) {
|
|
3201
3203
|
const { p: p2 } = super(dict, dataview);
|
|
3202
3204
|
const n = tables.maxp.numGlyphs + 1;
|
|
@@ -3220,9 +3222,9 @@ class loca extends SimpleTable {
|
|
|
3220
3222
|
let nextOffset = this.offsets[glyphID + 1] * this.x2 ? 2 : 1;
|
|
3221
3223
|
return { offset, length: nextOffset - offset };
|
|
3222
3224
|
}
|
|
3223
|
-
}
|
|
3225
|
+
};
|
|
3224
3226
|
var loca$1 = Object.freeze({ __proto__: null, loca });
|
|
3225
|
-
|
|
3227
|
+
var prep = class extends SimpleTable {
|
|
3226
3228
|
constructor(dict, dataview) {
|
|
3227
3229
|
const { p: p2 } = super(dict, dataview);
|
|
3228
3230
|
lazy$1(
|
|
@@ -3231,23 +3233,23 @@ class prep extends SimpleTable {
|
|
|
3231
3233
|
() => [...new Array(dict.length)].map((_) => p2.uint8)
|
|
3232
3234
|
);
|
|
3233
3235
|
}
|
|
3234
|
-
}
|
|
3236
|
+
};
|
|
3235
3237
|
var prep$1 = Object.freeze({ __proto__: null, prep });
|
|
3236
|
-
|
|
3238
|
+
var CFF = class extends SimpleTable {
|
|
3237
3239
|
constructor(dict, dataview) {
|
|
3238
3240
|
const { p: p2 } = super(dict, dataview);
|
|
3239
3241
|
lazy$1(this, `data`, () => p2.readBytes());
|
|
3240
3242
|
}
|
|
3241
|
-
}
|
|
3243
|
+
};
|
|
3242
3244
|
var CFF$1 = Object.freeze({ __proto__: null, CFF });
|
|
3243
|
-
|
|
3245
|
+
var CFF2 = class extends SimpleTable {
|
|
3244
3246
|
constructor(dict, dataview) {
|
|
3245
3247
|
const { p: p2 } = super(dict, dataview);
|
|
3246
3248
|
lazy$1(this, `data`, () => p2.readBytes());
|
|
3247
3249
|
}
|
|
3248
|
-
}
|
|
3250
|
+
};
|
|
3249
3251
|
var CFF2$1 = Object.freeze({ __proto__: null, CFF2 });
|
|
3250
|
-
|
|
3252
|
+
var VORG = class extends SimpleTable {
|
|
3251
3253
|
constructor(dict, dataview) {
|
|
3252
3254
|
const { p: p2 } = super(dict, dataview);
|
|
3253
3255
|
this.majorVersion = p2.uint16;
|
|
@@ -3262,15 +3264,15 @@ class VORG extends SimpleTable {
|
|
|
3262
3264
|
)
|
|
3263
3265
|
);
|
|
3264
3266
|
}
|
|
3265
|
-
}
|
|
3266
|
-
|
|
3267
|
+
};
|
|
3268
|
+
var VertOriginYMetric = class {
|
|
3267
3269
|
constructor(p2) {
|
|
3268
3270
|
this.glyphIndex = p2.uint16;
|
|
3269
3271
|
this.vertOriginY = p2.int16;
|
|
3270
3272
|
}
|
|
3271
|
-
}
|
|
3273
|
+
};
|
|
3272
3274
|
var VORG$1 = Object.freeze({ __proto__: null, VORG });
|
|
3273
|
-
|
|
3275
|
+
var BitmapSize = class {
|
|
3274
3276
|
constructor(p2) {
|
|
3275
3277
|
this.indexSubTableArrayOffset = p2.Offset32;
|
|
3276
3278
|
this.indexTablesSize = p2.uint32;
|
|
@@ -3285,8 +3287,8 @@ class BitmapSize {
|
|
|
3285
3287
|
this.bitDepth = p2.uint8;
|
|
3286
3288
|
this.flags = p2.int8;
|
|
3287
3289
|
}
|
|
3288
|
-
}
|
|
3289
|
-
|
|
3290
|
+
};
|
|
3291
|
+
var BitmapScale = class {
|
|
3290
3292
|
constructor(p2) {
|
|
3291
3293
|
this.hori = new SbitLineMetrics(p2);
|
|
3292
3294
|
this.vert = new SbitLineMetrics(p2);
|
|
@@ -3295,8 +3297,8 @@ class BitmapScale {
|
|
|
3295
3297
|
this.substitutePpemX = p2.uint8;
|
|
3296
3298
|
this.substitutePpemY = p2.uint8;
|
|
3297
3299
|
}
|
|
3298
|
-
}
|
|
3299
|
-
|
|
3300
|
+
};
|
|
3301
|
+
var SbitLineMetrics = class {
|
|
3300
3302
|
constructor(p2) {
|
|
3301
3303
|
this.ascender = p2.int8;
|
|
3302
3304
|
this.descender = p2.int8;
|
|
@@ -3311,8 +3313,8 @@ class SbitLineMetrics {
|
|
|
3311
3313
|
this.pad1 = p2.int8;
|
|
3312
3314
|
this.pad2 = p2.int8;
|
|
3313
3315
|
}
|
|
3314
|
-
}
|
|
3315
|
-
|
|
3316
|
+
};
|
|
3317
|
+
var EBLC = class extends SimpleTable {
|
|
3316
3318
|
constructor(dict, dataview, name2) {
|
|
3317
3319
|
const { p: p2 } = super(dict, dataview, name2);
|
|
3318
3320
|
this.majorVersion = p2.uint16;
|
|
@@ -3326,17 +3328,17 @@ class EBLC extends SimpleTable {
|
|
|
3326
3328
|
)
|
|
3327
3329
|
);
|
|
3328
3330
|
}
|
|
3329
|
-
}
|
|
3331
|
+
};
|
|
3330
3332
|
var EBLC$1 = Object.freeze({ __proto__: null, EBLC });
|
|
3331
|
-
|
|
3333
|
+
var EBDT = class extends SimpleTable {
|
|
3332
3334
|
constructor(dict, dataview, name2) {
|
|
3333
3335
|
const { p: p2 } = super(dict, dataview, name2);
|
|
3334
3336
|
this.majorVersion = p2.uint16;
|
|
3335
3337
|
this.minorVersion = p2.uint16;
|
|
3336
3338
|
}
|
|
3337
|
-
}
|
|
3339
|
+
};
|
|
3338
3340
|
var EBDT$1 = Object.freeze({ __proto__: null, EBDT });
|
|
3339
|
-
|
|
3341
|
+
var EBSC = class extends SimpleTable {
|
|
3340
3342
|
constructor(dict, dataview) {
|
|
3341
3343
|
const { p: p2 } = super(dict, dataview);
|
|
3342
3344
|
this.majorVersion = p2.uint16;
|
|
@@ -3350,21 +3352,21 @@ class EBSC extends SimpleTable {
|
|
|
3350
3352
|
)
|
|
3351
3353
|
);
|
|
3352
3354
|
}
|
|
3353
|
-
}
|
|
3355
|
+
};
|
|
3354
3356
|
var EBSC$1 = Object.freeze({ __proto__: null, EBSC });
|
|
3355
|
-
|
|
3357
|
+
var CBLC = class extends EBLC {
|
|
3356
3358
|
constructor(dict, dataview) {
|
|
3357
3359
|
super(dict, dataview, `CBLC`);
|
|
3358
3360
|
}
|
|
3359
|
-
}
|
|
3361
|
+
};
|
|
3360
3362
|
var CBLC$1 = Object.freeze({ __proto__: null, CBLC });
|
|
3361
|
-
|
|
3363
|
+
var CBDT = class extends EBDT {
|
|
3362
3364
|
constructor(dict, dataview) {
|
|
3363
3365
|
super(dict, dataview, `CBDT`);
|
|
3364
3366
|
}
|
|
3365
|
-
}
|
|
3367
|
+
};
|
|
3366
3368
|
var CBDT$1 = Object.freeze({ __proto__: null, CBDT });
|
|
3367
|
-
|
|
3369
|
+
var sbix = class extends SimpleTable {
|
|
3368
3370
|
constructor(dict, dataview) {
|
|
3369
3371
|
const { p: p2 } = super(dict, dataview);
|
|
3370
3372
|
this.version = p2.uint16;
|
|
@@ -3376,9 +3378,9 @@ class sbix extends SimpleTable {
|
|
|
3376
3378
|
() => [...new Array(this.numStrikes)].map((_) => p2.Offset32)
|
|
3377
3379
|
);
|
|
3378
3380
|
}
|
|
3379
|
-
}
|
|
3381
|
+
};
|
|
3380
3382
|
var sbix$1 = Object.freeze({ __proto__: null, sbix });
|
|
3381
|
-
|
|
3383
|
+
var COLR = class extends SimpleTable {
|
|
3382
3384
|
constructor(dict, dataview) {
|
|
3383
3385
|
const { p: p2 } = super(dict, dataview);
|
|
3384
3386
|
this.version = p2.uint16;
|
|
@@ -3420,22 +3422,22 @@ class COLR extends SimpleTable {
|
|
|
3420
3422
|
(_) => new LayerRecord(p)
|
|
3421
3423
|
);
|
|
3422
3424
|
}
|
|
3423
|
-
}
|
|
3424
|
-
|
|
3425
|
+
};
|
|
3426
|
+
var BaseGlyphRecord = class {
|
|
3425
3427
|
constructor(p2) {
|
|
3426
3428
|
this.gID = p2.uint16;
|
|
3427
3429
|
this.firstLayerIndex = p2.uint16;
|
|
3428
3430
|
this.numLayers = p2.uint16;
|
|
3429
3431
|
}
|
|
3430
|
-
}
|
|
3431
|
-
|
|
3432
|
+
};
|
|
3433
|
+
var LayerRecord = class {
|
|
3432
3434
|
constructor(p2) {
|
|
3433
3435
|
this.gID = p2.uint16;
|
|
3434
3436
|
this.paletteIndex = p2.uint16;
|
|
3435
3437
|
}
|
|
3436
|
-
}
|
|
3438
|
+
};
|
|
3437
3439
|
var COLR$1 = Object.freeze({ __proto__: null, COLR });
|
|
3438
|
-
|
|
3440
|
+
var CPAL = class extends SimpleTable {
|
|
3439
3441
|
constructor(dict, dataview) {
|
|
3440
3442
|
const { p: p2 } = super(dict, dataview);
|
|
3441
3443
|
this.version = p2.uint16;
|
|
@@ -3470,38 +3472,38 @@ class CPAL extends SimpleTable {
|
|
|
3470
3472
|
});
|
|
3471
3473
|
}
|
|
3472
3474
|
}
|
|
3473
|
-
}
|
|
3474
|
-
|
|
3475
|
+
};
|
|
3476
|
+
var ColorRecord = class {
|
|
3475
3477
|
constructor(p2) {
|
|
3476
3478
|
this.blue = p2.uint8;
|
|
3477
3479
|
this.green = p2.uint8;
|
|
3478
3480
|
this.red = p2.uint8;
|
|
3479
3481
|
this.alpha = p2.uint8;
|
|
3480
3482
|
}
|
|
3481
|
-
}
|
|
3482
|
-
|
|
3483
|
+
};
|
|
3484
|
+
var PaletteTypeArray = class {
|
|
3483
3485
|
constructor(p2, numPalettes) {
|
|
3484
3486
|
this.paletteTypes = [...new Array(numPalettes)].map(
|
|
3485
3487
|
(_) => p2.uint32
|
|
3486
3488
|
);
|
|
3487
3489
|
}
|
|
3488
|
-
}
|
|
3489
|
-
|
|
3490
|
+
};
|
|
3491
|
+
var PaletteLabelsArray = class {
|
|
3490
3492
|
constructor(p2, numPalettes) {
|
|
3491
3493
|
this.paletteLabels = [...new Array(numPalettes)].map(
|
|
3492
3494
|
(_) => p2.uint16
|
|
3493
3495
|
);
|
|
3494
3496
|
}
|
|
3495
|
-
}
|
|
3496
|
-
|
|
3497
|
+
};
|
|
3498
|
+
var PaletteEntryLabelArray = class {
|
|
3497
3499
|
constructor(p2, numPalettes) {
|
|
3498
3500
|
this.paletteEntryLabels = [...new Array(numPalettes)].map(
|
|
3499
3501
|
(_) => p2.uint16
|
|
3500
3502
|
);
|
|
3501
3503
|
}
|
|
3502
|
-
}
|
|
3504
|
+
};
|
|
3503
3505
|
var CPAL$1 = Object.freeze({ __proto__: null, CPAL });
|
|
3504
|
-
|
|
3506
|
+
var DSIG = class extends SimpleTable {
|
|
3505
3507
|
constructor(dict, dataview) {
|
|
3506
3508
|
const { p: p2 } = super(dict, dataview);
|
|
3507
3509
|
this.version = p2.uint32;
|
|
@@ -3516,24 +3518,24 @@ class DSIG extends SimpleTable {
|
|
|
3516
3518
|
this.parser.currentPosition = this.tableStart + record.offset;
|
|
3517
3519
|
return new SignatureBlockFormat1(this.parser);
|
|
3518
3520
|
}
|
|
3519
|
-
}
|
|
3520
|
-
|
|
3521
|
+
};
|
|
3522
|
+
var SignatureRecord = class {
|
|
3521
3523
|
constructor(p2) {
|
|
3522
3524
|
this.format = p2.uint32;
|
|
3523
3525
|
this.length = p2.uint32;
|
|
3524
3526
|
this.offset = p2.Offset32;
|
|
3525
3527
|
}
|
|
3526
|
-
}
|
|
3527
|
-
|
|
3528
|
+
};
|
|
3529
|
+
var SignatureBlockFormat1 = class {
|
|
3528
3530
|
constructor(p2) {
|
|
3529
3531
|
p2.uint16;
|
|
3530
3532
|
p2.uint16;
|
|
3531
3533
|
this.signatureLength = p2.uint32;
|
|
3532
3534
|
this.signature = p2.readBytes(this.signatureLength);
|
|
3533
3535
|
}
|
|
3534
|
-
}
|
|
3536
|
+
};
|
|
3535
3537
|
var DSIG$1 = Object.freeze({ __proto__: null, DSIG });
|
|
3536
|
-
|
|
3538
|
+
var hdmx = class extends SimpleTable {
|
|
3537
3539
|
constructor(dict, dataview, tables) {
|
|
3538
3540
|
const { p: p2 } = super(dict, dataview);
|
|
3539
3541
|
const numGlyphs = tables.hmtx.numGlyphs;
|
|
@@ -3544,16 +3546,16 @@ class hdmx extends SimpleTable {
|
|
|
3544
3546
|
(_) => new DeviceRecord(p2, numGlyphs)
|
|
3545
3547
|
);
|
|
3546
3548
|
}
|
|
3547
|
-
}
|
|
3548
|
-
|
|
3549
|
+
};
|
|
3550
|
+
var DeviceRecord = class {
|
|
3549
3551
|
constructor(p2, numGlyphs) {
|
|
3550
3552
|
this.pixelSize = p2.uint8;
|
|
3551
3553
|
this.maxWidth = p2.uint8;
|
|
3552
3554
|
this.widths = p2.readBytes(numGlyphs);
|
|
3553
3555
|
}
|
|
3554
|
-
}
|
|
3556
|
+
};
|
|
3555
3557
|
var hdmx$1 = Object.freeze({ __proto__: null, hdmx });
|
|
3556
|
-
|
|
3558
|
+
var kern = class extends SimpleTable {
|
|
3557
3559
|
constructor(dict, dataview) {
|
|
3558
3560
|
const { p: p2 } = super(dict, dataview);
|
|
3559
3561
|
this.version = p2.uint16;
|
|
@@ -3570,8 +3572,8 @@ class kern extends SimpleTable {
|
|
|
3570
3572
|
return tables;
|
|
3571
3573
|
});
|
|
3572
3574
|
}
|
|
3573
|
-
}
|
|
3574
|
-
|
|
3575
|
+
};
|
|
3576
|
+
var KernSubTable = class {
|
|
3575
3577
|
constructor(p2) {
|
|
3576
3578
|
this.version = p2.uint16;
|
|
3577
3579
|
this.length = p2.uint16;
|
|
@@ -3606,25 +3608,25 @@ class KernSubTable {
|
|
|
3606
3608
|
get override() {
|
|
3607
3609
|
return this.coverage[3];
|
|
3608
3610
|
}
|
|
3609
|
-
}
|
|
3610
|
-
|
|
3611
|
+
};
|
|
3612
|
+
var Pair = class {
|
|
3611
3613
|
constructor(p2) {
|
|
3612
3614
|
this.left = p2.uint16;
|
|
3613
3615
|
this.right = p2.uint16;
|
|
3614
3616
|
this.value = p2.fword;
|
|
3615
3617
|
}
|
|
3616
|
-
}
|
|
3618
|
+
};
|
|
3617
3619
|
var kern$1 = Object.freeze({ __proto__: null, kern });
|
|
3618
|
-
|
|
3620
|
+
var LTSH = class extends SimpleTable {
|
|
3619
3621
|
constructor(dict, dataview) {
|
|
3620
3622
|
const { p: p2 } = super(dict, dataview);
|
|
3621
3623
|
this.version = p2.uint16;
|
|
3622
3624
|
this.numGlyphs = p2.uint16;
|
|
3623
3625
|
this.yPels = p2.readBytes(this.numGlyphs);
|
|
3624
3626
|
}
|
|
3625
|
-
}
|
|
3627
|
+
};
|
|
3626
3628
|
var LTSH$1 = Object.freeze({ __proto__: null, LTSH });
|
|
3627
|
-
|
|
3629
|
+
var MERG = class extends SimpleTable {
|
|
3628
3630
|
constructor(dict, dataview) {
|
|
3629
3631
|
const { p: p2 } = super(dict, dataview);
|
|
3630
3632
|
this.version = p2.uint16;
|
|
@@ -3644,9 +3646,9 @@ class MERG extends SimpleTable {
|
|
|
3644
3646
|
`If you need this table parsed, please file an issue, or better yet, a PR.`
|
|
3645
3647
|
);
|
|
3646
3648
|
}
|
|
3647
|
-
}
|
|
3649
|
+
};
|
|
3648
3650
|
var MERG$1 = Object.freeze({ __proto__: null, MERG });
|
|
3649
|
-
|
|
3651
|
+
var meta = class extends SimpleTable {
|
|
3650
3652
|
constructor(dict, dataview) {
|
|
3651
3653
|
const { p: p2 } = super(dict, dataview);
|
|
3652
3654
|
this.version = p2.uint32;
|
|
@@ -3657,8 +3659,8 @@ class meta extends SimpleTable {
|
|
|
3657
3659
|
(_) => new DataMap(this.tableStart, p2)
|
|
3658
3660
|
);
|
|
3659
3661
|
}
|
|
3660
|
-
}
|
|
3661
|
-
|
|
3662
|
+
};
|
|
3663
|
+
var DataMap = class {
|
|
3662
3664
|
constructor(tableStart, p2) {
|
|
3663
3665
|
this.tableStart = tableStart;
|
|
3664
3666
|
this.parser = p2;
|
|
@@ -3670,9 +3672,9 @@ class DataMap {
|
|
|
3670
3672
|
this.parser.currentField = this.tableStart + this.dataOffset;
|
|
3671
3673
|
return this.parser.readBytes(this.dataLength);
|
|
3672
3674
|
}
|
|
3673
|
-
}
|
|
3675
|
+
};
|
|
3674
3676
|
var meta$1 = Object.freeze({ __proto__: null, meta });
|
|
3675
|
-
|
|
3677
|
+
var PCLT = class extends SimpleTable {
|
|
3676
3678
|
constructor(dict, dataview) {
|
|
3677
3679
|
super(dict, dataview);
|
|
3678
3680
|
console.warn(
|
|
@@ -3682,9 +3684,9 @@ class PCLT extends SimpleTable {
|
|
|
3682
3684
|
`If you need this table parsed, please file an issue, or better yet, a PR.`
|
|
3683
3685
|
);
|
|
3684
3686
|
}
|
|
3685
|
-
}
|
|
3687
|
+
};
|
|
3686
3688
|
var PCLT$1 = Object.freeze({ __proto__: null, PCLT });
|
|
3687
|
-
|
|
3689
|
+
var VDMX = class extends SimpleTable {
|
|
3688
3690
|
constructor(dict, dataview) {
|
|
3689
3691
|
const { p: p2 } = super(dict, dataview);
|
|
3690
3692
|
this.version = p2.uint16;
|
|
@@ -3700,16 +3702,16 @@ class VDMX extends SimpleTable {
|
|
|
3700
3702
|
(_) => new VDMXGroup(p2)
|
|
3701
3703
|
);
|
|
3702
3704
|
}
|
|
3703
|
-
}
|
|
3704
|
-
|
|
3705
|
+
};
|
|
3706
|
+
var RatioRange = class {
|
|
3705
3707
|
constructor(p2) {
|
|
3706
3708
|
this.bCharSet = p2.uint8;
|
|
3707
3709
|
this.xRatio = p2.uint8;
|
|
3708
3710
|
this.yStartRatio = p2.uint8;
|
|
3709
3711
|
this.yEndRatio = p2.uint8;
|
|
3710
3712
|
}
|
|
3711
|
-
}
|
|
3712
|
-
|
|
3713
|
+
};
|
|
3714
|
+
var VDMXGroup = class {
|
|
3713
3715
|
constructor(p2) {
|
|
3714
3716
|
this.recs = p2.uint16;
|
|
3715
3717
|
this.startsz = p2.uint8;
|
|
@@ -3718,16 +3720,16 @@ class VDMXGroup {
|
|
|
3718
3720
|
(_) => new vTable(p2)
|
|
3719
3721
|
);
|
|
3720
3722
|
}
|
|
3721
|
-
}
|
|
3722
|
-
|
|
3723
|
+
};
|
|
3724
|
+
var vTable = class {
|
|
3723
3725
|
constructor(p2) {
|
|
3724
3726
|
this.yPelHeight = p2.uint16;
|
|
3725
3727
|
this.yMax = p2.int16;
|
|
3726
3728
|
this.yMin = p2.int16;
|
|
3727
3729
|
}
|
|
3728
|
-
}
|
|
3730
|
+
};
|
|
3729
3731
|
var VDMX$1 = Object.freeze({ __proto__: null, VDMX });
|
|
3730
|
-
|
|
3732
|
+
var vhea = class extends SimpleTable {
|
|
3731
3733
|
constructor(dict, dataview) {
|
|
3732
3734
|
const { p: p2 } = super(dict, dataview);
|
|
3733
3735
|
this.version = p2.fixed;
|
|
@@ -3749,9 +3751,9 @@ class vhea extends SimpleTable {
|
|
|
3749
3751
|
this.numOfLongVerMetrics = p2.uint16;
|
|
3750
3752
|
p2.verifyLength();
|
|
3751
3753
|
}
|
|
3752
|
-
}
|
|
3754
|
+
};
|
|
3753
3755
|
var vhea$1 = Object.freeze({ __proto__: null, vhea });
|
|
3754
|
-
|
|
3756
|
+
var vmtx = class extends SimpleTable {
|
|
3755
3757
|
constructor(dict, dataview, tables) {
|
|
3756
3758
|
super(dict, dataview);
|
|
3757
3759
|
const numOfLongVerMetrics = tables.vhea.numOfLongVerMetrics;
|
|
@@ -3773,13 +3775,13 @@ class vmtx extends SimpleTable {
|
|
|
3773
3775
|
});
|
|
3774
3776
|
}
|
|
3775
3777
|
}
|
|
3776
|
-
}
|
|
3777
|
-
|
|
3778
|
+
};
|
|
3779
|
+
var LongVertMetric = class {
|
|
3778
3780
|
constructor(h, b) {
|
|
3779
3781
|
this.advanceHeight = h;
|
|
3780
3782
|
this.topSideBearing = b;
|
|
3781
3783
|
}
|
|
3782
|
-
}
|
|
3784
|
+
};
|
|
3783
3785
|
var vmtx$1 = Object.freeze({ __proto__: null, vmtx });
|
|
3784
3786
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3785
3787
|
0 && (module.exports = {
|