Skip to content

Commit

Permalink
added FreeSans.ttf as default font
Browse files Browse the repository at this point in the history
  • Loading branch information
huceke committed Aug 2, 2012
1 parent e77ae3d commit 94060ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Binary file added fonts/FreeSans.ttf
Binary file not shown.
9 changes: 8 additions & 1 deletion omxplayer
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

OMXPLAYER="./omxplayer.bin"
FBSET="/usr/sbin/fbset"
FONT="fonts/FreeSans.ttf"

if [ -e /usr/share/fonts/truetype/freefont/FreeSans.ttf ]; then
FONT="/usr/share/fonts/truetype/freefont/FreeSans.ttf"
else
FONT="fonts/FreeSans.ttf"
fi

if [ -e /usr/bin/omxplayer.bin ]; then
OMXPLAYER="/usr/bin/omxplayer.bin"
Expand All @@ -28,7 +35,7 @@ if [ -e $FBSET ]; then
fbset -xres 1 -yres 1
fi

$OMXPLAYER "$@"
$OMXPLAYER --font $FONT "$@"

if [ -e $FBSET ]; then
fbset -xres ${XRES} -yres ${YRES}
Expand Down

0 comments on commit 94060ba

Please sign in to comment.