Hacker GitHub

← All repos

vidarh/skrift

View on GitHub ↗ ★ 17 Ruby

A pure Ruby conversion (*not* wrapper) of the libschrift TrueType font renderer

6 mentions on Hacker News by 1 person: 0 stories, 6 comments · first 2023-11-11 · latest 2026-04-19

Mentions per year 6 mentions · busiest year 2024 (3)
20082026
  1. …have no interest in that for my use, and then it turns out rendering TrueType fonts is really easy: https://github.com/vidarh/skrift (Note that this is a port of the C-based renderer libschrift; the Ruby version is smaller, but much less…
    comment by vidarh · 2026-04-19 · in Optimizing Ruby Path Methods
  2. …switcher (also Ruby) depends on pure Ruby X11 bindings, and a pure Ruby TrueType font renderer: https://github.com/vidarh/skrift https://github.com/vidarh/skrift-x11 https://github.com/vidarh/ruby-x11 So does my Ruby terminal (what's on…
    comment by vidarh · 2024-08-22 · in Transformers for Ruby
  3. libschrift is ~1500 lines of C: https://github.com/tomolt/libschrift My Ruby rewrite is ~600 lines: https://github.com/vidarh/skrift Libschrift is very readable. I did my Ruby rewrite basically just top to bottom before reorganizing it.…
    comment by vidarh · 2024-01-03 · in Writing a TrueType font renderer
  4. …out the hinting in a lot of TTF files is pure garbage. [1] https://github.com/tomolt/libschrift [2] https://github.com/vidarh/skrift - X11 integration in https://github.com/vidarh/skrift-x11
    comment by vidarh · 2024-01-01 · in Writing a TrueType font renderer
  5. …about 680 lines of code. I intended to tidy up the API as it's still a bit messy after my rewrite: https://github.com/vidarh/skrift * X11 bindings for Skrift: https://github.com/vidarh/skrift-x11 - these are messy, and I have significant…
    comment by vidarh · 2023-12-19 · in I Love Ruby
  6. …the bitmap fonts and didn't want to add a FreeType dependency (the renderer is ~500 lines of code): https://github.com/vidarh/skrift
    comment by vidarh · 2023-11-11 · in Write your own terminal