README
1libfontembed - font embedding and subsetting library
2----------------------------------------------------
3
4This library implements all the stuff required to
5embed and subset TrueType fonts, as for example
6required in PDF files. It is completely self-contained,
7although a FreeType binding might come sometime in the future.
8
9Currently glyf-flavored TrueType is fully supported,
10for OTF, i.e. CFF-flavored TrueType/OpenType, subsetting is not
11done; but embedding does work.
12And single-byte mode does needs work/thought wrt. to encodings.
13Also reencoding and conversion of Type1 to CFF is planned.
14PostScript embedding is another goal of the project.
15
16The most important issue that needs fixing is support for
17text extraction in the PDF multibyte case (most common),
18which requires ToUnicode support; some preparation is already done.
19
20Usage
21-----
22(TODO)... see test_pdf.c ...
23
24 * for direct sfnt access: use <sfnt.h>
25 * for embedding: use <embed.h> (which includes <fontfile.h>)
26
27License (MIT)
28-------------
29Copyright (c) 2008,2012 by Tobias Hoffmann.
30
31Permission is hereby granted, free of charge, to any person obtaining
32a copy of this software and associated documentation files (the
33"Software"), to deal in the Software without restriction, including
34without limitation the rights to use, copy, modify, merge, publish,
35distribute, sublicense, and/or sell copies of the Software, and to
36permit persons to whom the Software is furnished to do so, subject to
37the following conditions:
38
39The above copyright notice and this permission notice shall be included
40in all copies or substantial portions of the Software.
41
42THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
43EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
44MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
45IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
46CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
47TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
48SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
49