From 59690c61d4d3ceea84c7dd680e754430dda5c493 Mon Sep 17 00:00:00 2001
From: Florian Moser <git@famoser.ch>
Date: Thu, 6 May 2021 20:46:15 +0200
Subject: [PATCH] Finish presentation

---
 .gitattributes |  1 +
 pdf/PDF.pdf    |  4 ++--
 pdf/pdf.html   | 20 ++++++++++++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/.gitattributes b/.gitattributes
index f182f24..40a5bb5 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -6,3 +6,4 @@
 *.xcf filter=lfs diff=lfs merge=lfs -text
 *.bbl filter=lfs diff=lfs merge=lfs -text
 console_toolkit/console_toolkit_2.pdf filter=lfs diff=lfs merge=lfs -text
+*.html diff
\ No newline at end of file
diff --git a/pdf/PDF.pdf b/pdf/PDF.pdf
index ab90e0e..efafe2f 100644
--- a/pdf/PDF.pdf
+++ b/pdf/PDF.pdf
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:94ccbf94b269dd9e0db8f3b92f3921eee70201d2824d093fcb78ec371cfbc704
-size 426190
+oid sha256:9535d5ed16cb04069540206c37aae770322571c5c6490c90c3d68a0895977524
+size 908366
diff --git a/pdf/pdf.html b/pdf/pdf.html
index f6a6f1f..ead404a 100644
--- a/pdf/pdf.html
+++ b/pdf/pdf.html
@@ -498,6 +498,26 @@ In short: Read out tables, patch them together differently, pray everything work
 
 ---
 
+# Putting it all together
+
+TFF preprocessing:
+- parse TFF
+- transform glyphs & widths into suitable structure 
+
+TFF subset generation:
+- wait until PDF fully specified
+- collect all text within PDF file
+- use set of chars to create TTF subset
+- save TFF subset, remembering the order of the glyphs
+
+PDF text writing:
+- define encoding (pro-tip: use UTF-8)
+- reencode all text within PDF to this encoding
+- generate PostScript CMap knowing encoding / TFF glyph order
+- generate reverse PostScript CMap (why?)
+
+---
+
 # Bonus: How to extend ttf?
 
 Steps:
-- 
GitLab