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