bzt fa73c3b58d Read glyphs from a sample file | 9 mēneši atpakaļ | |
---|---|---|
.. | ||
misc | 9 mēneši atpakaļ | |
Makefile | 4 gadi atpakaļ | |
README.md | 4 gadi atpakaļ | |
copypaste.c | 9 mēneši atpakaļ | |
g_color.c | 4 gadi atpakaļ | |
g_coords.c | 3 gadi atpakaļ | |
g_kern.c | 4 gadi atpakaļ | |
g_layers.c | 9 mēneši atpakaļ | |
help.c | 1 gadu atpakaļ | |
hist.c | 4 gadi atpakaļ | |
hist.h | 4 gadi atpakaļ | |
icon.h | 9 mēneši atpakaļ | |
lang.c | 9 mēneši atpakaļ | |
lang.h | 9 mēneši atpakaļ | |
m_about.c | 9 mēneši atpakaļ | |
m_fileops.c | 9 mēneši atpakaļ | |
m_glyphs.c | 9 mēneši atpakaļ | |
m_props.c | 9 mēneši atpakaļ | |
m_ranges.c | 9 mēneši atpakaļ | |
m_test.c | 9 mēneši atpakaļ | |
main.c | 4 gadi atpakaļ | |
sdlconf.sh | 4 gadi atpakaļ | |
ui.c | 9 mēneši atpakaļ | |
ui.h | 9 mēneši atpakaļ | |
ui_dummy.c | 4 gadi atpakaļ | |
ui_osZ.c | 4 gadi atpakaļ | |
ui_sdl.c | 3 gadi atpakaļ | |
ui_x11.c | 4 gadi atpakaļ | |
uiglyph.c | 9 mēneši atpakaļ | |
uiwgt.c | 9 mēneši atpakaļ |
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.