Date:2010-02-11 01:11:40 (11 years 14 days ago)
Author:Mirko Vogt
Commit:1660767c51169f822d3c891bc525f917284124bc
Message:use general dejavue truetype font instead of custom one - needs some more love, currently the font path is hard coded

Files: dgclock/Makefile (1 diff)
dgclock/patches/001-use-dejavu-font.patch (1 diff)

Change Details

dgclock/Makefile
3434  CATEGORY:=Xorg
3535  TITLE:=dgclock - sdl based date and time
3636  URL:=http://clogging.web.fc2.com/dingoo/
37  DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libgl-mesa
37  DEPENDS:=+libsdl +libsdl-image +libsdl-ttf +libgl-mesa +dejavu-fonts-ttf
3838endef
3939
4040define Package/dgclock/description
dgclock/patches/001-use-dejavu-font.patch
1diff -ruN dgclock/src/main.c dgclock.mod/src/main.c
2--- dgclock/src/main.c 2009-12-21 16:00:00.000000000 +0100
3@@ -60,11 +60,11 @@
4
5     SDL_ShowCursor(SDL_DISABLE);
6
7- gTTFFont = TTF_OpenFont ( "mplus-2p-medium.ttf" , 15 );
8+ gTTFFont = TTF_OpenFont ( "/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf" , 15 );
9     if (!gTTFFont)
10         return -1;
11
12- gTTFSmall = TTF_OpenFont ( "mplus-2p-medium.ttf" , 10 );
13+ gTTFSmall = TTF_OpenFont ( "/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf" , 10 );
14     if (!gTTFSmall)
15         return -1;
16

Archive Download the corresponding diff file



interactive