News for hackers. Stuff that matters.

char101

Re:Monaspace on Saturday November 11, 2023 @12:49AM (#38227948)
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()
Re:If you’re so smart, how come you’re not happy? on Wednesday November 30, 2022 @11:22AM (#33802993)
Because life is not a technical problem but a socio-economic problem where we have little control and everything is uncertain.
Another tip: use https://github.com/sfu-db/connector-x to load database query result to pandas without memory copy resulting in faster operation.