fika-editor 3.4.2 → 3.4.4
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.
|
@@ -12,15 +12,23 @@
|
|
|
12
12
|
* boot inside a bundled web build, hanging exports forever with no error.
|
|
13
13
|
*/
|
|
14
14
|
import type pptxgen from 'pptxgenjs-plus';
|
|
15
|
+
import type { PptxExportCommand } from './pptxExportCommands';
|
|
15
16
|
type AddFontOptions = Parameters<pptxgen['addFont']>[0];
|
|
16
17
|
/** Collect candidate font families from a CSS font-family string. */
|
|
17
18
|
export declare const parseFontFamilyList: (value?: string) => string[];
|
|
18
|
-
/**
|
|
19
|
+
/** Bundled fonts travel with the deck, even when installed on this computer. */
|
|
19
20
|
export declare const isEmbeddableFont: (family: string) => boolean;
|
|
20
21
|
/**
|
|
21
22
|
* Embed fonts used in the deck into the PPTX.
|
|
22
23
|
* `usedFamilies` should be the raw font-family strings gathered from elements/theme.
|
|
23
|
-
*
|
|
24
|
+
* Unbundled families remain available for the viewer to resolve. A bundled font
|
|
25
|
+
* failing to load rejects export instead of silently losing portability.
|
|
24
26
|
*/
|
|
25
27
|
export declare const collectEmbeddedFonts: (usedFamilies: string[]) => Promise<AddFontOptions[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Inspect the final generator commands, including rich text runs, shape text,
|
|
30
|
+
* tables, charts and theme defaults. CSS fallback lists are not OOXML typefaces;
|
|
31
|
+
* use their first family and the same canonical name as our embedded font.
|
|
32
|
+
*/
|
|
33
|
+
export declare const preparePptxFontFamilies: (commands: PptxExportCommand[]) => string[];
|
|
26
34
|
export {};
|
package/docs/EMBED.md
CHANGED
|
@@ -601,3 +601,17 @@ mounting a second host concurrently throws before changing any document.
|
|
|
601
601
|
Cache each deck separately in the host and pass its latest snapshot on remount.
|
|
602
602
|
`destroy()` flushes pending rich-text changes and the final `onChange` before
|
|
603
603
|
releasing the editor. Hosts should flush their own autosave queue on teardown.
|
|
604
|
+
|
|
605
|
+
### Portable PPTX fonts
|
|
606
|
+
|
|
607
|
+
PPTX exports automatically embed bundled fonts used by the exported text runs,
|
|
608
|
+
tables, shapes, charts and theme, including fonts that are installed on the
|
|
609
|
+
exporting computer. Inline-only font choices are included. CSS fallback stacks
|
|
610
|
+
are converted to a single OOXML typeface, and bundled family aliases use their
|
|
611
|
+
canonical names. No host option is required.
|
|
612
|
+
|
|
613
|
+
Serve the package's font assets alongside its workers and chunks. If a required
|
|
614
|
+
bundled font cannot be fetched or decoded, export rejects instead of silently
|
|
615
|
+
omitting it. Fonts outside the bundled catalog still depend on the receiving
|
|
616
|
+
application's font availability. Embedded fonts improve portability in viewers
|
|
617
|
+
that support them; PDF is available for a fixed visual result.
|