From 1660767c51169f822d3c891bc525f917284124bc Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Thu, 11 Feb 2010 01:11:40 +0100 Subject: [PATCH] use general dejavue truetype font instead of custom one - needs some more love, currently the font path is hard coded --- dgclock/Makefile | 2 +- dgclock/patches/001-use-dejavu-font.patch | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 dgclock/patches/001-use-dejavu-font.patch diff --git a/dgclock/Makefile b/dgclock/Makefile index dff6305..9266073 100644 --- a/dgclock/Makefile +++ b/dgclock/Makefile @@ -34,7 +34,7 @@ define Package/dgclock CATEGORY:=Xorg TITLE:=dgclock - sdl based date and time 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 define Package/dgclock/description diff --git a/dgclock/patches/001-use-dejavu-font.patch b/dgclock/patches/001-use-dejavu-font.patch new file mode 100644 index 0000000..4e58e44 --- /dev/null +++ b/dgclock/patches/001-use-dejavu-font.patch @@ -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; +