Resize glyphs in Fontlab using Python

I have Gujarati/ Devnagari Unicode fonts and adding some English glyphs/ diacritics, but need to resize the Uppercase letters to gujarati Pa's dimensions. Can anyone help me write a python script for this? 

i'm using fontlab8

Comments

  • John Hudson
    John Hudson Posts: 3,137
    Why do you need a Python script for this? There are lots of ways you could resize glyphs within FontLab using basic scaling tools, or with Typerig tools.

    If you do need something more complex, I recommend asking in the FontLab Forum.
  • Thomas Phinney
    Thomas Phinney Posts: 2,851
    Just to clarify, both of the approaches mentioned by John above have ways to do such resizing on a selected range of glyphs in your font (or all glyphs, or just one glyph). My usual approach would be to:

    1. measure both glyphs
    2. calculate the % increase you need
    3. select the glyphs you want to scale
    4. and then in FontLab 6+ you would go to Tools > Actions > Basics >Scale and enter that % (be sure to get both horizontal and vertical scaling!)
  • rsdk
    rsdk Posts: 4
    I have to resize about 300 glyphs at once for about 20 fonts