@qrcommunication/gigapdf-lib 0.13.0 → 0.14.1

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/CHANGELOG.md CHANGED
@@ -4,6 +4,31 @@ All notable changes to `@qrcommunication/gigapdf-lib` are documented here.
4
4
  The format follows [Keep a Changelog](https://keepachangelog.com/) and the
5
5
  project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [0.14.1] - 2026-06-16
8
+
9
+ ### Changed
10
+
11
+ - **Font subsetting now also drops unused tables and truncates the glyph space.**
12
+ On save, an embedded font keeps only the tables a PDF Identity-H viewer needs
13
+ (`head`/`hhea`/`maxp`/`hmtx`/`loca`/`glyf`) — dropping `cmap`, `OS/2`, `name`,
14
+ `post`, `GPOS`/`GSUB`/`GDEF`, `DSIG` and the hinting programs — and truncates
15
+ the glyph count to the highest used id, so `loca`/`hmtx` shrink too. A full
16
+ ~411 KB family now embeds as ~30 KB for a short text run (×13). (Glyph ids are
17
+ still preserved, not remapped — full GID compaction is a later enhancement.)
18
+
19
+ ## [0.14.0] - 2026-06-16
20
+
21
+ ### Changed
22
+
23
+ - **Embedded fonts are now subsetted on save.** Text drawn with `addText` tracks
24
+ the glyph ids it uses per embedded font; `save`/`saveCompressed` rebuild each
25
+ embedded `FontFile2` to keep only those glyph outlines (plus `.notdef` and any
26
+ composite components). Glyph ids are **preserved** (no remap), so existing
27
+ Identity-H content stays valid — only the outline data shrinks. A minimal edit
28
+ that previously embedded a full ~300 KB family now adds only the glyphs it
29
+ draws, fixing the round-trip size blow-up when re-baking edited text. No API
30
+ change — the subsetting is automatic.
31
+
7
32
  ## [0.13.0] - 2026-06-16
8
33
 
9
34
  ### Added
package/gigapdf.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrcommunication/gigapdf-lib",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
4
4
  "description": "TypeScript SDK for gigapdf-lib — a zero-dependency Rust→WASM PDF engine: read/edit/render, OCR, full-text search, AcroForm fields (read · fill · create), annotations, signing, encryption, PDF↔Office/HTML/RTF conversions, and a native HTML+CSS+JavaScript→PDF renderer (no headless browser; a suspendable JS VM gives lazy generators and spec-ordered async). Self-contained .wasm, no third-party runtime deps.",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "author": "Rony Licha / QR Communication",