|
Packit |
7179fe |
#!/usr/bin/env fontforge
|
|
Packit |
7179fe |
|
|
Packit |
7179fe |
# Copyright (C) 2012, Aravinda VK <hallimanearavind@gmail.com>
|
|
Packit |
7179fe |
# http://aravindavk.in
|
|
Packit |
7179fe |
|
|
Packit |
7179fe |
# This program is free software: you can redistribute it and/or modify
|
|
Packit |
7179fe |
# it under the terms of the GNU General Public License as published by
|
|
Packit |
7179fe |
# the Free Software Foundation, either version 3 of the License, or
|
|
Packit |
7179fe |
# (at your option) any later version.
|
|
Packit |
7179fe |
|
|
Packit |
7179fe |
# This program is distributed in the hope that it will be useful,
|
|
Packit |
7179fe |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
7179fe |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
7179fe |
# GNU General Public License for more details.
|
|
Packit |
7179fe |
|
|
Packit |
7179fe |
# You should have received a copy of the GNU General Public License
|
|
Packit |
7179fe |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
7179fe |
|
|
Packit |
7179fe |
# script file for FontForge for TTF generation
|
|
Packit |
7179fe |
# usage:
|
|
Packit |
7179fe |
# chmod +x generate.pe
|
|
Packit |
7179fe |
# ./generate.pe *.sfd
|
|
Packit |
7179fe |
|
|
Packit |
7179fe |
if ($version < "20061220")
|
|
Packit |
7179fe |
Error("Your version of FontForge is too old - 20061220 or newer is required");
|
|
Packit |
7179fe |
endif
|
|
Packit |
7179fe |
i = 1
|
|
Packit |
7179fe |
while ( i < $argc )
|
|
Packit |
7179fe |
Open($argv[i], 1)
|
|
Packit |
7179fe |
#Use gen_flags=Defualt fmflags value as -1
|
|
Packit |
7179fe |
gen_flags = -1
|
|
Packit |
7179fe |
Generate($fontname + ".ttf", "", gen_flags)
|
|
Packit |
7179fe |
i++
|
|
Packit |
7179fe |
endloop
|