New upstream release.
Debian Janitor
1 year, 1 month ago
0 | 0 | # |
1 | # bdf2sfd 1.1.7 | |
2 | # Copyright (c) 2019-2021, Frederic Cambus | |
1 | # bdf2sfd 1.1.8 | |
2 | # Copyright (c) 2019-2023, Frederic Cambus | |
3 | 3 | # https://github.com/fcambus/bdf2sfd |
4 | 4 | # |
5 | 5 | # Created: 2019-11-21 |
6 | # Last Updated: 2021-10-18 | |
6 | # Last Updated: 2023-03-13 | |
7 | 7 | # |
8 | 8 | # bdf2sfd is released under the BSD 2-Clause license. |
9 | 9 | # See LICENSE file for details. |
59 | 59 | add_executable(bdf2sfd ${SRC}) |
60 | 60 | |
61 | 61 | install(TARGETS bdf2sfd DESTINATION ${CMAKE_INSTALL_BINDIR}) |
62 | install(FILES bdf2sfd.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/) | |
62 | install(FILES man/bdf2sfd.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/) | |
63 | 63 | |
64 | 64 | enable_testing() |
65 | 65 | add_test(bdf2sfd bdf2sfd) |
0 | bdf2sfd 1.1.8 (2023-03-30) | |
1 | ||
2 | - Remove unneeded <sys/types.h> include | |
3 | - Add missing void to the usage() function definition | |
4 | - Move manual page to the man directory | |
5 | ||
6 | ||
7 | ||
0 | 8 | bdf2sfd 1.1.7 (2021-11-16) |
1 | 9 | |
2 | 10 | - Rename the "glyphes" variable to "glyphs" |
0 | Copyright (c) 2019-2021, Frederic Cambus | |
0 | Copyright (c) 2019-2023, Frederic Cambus | |
1 | 1 | All rights reserved. |
2 | 2 | |
3 | 3 | Redistribution and use in source and binary forms, with or without |
36 | 36 | |
37 | 37 | ## Packages |
38 | 38 | |
39 | Packages are available for the following operating systems: | |
39 | bdf2sfd packages are available for: | |
40 | 40 | |
41 | 41 | - [OpenBSD][5] |
42 | 42 | - [NetBSD][6] |
43 | - [Void Linux][7] | |
44 | - [Debian][8] | |
45 | - [Ubuntu][9] | |
46 | - [Nix][10] | |
43 | - [FreeBSD][7] | |
44 | - [Void Linux][8] | |
45 | - [Debian][9] | |
46 | - [Ubuntu][10] | |
47 | - [Nix][11] | |
47 | 48 | |
48 | 49 | ## Usage |
49 | 50 | |
106 | 107 | [2]: https://fontforge.org/en-US/documentation/developers/sfdformat/ |
107 | 108 | [3]: https://fontforge.org |
108 | 109 | [4]: https://github.com/fcambus/spleen |
109 | [5]: https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/converters/bdf2sfd | |
110 | [5]: https://openports.pl/path/converters/bdf2sfd | |
110 | 111 | [6]: https://pkgsrc.se/converters/bdf2sfd |
111 | [7]: https://github.com/void-linux/void-packages/tree/master/srcpkgs/bdf2sfd | |
112 | [8]: https://packages.debian.org/search?keywords=bdf2sfd | |
113 | [9]: https://packages.ubuntu.com/bdf2sfd | |
114 | [10]: https://github.com/NixOS/nixpkgs/tree/master/pkgs/tools/misc/bdf2sfd | |
112 | [7]: https://www.freshports.org/x11-fonts/bdf2sfd | |
113 | [8]: https://github.com/void-linux/void-packages/tree/master/srcpkgs/bdf2sfd | |
114 | [9]: https://packages.debian.org/search?keywords=bdf2sfd | |
115 | [10]: https://packages.ubuntu.com/bdf2sfd | |
116 | [11]: https://github.com/NixOS/nixpkgs/tree/master/pkgs/tools/misc/bdf2sfd | |
115 | 117 | |
116 | 118 | ## Packaging status |
117 | 119 |
0 | .\" | |
1 | .\" Copyright (c) 2019-2021, Frederic Cambus | |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" Redistribution and use in source and binary forms, with or without | |
5 | .\" modification, are permitted provided that the following conditions are met: | |
6 | .\" | |
7 | .\" * Redistributions of source code must retain the above copyright | |
8 | .\" notice, this list of conditions and the following disclaimer. | |
9 | .\" | |
10 | .\" * Redistributions in binary form must reproduce the above copyright | |
11 | .\" notice, this list of conditions and the following disclaimer in the | |
12 | .\" documentation and/or other materials provided with the distribution. | |
13 | .\" | |
14 | .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
15 | .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
16 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
17 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS | |
18 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
19 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
20 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
21 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
22 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
23 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
24 | .\" POSSIBILITY OF SUCH DAMAGE. | |
25 | .\" | |
26 | .Dd $Mdocdate: February 12 2021 $ | |
27 | .Dt BDF2SFD 1 | |
28 | .Os | |
29 | .Sh NAME | |
30 | .Nm bdf2sfd | |
31 | .Nd BDF to SFD converter | |
32 | .Sh SYNOPSIS | |
33 | .Nm | |
34 | .Op Fl hv | |
35 | .Op Fl f Ar name | |
36 | .Op Fl p Ar name | |
37 | .Ar font.bdf | |
38 | .Sh DESCRIPTION | |
39 | .Nm | |
40 | is a BDF to SFD converter, allowing to vectorize bitmap fonts. | |
41 | It works by converting each pixel of a glyph to a polygon, which produces | |
42 | large and unoptimized SFD files which should be post-processed using FontForge. | |
43 | .Pp | |
44 | If | |
45 | .Ar file | |
46 | is a single dash (`-'), | |
47 | .Nm | |
48 | reads from the standard input. | |
49 | .Pp | |
50 | The options are as follows: | |
51 | .Bl -tag -width 10n | |
52 | .It Fl f Ar name | |
53 | Specify font name. | |
54 | .It Fl p Ar name | |
55 | Specify PostScript font name. | |
56 | .It Fl h | |
57 | Display usage. | |
58 | .It Fl v | |
59 | Display version. | |
60 | .El | |
61 | .Sh AUTHORS | |
62 | .Nm | |
63 | was written by | |
64 | .An Frederic Cambus . |
0 | bdf2sfd (1.1.8-1) UNRELEASED; urgency=low | |
1 | ||
2 | * New upstream release. | |
3 | ||
4 | -- Debian Janitor <janitor@jelmer.uk> Thu, 13 Apr 2023 00:00:53 -0000 | |
5 | ||
0 | 6 | bdf2sfd (1.1.7-1) unstable; urgency=medium |
1 | 7 | |
2 | 8 | * New upstream version. |
0 | .\" | |
1 | .\" Copyright (c) 2019-2023, Frederic Cambus | |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" Redistribution and use in source and binary forms, with or without | |
5 | .\" modification, are permitted provided that the following conditions are met: | |
6 | .\" | |
7 | .\" * Redistributions of source code must retain the above copyright | |
8 | .\" notice, this list of conditions and the following disclaimer. | |
9 | .\" | |
10 | .\" * Redistributions in binary form must reproduce the above copyright | |
11 | .\" notice, this list of conditions and the following disclaimer in the | |
12 | .\" documentation and/or other materials provided with the distribution. | |
13 | .\" | |
14 | .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | |
15 | .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
16 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
17 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS | |
18 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | |
19 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | |
20 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | |
21 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | |
22 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
23 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | |
24 | .\" POSSIBILITY OF SUCH DAMAGE. | |
25 | .\" | |
26 | .Dd $Mdocdate: February 12 2021 $ | |
27 | .Dt BDF2SFD 1 | |
28 | .Os | |
29 | .Sh NAME | |
30 | .Nm bdf2sfd | |
31 | .Nd BDF to SFD converter | |
32 | .Sh SYNOPSIS | |
33 | .Nm | |
34 | .Op Fl hv | |
35 | .Op Fl f Ar name | |
36 | .Op Fl p Ar name | |
37 | .Ar font.bdf | |
38 | .Sh DESCRIPTION | |
39 | .Nm | |
40 | is a BDF to SFD converter, allowing to vectorize bitmap fonts. | |
41 | It works by converting each pixel of a glyph to a polygon, which produces | |
42 | large and unoptimized SFD files which should be post-processed using FontForge. | |
43 | .Pp | |
44 | If | |
45 | .Ar file | |
46 | is a single dash (`-'), | |
47 | .Nm | |
48 | reads from the standard input. | |
49 | .Pp | |
50 | The options are as follows: | |
51 | .Bl -tag -width 10n | |
52 | .It Fl f Ar name | |
53 | Specify font name. | |
54 | .It Fl p Ar name | |
55 | Specify PostScript font name. | |
56 | .It Fl h | |
57 | Display usage. | |
58 | .It Fl v | |
59 | Display version. | |
60 | .El | |
61 | .Sh AUTHORS | |
62 | .Nm | |
63 | was written by | |
64 | .An Frederic Cambus . |
0 | 0 | /* |
1 | * bdf2sfd 1.1.7 | |
2 | * Copyright (c) 2019-2021, Frederic Cambus | |
1 | * bdf2sfd 1.1.8 | |
2 | * Copyright (c) 2019-2023, Frederic Cambus | |
3 | 3 | * https://github.com/fcambus/bdf2sfd |
4 | 4 | * |
5 | 5 | * Created: 2019-11-21 |
6 | * Last Updated: 2021-11-16 | |
6 | * Last Updated: 2023-03-13 | |
7 | 7 | * |
8 | 8 | * bdf2sfd is released under the BSD 2-Clause license. |
9 | 9 | * See LICENSE file for details. |
13 | 13 | |
14 | 14 | #include <sys/stat.h> |
15 | 15 | #include <sys/time.h> |
16 | #include <sys/types.h> | |
17 | 16 | #include <err.h> |
18 | 17 | #include <getopt.h> |
19 | 18 | #include <inttypes.h> |
37 | 36 | #include "polygon.h" |
38 | 37 | |
39 | 38 | static void |
40 | usage() | |
39 | usage(void) | |
41 | 40 | { |
42 | 41 | printf("bdf2sfd [-hv] [-f name] [-p name] font.bdf\n\n" |
43 | 42 | "The options are as follows:\n\n" |
0 | 0 | /* |
1 | * bdf2sfd 1.1.7 | |
2 | * Copyright (c) 2019-2021, Frederic Cambus | |
1 | * bdf2sfd 1.1.8 | |
2 | * Copyright (c) 2019-2023, Frederic Cambus | |
3 | 3 | * https://github.com/fcambus/bdf2sfd |
4 | 4 | * |
5 | 5 | * Created: 2019-11-21 |
14 | 14 | #ifndef CONFIG_H |
15 | 15 | #define CONFIG_H |
16 | 16 | |
17 | #define VERSION "bdf2sfd 1.1.7" | |
17 | #define VERSION "bdf2sfd 1.1.8" | |
18 | 18 | |
19 | 19 | #endif /* CONFIG_H */ |
0 | 0 | /* |
1 | * bdf2sfd 1.1.7 | |
2 | * Copyright (c) 2019-2021, Frederic Cambus | |
1 | * bdf2sfd 1.1.8 | |
2 | * Copyright (c) 2019-2023, Frederic Cambus | |
3 | 3 | * https://github.com/fcambus/bdf2sfd |
4 | 4 | * |
5 | 5 | * Created: 2019-11-21 |
0 | 0 | /* |
1 | * bdf2sfd 1.1.7 | |
2 | * Copyright (c) 2019-2021, Frederic Cambus | |
1 | * bdf2sfd 1.1.8 | |
2 | * Copyright (c) 2019-2023, Frederic Cambus | |
3 | 3 | * https://github.com/fcambus/bdf2sfd |
4 | 4 | * |
5 | 5 | * Created: 2019-11-21 |
0 | 0 | /* |
1 | * bdf2sfd 1.1.7 | |
2 | * Copyright (c) 2019-2021, Frederic Cambus | |
1 | * bdf2sfd 1.1.8 | |
2 | * Copyright (c) 2019-2023, Frederic Cambus | |
3 | 3 | * https://github.com/fcambus/bdf2sfd |
4 | 4 | * |
5 | 5 | * Created: 2019-11-21 |
0 | 0 | /* |
1 | * bdf2sfd 1.1.7 | |
2 | * Copyright (c) 2019-2021, Frederic Cambus | |
1 | * bdf2sfd 1.1.8 | |
2 | * Copyright (c) 2019-2023, Frederic Cambus | |
3 | 3 | * https://github.com/fcambus/bdf2sfd |
4 | 4 | * |
5 | 5 | * Created: 2019-11-21 |
0 | 0 | /* |
1 | * bdf2sfd 1.1.7 | |
2 | * Copyright (c) 2019-2021, Frederic Cambus | |
1 | * bdf2sfd 1.1.8 | |
2 | * Copyright (c) 2019-2023, Frederic Cambus | |
3 | 3 | * https://github.com/fcambus/bdf2sfd |
4 | 4 | * |
5 | 5 | * Created: 2019-11-21 |