HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
mattdesl
gl-sprite-text
JavaScript2015–2015
mattdesl / gl-sprite-text

gl-sprite-text

bitmap font rendering for stackgl

2Distinct people
2Mentions
0Explicit recommenders
70GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

bitmap font rendering for stackgl

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by day2 dated mentions

Observed mentions: 2015-01-07 15:31:56 UTC to 2015-01-31 03:06:41 UTC.

012015-01-07 00:00:00 UTC to 2015-01-08 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJan 72015-01-08 00:00:00 UTC to 2015-01-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-09 00:00:00 UTC to 2015-01-10 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-10 00:00:00 UTC to 2015-01-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-11 00:00:00 UTC to 2015-01-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-12 00:00:00 UTC to 2015-01-13 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-13 00:00:00 UTC to 2015-01-14 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-14 00:00:00 UTC to 2015-01-15 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-15 00:00:00 UTC to 2015-01-16 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-16 00:00:00 UTC to 2015-01-17 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-17 00:00:00 UTC to 2015-01-18 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-18 00:00:00 UTC to 2015-01-19 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-19 00:00:00 UTC to 2015-01-20 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJan 192015-01-20 00:00:00 UTC to 2015-01-21 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-21 00:00:00 UTC to 2015-01-22 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-22 00:00:00 UTC to 2015-01-23 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-23 00:00:00 UTC to 2015-01-24 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-24 00:00:00 UTC to 2015-01-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-25 00:00:00 UTC to 2015-01-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-26 00:00:00 UTC to 2015-01-27 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-27 00:00:00 UTC to 2015-01-28 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-28 00:00:00 UTC to 2015-01-29 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-29 00:00:00 UTC to 2015-01-30 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-30 00:00:00 UTC to 2015-01-31 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2015-01-31 00:00:00 UTC to 2015-02-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJan 31

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jan 72015-01-07 00:00:00 UTC2015-01-08 00:00:00 UTC101
Jan 82015-01-08 00:00:00 UTC2015-01-09 00:00:00 UTC000
Jan 92015-01-09 00:00:00 UTC2015-01-10 00:00:00 UTC000
Jan 102015-01-10 00:00:00 UTC2015-01-11 00:00:00 UTC000
Jan 112015-01-11 00:00:00 UTC2015-01-12 00:00:00 UTC000
Jan 122015-01-12 00:00:00 UTC2015-01-13 00:00:00 UTC000
Jan 132015-01-13 00:00:00 UTC2015-01-14 00:00:00 UTC000
Jan 142015-01-14 00:00:00 UTC2015-01-15 00:00:00 UTC000
Jan 152015-01-15 00:00:00 UTC2015-01-16 00:00:00 UTC000
Jan 162015-01-16 00:00:00 UTC2015-01-17 00:00:00 UTC000
Jan 172015-01-17 00:00:00 UTC2015-01-18 00:00:00 UTC000
Jan 182015-01-18 00:00:00 UTC2015-01-19 00:00:00 UTC000
Jan 192015-01-19 00:00:00 UTC2015-01-20 00:00:00 UTC000
Jan 202015-01-20 00:00:00 UTC2015-01-21 00:00:00 UTC000
Jan 212015-01-21 00:00:00 UTC2015-01-22 00:00:00 UTC000
Jan 222015-01-22 00:00:00 UTC2015-01-23 00:00:00 UTC000
Jan 232015-01-23 00:00:00 UTC2015-01-24 00:00:00 UTC000
Jan 242015-01-24 00:00:00 UTC2015-01-25 00:00:00 UTC000
Jan 252015-01-25 00:00:00 UTC2015-01-26 00:00:00 UTC000
Jan 262015-01-26 00:00:00 UTC2015-01-27 00:00:00 UTC000
Jan 272015-01-27 00:00:00 UTC2015-01-28 00:00:00 UTC000
Jan 282015-01-28 00:00:00 UTC2015-01-29 00:00:00 UTC000
Jan 292015-01-29 00:00:00 UTC2015-01-30 00:00:00 UTC000
Jan 302015-01-30 00:00:00 UTC2015-01-31 00:00:00 UTC000
Jan 312015-01-31 00:00:00 UTC2015-02-01 00:00:00 UTC101

What Hacker News says

2 sources
This is actually how Desktop Window Manager (aka "Aero") on Windows and Quartz Compositor on OS X actually work. They're just setup with an orthographic projection and they don't rotate the windows at all. That was actually a bit of a surprise (though I admit it shouldn't have been) with Primrose. If I pick dimensions for the editor that fit the window's aspect ratio, and don't rotate the view at all, then the editor pane can fill the browser window and it looks very natural. I am not positive, as I don't have the spec laying in front of me and it's been a long time since I looked, but I'm pretty sure the HTML5 Canvas API is not hardware accelerated at this time. That is how I do the actual rendering of the text, using Text API. There is another project called fontpath[1] that can read TTF and OTF font files, and another project from the
Read the rest
same developer called gl-sprite-text[2] that can render them as bitmaps to textures. I've been considering converting my rendering over to using it. The process would at least be good practice in decoupling the code a bit more, as I think the tokenizer and keyboard system would be useful in other projects as well. The keyboard code pages aren't yet complete for everyone in the world right now, but I think they go a long way towards making it possible to once and for all make good keyboard interactions in JS. And by completely implementing my own end-around of the browser's own handling, sticking to more of the older primitives, I am actually able to make for more cross browser compatible. I don't know if anyone noticed, but this runs in IE perfectly fine, and I didn't really do anything special to make it so. And if you just run the Canvas on its own, without the WebGL part, it actually runs on some relatively old browsers without any trouble. [1] https://github.com/mattdesl/fontpath [2] https://github.com/mattdesl/gl-sprite-text
In Show HN: Primrose – a text editor that runs in a WebGL texture
Text in WebGL is still really immature. I've done a bit of tinkering with a variety of modules for word-wrapping, etc. None of them are "fully featured" or 100% stable but I have used them in a couple of production environments. https://github.com/mattdesl/fontpath The WebGL module on top of that: https://github.com/mattdesl/gl-sprite-text The main issue I have with most text libraries (like TxtJS) is that they assume 2D canvas, or trivial WebGL applications. The bulk of the text code really just deals with laying out rectangular glyphs; the rendering (whether geometry, bitmaps, SDF, etc) should be separate so the dev can choose the best technique for their app. An example of SDF / fontpath in action: http://mattdesl.github.io/xmas
In Show HN: Primrose – A text editor that draws to Canvas

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.