bzt fa73c3b58d Read glyphs from a sample file | 9 months ago | |
---|---|---|
.. | ||
misc | 9 months ago | |
Makefile | 4 years ago | |
README.md | 4 years ago | |
copypaste.c | 9 months ago | |
g_color.c | 4 years ago | |
g_coords.c | 3 years ago | |
g_kern.c | 4 years ago | |
g_layers.c | 9 months ago | |
help.c | 1 year ago | |
hist.c | 4 years ago | |
hist.h | 4 years ago | |
icon.h | 9 months ago | |
lang.c | 9 months ago | |
lang.h | 9 months ago | |
m_about.c | 9 months ago | |
m_fileops.c | 9 months ago | |
m_glyphs.c | 9 months ago | |
m_props.c | 9 months ago | |
m_ranges.c | 9 months ago | |
m_test.c | 9 months ago | |
main.c | 4 years ago | |
sdlconf.sh | 4 years ago | |
ui.c | 9 months ago | |
ui.h | 9 months ago | |
ui_dummy.c | 4 years ago | |
ui_osZ.c | 4 years ago | |
ui_sdl.c | 3 years ago | |
ui_x11.c | 4 years ago | |
uiglyph.c | 9 months ago | |
uiwgt.c | 9 months ago |
This is a GUI font editor. For further details, read the documentation.
Naturally depends on libsfn
. Compile that first, then to compile sfnedit, use
$ make
If despite SDL2 is detected, but you want to use X11, then
$ USE_X11=yes make
For portability, it uses SDL2 (or X11 as fallback on platforms that has X11). By default, the installed library is detected and sfnedit is linked against that dynamically. Experts might compile and link SDL statically info sfnedit, see below.
Standard GNU toolchain, "gcc" and "make".
You'll need the development version of SDL2, which can be installed by your distro's standard package management software ("apt-get install", "emerge", "pacman", "port", "brew", "pkg" etc.). It is usually called "libsdl-dev" or something similar.
xcode-select --install
and in the pop-up window click on "Install", this will give you "gcc" and "make" under MacOSXOn all platforms, you can also statically link SDL with sfnedit. For that, here are the required steps:
make
there, should create a (relatively) small libSDL.a with only the SDL_video subsystemmake
here will use that static versionThis is pretty straight forward. You'll need to compile libsfn. As it contains all its dependencies, all you need for that is an ANSI C compiler and a minimal libc. For sfnedit, you have three options (in descending order of complexity):
USE_X11=yes make
(porting X11 is hard).As for the latter, the required steps:
The code is written in a way that the user interface is completely separated, so all you need to do is provide wrappers in your ui_X.c for manipulationg windows and getting events. Your windows should have a 32 bit ARGB pixel buffer. That's all.