Enabled TTF fonts in OS4 build, scans system default directory for TTF

files.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@450 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Pete Gordon 2008-12-31 21:36:47 +00:00
parent 232ed1041d
commit 0b7b96ae75
2 changed files with 6 additions and 2 deletions

View File

@ -58,10 +58,10 @@ else
BIN = grafx2
CFGBIN = gfxcfg
COPT = -Wall -c -gstabs -mcrt=newlib `sdl-config --cflags` $(TTFCOPT)
LOPT = `sdl-config --libs` -lSDL_image -lpng -ljpeg -lz $(TTFLOPT)
LOPT = `sdl-config --libs` -lSDL_image -lpng -ljpeg -lz $(TTFLOPT) -lft2
CC = gcc
OBJDIR = obj/amiga
NOTTF = 1
# NOTTF = 1
else
#AROS specific

View File

@ -333,6 +333,10 @@ void Initialisation_Texte(void)
XFreeFontPath(font_path_list);
}
#endif
#elif defined(__amigaos4__)
#ifndef NOTTF
for_each_file( "FONTS:_TrueType", Ajout_fonte );
#endif
#elif defined(__BEOS__) || defined(__HAIKU__)
#ifndef NOTTF
for_each_file("/etc/fonts/ttfonts", Ajout_fonte);