diff --git a/data/fontrepo/scripts/compile.php b/data/fontrepo/scripts/compile.php index 98c74f4f..008988fc 100644 --- a/data/fontrepo/scripts/compile.php +++ b/data/fontrepo/scripts/compile.php @@ -16,6 +16,8 @@ foreach ( glob( '../fonts/*/font.ini' ) as $inifile ) { $languages = array(); $version = null; + $dir = dirname( $inifile ); + foreach ( $conf as $fontname => $font ) { if ( isset( $font['languages'] ) ) { $languages = explode( ',', $font['languages'] ); @@ -52,8 +54,6 @@ foreach ( glob( '../fonts/*/font.ini' ) as $inifile ) { $list['fonts'][$fontname]['fontstyle'] = $font['fontstyle']; } - $dir = dirname( $inifile ); - if ( isset( $font['ttf'] ) ) { $list['fonts'][$fontname]['ttf'] = basename( $dir ) . '/' . $font['ttf']; }