Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/preview-resolve-family.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @office-kit/pptx-dev

## 0.13.1

### Patch Changes

- Updated dependencies [f403320]
- @office-kit/pptx-preview@0.16.0
- @office-kit/pptx-editor@0.1.1

## 0.13.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@office-kit/pptx-dev",
"version": "0.13.0",
"version": "0.13.1",
"description": "Build and preview TSX presentations locally",
"license": "MIT",
"repository": {
Expand Down
7 changes: 7 additions & 0 deletions packages/editor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @office-kit/pptx-editor

## 0.1.1

### Patch Changes

- Updated dependencies [f403320]
- @office-kit/pptx-preview@0.16.0

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@office-kit/pptx-editor",
"version": "0.1.0",
"version": "0.1.1",
"description": "Embeddable browser editor for .pptx presentations, built on @office-kit/pptx",
"keywords": [
"editor",
Expand Down
8 changes: 8 additions & 0 deletions packages/preview/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# pptx-kit-preview

## 0.16.0

### Minor Changes

- f403320: Added `resolveFamily` to `RenderSlideOptions` (#461). With `textLayout: 'svg'`, each run's font is written to the SVG as one of the bundled substitutes (Calibri / Aptos and unknown fonts as `Carlito`, Cambria as `Caladea`, Arial / Helvetica as `Liberation Sans`, Times as `Liberation Serif`, Courier / Consolas as `Liberation Mono`), so a host that embeds its own `@font-face` rules — for a deck that uses Lora or Inter, say — could not get its font applied. `resolveFamily` maps each authored font name (or `null` when none applies) to the family written to `<text font-family>` and passed to `measureText`; the shrink-to-fit search measures with it too, and names that are not plain CSS identifiers (such as `M PLUS 1p`) are quoted. It defaults to `substituteFamily`, so output is unchanged unless you pass it. The `foreignObject` text path already keeps the authored name and ignores the option.

Fixed: `auditTextLayout` sized a bare `<a:normAutofit/>` body's shrink with the substitute font while laying it out with the authored one, so with a `measureText` that registers that font the audit could report overflow (or miss it) for text the shrink was sized for.

## 0.15.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/preview/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@office-kit/pptx-preview",
"version": "0.15.0",
"version": "0.16.0",
"description": "Experimental preview renderer for @office-kit/pptx: render a slide to SVG (browser + Node) or rasterize it to a PNG/RGBA image in Node, with no browser binary.",
"keywords": [
"ooxml",
Expand Down