Better HN
topnewbestaskshowjobs
Log inSign up

char101

3 karma · joined Jul 4, 2013 (13y ago) · 4 submissions

Submissions

comment 3y ago · link · parent

Doesn't appear in gVim on Windows, need to set the panose attribute first:

  from fontTools import ttLib
  from path import Path

  output_dir = Path('mono')
  for file in Path('.').files('*.otf'):
      print(file)
      font = ttLib.TTFont(file)
      font['post'].isFixedPitch = 1
      font['OS/2'].panose.bProportion = 9
      font.save(output_dir / file.name)
      font.close()

comment 3y ago · link · parent

Because life is not a technical problem but a socio-economic problem where we have little control and everything is uncertain.

comment 4y ago · link · parent

Another tip: use https://github.com/sfu-db/connector-x to load database query result to pandas without memory copy resulting in faster operation.

comment 13y ago · link · parent

M+mn

Sample: http://i.imgur.com/cJaXfe5.png

http://mplus-fonts.sourceforge.jp/