1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-25 18:10:38 +02:00

use general dejavue truetype font instead of custom one - needs some more love, currently the font path is hard coded

This commit is contained in:
Mirko Vogt 2010-02-11 01:11:40 +01:00
parent a268e55acd
commit 1660767c51
2 changed files with 18 additions and 1 deletions

View File

@ -34,7 +34,7 @@ define Package/dgclock
CATEGORY:=Xorg CATEGORY:=Xorg
TITLE:=dgclock - sdl based date and time TITLE:=dgclock - sdl based date and time
URL:=http://clogging.web.fc2.com/dingoo/ URL:=http://clogging.web.fc2.com/dingoo/
DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libgl-mesa DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libgl-mesa +dejavu-fonts-ttf
endef endef
define Package/dgclock/description define Package/dgclock/description

View File

@ -0,0 +1,17 @@
diff -ruN dgclock/src/main.c dgclock.mod/src/main.c
--- dgclock/src/main.c 2009-12-21 16:00:00.000000000 +0100
+++ dgclock.mod/src/main.c 2010-02-10 11:30:11.000000000 +0100
@@ -60,11 +60,11 @@
SDL_ShowCursor(SDL_DISABLE);
- gTTFFont = TTF_OpenFont ( "mplus-2p-medium.ttf" , 15 );
+ gTTFFont = TTF_OpenFont ( "/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf" , 15 );
if (!gTTFFont)
return -1;
- gTTFSmall = TTF_OpenFont ( "mplus-2p-medium.ttf" , 10 );
+ gTTFSmall = TTF_OpenFont ( "/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf" , 10 );
if (!gTTFSmall)
return -1;