Permalink
Browse files

added mongoluseg.py

  • Loading branch information...
1 parent 1c0e4cb commit 6e1363ccd169a01211e13faac7feaa50f5dd16f6 @natsag2000 committed Sep 27, 2010
Showing with 33 additions and 0 deletions.
  1. +5 −0 fontcreator/config.cfg
  2. +28 −0 fontcreator/mongoluseg.py
View
@@ -13,3 +13,8 @@ BASE_FONT = resources/DejaVuSans.sfd
# place where glyphs are
GLYPHS_DIR = /tmp/svgs
+
+[Useg zurah]
+USEG_ATOM = misc/useg_zurlaga_atom
+USEG_DESC = misc/useg_zurlaga_desc
+GLYPH_OUT = tmp/glyphs
View
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+#
+# crazy font creator
+#
+import ConfigParser
+
+
+def main():
+ # read config files
+ config = ConfigParser.RawConfigParser()
+ config.read("config.cfg")
+ # TODO: check if they exist!
+ USEG_ATOM = config.get('Useg zurah', 'USEG_ATOM')
+ USEG_DESC = config.get('Useg zurah', 'USEG_DESC')
+ GLYPH_OUT = config.get('Useg zurah', 'GLYPH_OUT')
+ # read atom and desc
+ usegatoms = readlines(USEG_ATOM)
+ usegdesc = readlines(USEG_DESC)
+ print(usegatoms)
+
+def readlines(FileName):
+ f = file(FileName, 'r')
+ lines = f.readlines()
+ f.close()
+ return lines
+
+if __name__=='__main__':
+ main()

0 comments on commit 6e1363c

Please sign in to comment.