• Home
Name Date Size #Lines LOC

..--

READMED12-May-20242 KiB4939

aglfn13.cD12-May-202414.9 KiB215207

bitset.hD12-May-2024722 3929

dynstring.cD12-May-20241.7 KiB10686

dynstring.hD12-May-2024357 1712

embed.cD12-May-20247.1 KiB261189

embed.hD12-May-20242.7 KiB9363

embed_pdf.cD12-May-202415.8 KiB598491

embed_pdf.hD12-May-20241.5 KiB5435

embed_pdf_int.hD12-May-2024342 115

embed_sfnt.cD12-May-202421.1 KiB678529

embed_sfnt_int.hD12-May-2024631 1911

fontfile.cD12-May-2024731 5128

fontfile.hD12-May-2024349 2316

frequent.cD12-May-20242 KiB8465

frequent.hD12-May-2024483 188

iofn.hD12-May-2024107 74

macroman.hD12-May-20242.6 KiB3331

sfnt.cD12-May-202424.3 KiB993813

sfnt.hD12-May-20241.9 KiB6545

sfnt_int.hD12-May-20242.6 KiB9873

sfnt_subset.cD12-May-20248.6 KiB344268

test_analyze.cD12-May-20245.8 KiB242206

test_pdf.cD12-May-20244.5 KiB222191

test_ps.cD12-May-20241.9 KiB9675

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