LayoutFarm/Typography

Implement Woff and Woff2

prepare opened this issue · 2 comments

typo_woff2
Sarabun-Regular.woff2, Typography reads and restores woff2


typo_woff2_1
Roboto-Regular.woff2

woff => needs Zlib decoder
and
woff2 => needs Brotli decoder.

The Typography dose not provide built-in Zlib/Brotli decoder
you need to add it by your own (select any lib you want) .

In the sample projects
I provide some libs (in Unpack project) to demonstrate this.

typo_woff2_2
pic 1: add 'external' Zlib decoder

typo_woff2_3
pic 2: add 'external' Brotli decoder


Zlib from ...

MIT, 2018, SharpZipLib, https://github.com/icsharpcode/SharpZipLib

Brotli from ...

MIT, 2009, 2010, 2013-2016 by the Brotli Authors., https://github.com/google/brotli

MIT, 2017, brezza92 (C# port from original code, by hand), https://github.com/brezza92/brotli

MIT, 2019, master131, https://github.com/master131/BrotliSharpLib