bzt fa73c3b58d Read glyphs from a sample file | hai 9 meses | |
---|---|---|
.. | ||
misc | hai 9 meses | |
Makefile | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
copypaste.c | hai 9 meses | |
g_color.c | %!s(int64=4) %!d(string=hai) anos | |
g_coords.c | %!s(int64=3) %!d(string=hai) anos | |
g_kern.c | %!s(int64=4) %!d(string=hai) anos | |
g_layers.c | hai 9 meses | |
help.c | hai 1 ano | |
hist.c | %!s(int64=4) %!d(string=hai) anos | |
hist.h | %!s(int64=4) %!d(string=hai) anos | |
icon.h | hai 9 meses | |
lang.c | hai 9 meses | |
lang.h | hai 9 meses | |
m_about.c | hai 9 meses | |
m_fileops.c | hai 9 meses | |
m_glyphs.c | hai 9 meses | |
m_props.c | hai 9 meses | |
m_ranges.c | hai 9 meses | |
m_test.c | hai 9 meses | |
main.c | %!s(int64=4) %!d(string=hai) anos | |
sdlconf.sh | %!s(int64=4) %!d(string=hai) anos | |
ui.c | hai 9 meses | |
ui.h | hai 9 meses | |
ui_dummy.c | %!s(int64=4) %!d(string=hai) anos | |
ui_osZ.c | %!s(int64=4) %!d(string=hai) anos | |
ui_sdl.c | %!s(int64=3) %!d(string=hai) anos | |
ui_x11.c | %!s(int64=4) %!d(string=hai) anos | |
uiglyph.c | hai 9 meses | |
uiwgt.c | hai 9 meses |
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.