Implemented font listing under linux in a quite hacky way. The directory list returned by XGetFontPath is not really usable, there are some path with appended :unscaled for non-ttf fonts, so i needed to add some null-pointer check to for_each_file after the opendir to avoid a crash. I think most of my ttf fonts gets listed, but at a quick glance i find some duplicates and the list is not alphabetically sorted. That would be a great improvement (sort and remove duplicates).
Also renamed Mask to Mask_table because XLib.h already defines some var called Mask. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@337 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
4
Makefile
4
Makefile
@@ -71,7 +71,7 @@ else
|
||||
OBJDIR = obj/haiku
|
||||
else
|
||||
|
||||
# Linux specific
|
||||
# Linux specific
|
||||
DELCOMMAND = rm -rf
|
||||
MKDIR = mkdir -p
|
||||
ifdef WIN32CROSS
|
||||
@@ -103,7 +103,7 @@ ifeq ($(NOTTF),1)
|
||||
TTFLABEL = -nottf
|
||||
else
|
||||
TTFCOPT =
|
||||
TTFLOPT = -L/usr/local/lib -lSDL_ttf
|
||||
TTFLOPT = -L/usr/local/lib -lSDL_ttf -lX11
|
||||
TTFLIBS = libfreetype-6.dll SDL_ttf.dll
|
||||
TTFLABEL =
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user