(font_in, font_out, unicodes, opts)
| 171 | |
| 172 | |
| 173 | def subset_font(font_in, font_out, unicodes, opts): |
| 174 | font_out_raw = font_out |
| 175 | if not font_out_raw.endswith('.ttf'): |
| 176 | font_out_raw += '.ttf' |
| 177 | subset_font_raw(font_in, font_out_raw, unicodes, opts) |
| 178 | if font_out != font_out_raw: |
| 179 | os.rename(font_out_raw, font_out) |
| 180 | # 2011-02-14 DC this needs to only happen with --namelist is used |
| 181 | # os.rename(font_out_raw + '.name', font_out + '.name') |
| 182 |
no test coverage detected
searching dependent graphs…