diff --git a/tools/darwin/startup.sh b/tools/darwin/startup.sh index 86b6e1652f4..d9e45ed74b2 100644 --- a/tools/darwin/startup.sh +++ b/tools/darwin/startup.sh @@ -1,6 +1,6 @@ #!/bin/sh -SUPERTUX_BUNDLE="`echo "$0" | sed -e 's/\/Contents\/MacOS\/SuperTux//'`" +SUPERTUX_BUNDLE="$(echo "$0" | sed -e 's/\/Contents\/MacOS\/SuperTux//')" SUPERTUX_RESOURCES="$SUPERTUX_BUNDLE/Contents/Resources" export "DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:$SUPERTUX_RESOURCES/MacOS" diff --git a/tools/font-generator.py b/tools/font-generator.py index d33c02243e2..1d750dd08fa 100755 --- a/tools/font-generator.py +++ b/tools/font-generator.py @@ -68,7 +68,7 @@ def draw_glyphs(self, cr, cols, rows): cr.select_font_face(self.font_family, cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_NORMAL) cr.set_font_size(self.font_size) - fascent, fdescent, fheight, fxadvance, fyadvance = cr.font_extents() + fascent, fdescent, fheight, fyadvance = cr.font_extents() print self.glyph_height, fheight @@ -78,7 +78,7 @@ def draw_glyphs(self, cr, cols, rows): if idx < len(self.letters): letter = self.letters[idx] - xbearing, ybearing, width, height, xadvance, yadvance = cr.text_extents(letter) + xbearing, ybearing, width, height, yadvance = cr.text_extents(letter) #cr.move_to(cx + 0.5 - xbearing - width / 2, # 0.5 - fdescent + fheight / 2)