[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[47d5a9e5] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[d7189a1c] | 7 | <!ENTITY woff2-download-http "https://github.com/google/woff2/archive/v&woff2-version;/woff2-&woff2-version;.tar.gz">
|
---|
[47d5a9e5] | 8 | <!ENTITY woff2-download-ftp " ">
|
---|
| 9 | <!ENTITY woff2-md5sum "793c8844845351cb80730a74937e411b">
|
---|
| 10 | <!ENTITY woff2-size "39 KB">
|
---|
| 11 | <!ENTITY woff2-buildsize "1.6 MB">
|
---|
| 12 | <!ENTITY woff2-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="woff2" xreflabel="WOFF2-&woff2-version;">
|
---|
| 16 | <?dbhtml filename="woff2.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[d7189a1c] | 19 | <title>woff2-&woff2-version;</title>
|
---|
[47d5a9e5] | 20 |
|
---|
| 21 | <indexterm zone="woff2">
|
---|
| 22 | <primary sortas="a-woff2">woff2</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to WOFF2</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>WOFF2</application> is a library for converting fonts from
|
---|
| 30 | the TTF format to the WOFF 2.0 format. It also allows decompression from
|
---|
| 31 | WOFF 2.0 to TTF. The WOFF 2.0 format uses the Brotli compression algorithm
|
---|
| 32 | to compress fonts suitable for downloading in CSS @font-face rules.
|
---|
| 33 | </para>
|
---|
| 34 |
|
---|
[2fec8e3] | 35 | &lfs121_checked;
|
---|
[47d5a9e5] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&woff2-download-http;"/>
|
---|
| 42 | </para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&woff2-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download MD5 sum: &woff2-md5sum;
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download size: &woff2-size;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Estimated disk space required: &woff2-buildsize;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated build time: &woff2-time;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
[d7189a1c] | 70 | <!--
|
---|
[47d5a9e5] | 71 | <note>
|
---|
| 72 | <para>
|
---|
| 73 | The <application>WOFF2</application> source tarball shown above
|
---|
| 74 | downloads with the correct name, woff2-&woff2-version;.tar.gz,
|
---|
| 75 | if using a browser such as Firefox. If you prefer to use a command line
|
---|
| 76 | program such as wget, you normally would obtain
|
---|
| 77 | v&woff2-version;.tar.gz. To obtain this package with the proper
|
---|
| 78 | filename, run:
|
---|
| 79 |
|
---|
| 80 | <screen><userinput>wget -c https://github.com/google/woff2/v&brotli-version;.tar.gz \
|
---|
| 81 | -O woff2-&woff2-version;.tar.gz</userinput></screen>.
|
---|
| 82 | </para>
|
---|
| 83 | </note>
|
---|
[d7189a1c] | 84 | -->
|
---|
[47d5a9e5] | 85 | <bridgehead renderas="sect3">WOFF2 Dependencies</bridgehead>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 88 | <para role="required">
|
---|
[217b167] | 89 | <xref linkend="brotli"/> and
|
---|
[47d5a9e5] | 90 | <xref linkend="cmake"/>
|
---|
| 91 | </para>
|
---|
| 92 |
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="installation">
|
---|
| 96 | <title>Installation of WOFF2</title>
|
---|
| 97 |
|
---|
| 98 | <para>
|
---|
| 99 | Install <application>WOFF2</application> by running the following
|
---|
| 100 | commands:
|
---|
| 101 | </para>
|
---|
| 102 |
|
---|
[cbfa153] | 103 | <screen><userinput>mkdir out &&
|
---|
| 104 | cd out &&
|
---|
| 105 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
| 106 | -D CMAKE_BUILD_TYPE=Release \
|
---|
| 107 | -D CMAKE_SKIP_INSTALL_RPATH=ON .. &&
|
---|
[47d5a9e5] | 108 | make</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | This package does not come with a test suite.
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
| 114 | <para>
|
---|
| 115 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
[a6d5eae] | 121 | <sect2 role="commands">
|
---|
| 122 | <title>Command Explanations</title>
|
---|
| 123 |
|
---|
| 124 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 125 | href="../../xincludes/cmake-skip-install-rpath.xml"/>
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
[47d5a9e5] | 128 | <sect2 role="content">
|
---|
| 129 | <title>Contents</title>
|
---|
| 130 |
|
---|
| 131 | <segmentedlist>
|
---|
| 132 | <segtitle>Installed Program</segtitle>
|
---|
| 133 | <segtitle>Installed Libraries</segtitle>
|
---|
| 134 | <segtitle>Installed Directory</segtitle>
|
---|
| 135 |
|
---|
| 136 | <seglistitem>
|
---|
| 137 | <seg>
|
---|
[822c1eb5] | 138 | None
|
---|
[47d5a9e5] | 139 | </seg>
|
---|
| 140 | <seg>
|
---|
[822c1eb5] | 141 | libwoff2common.so, libwoff2dec.so and libwoff2enc.so
|
---|
[47d5a9e5] | 142 | </seg>
|
---|
| 143 | <seg>
|
---|
[822c1eb5] | 144 | /usr/include/woff2
|
---|
[47d5a9e5] | 145 | </seg>
|
---|
| 146 | </seglistitem>
|
---|
| 147 | </segmentedlist>
|
---|
| 148 |
|
---|
| 149 | <variablelist>
|
---|
| 150 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 151 | <?dbfo list-presentation="list"?>
|
---|
| 152 | <?dbhtml list-presentation="table"?>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="libwoff2common">
|
---|
| 155 | <term><filename class="libraryfile">libwoff2common.so</filename></term>
|
---|
| 156 | <listitem>
|
---|
| 157 | <para>
|
---|
[4c24eb0a] | 158 | provides shared data used by the libwoff2dec and libwoff2enc libraries
|
---|
[47d5a9e5] | 159 | </para>
|
---|
| 160 | <indexterm zone="woff2 libwoff2common">
|
---|
| 161 | <primary sortas="c-libwoff2common">libwoff2common.so</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="libwoff2dec">
|
---|
| 167 | <term><filename class="libraryfile">libwoff2dec.so</filename></term>
|
---|
| 168 | <listitem>
|
---|
| 169 | <para>
|
---|
[4c24eb0a] | 170 | is the WOFF2 decoder library
|
---|
[47d5a9e5] | 171 | </para>
|
---|
| 172 | <indexterm zone="woff2 libwoff2dec">
|
---|
| 173 | <primary sortas="c-libwoff2dec">libwoff2dec.so</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="libwoff2enc">
|
---|
| 179 | <term><filename class="libraryfile">libwoff2enc.so</filename></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>
|
---|
[4c24eb0a] | 182 | is the WOFF2 encoder library
|
---|
[47d5a9e5] | 183 | </para>
|
---|
| 184 | <indexterm zone="woff2 libwoff2enc">
|
---|
| 185 | <primary sortas="c-libwoff2common">libwoff2enc.so</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
| 190 | </variablelist>
|
---|
| 191 | </sect2>
|
---|
[4c24eb0a] | 192 |
|
---|
[47d5a9e5] | 193 | </sect1>
|
---|