You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Wondering if this technique might help alleviate some rendering issues with glyphs from the harfbuzz branch of fontserver or if there's a simpler issue causing this problem.
Nope, this looks like a different issue. It's likely that this is either a blending issue, or an issue with copying the individual glyphs to the shared glyph atlas.
The Valve paper is deeply frustrating because they deliberately hid their technique for doing sharp corners, and pretended it's simple (IIRC it's a single line explanation, which is simply wrong).
Oooh, neat find @kkaefer, I can look at this in the near future alongside other node-fontnik work.
@mourner Our current default resolution and granularity work well for simple fonts, but it's possible we could use this to generate sharper glyphs at comparable file sizes (smaller than some of my experiments in mapbox/node-fontnik#38 for instance), particularly for swooping script fonts.
Activity
mikemorris commentedon Apr 22, 2014
Wondering if this technique might help alleviate some rendering issues with glyphs from the harfbuzz branch of fontserver or if there's a simpler issue causing this problem.
24px SDF bitmaps

48px SDF bitmaps

kkaefer commentedon Apr 22, 2014
Nope, this looks like a different issue. It's likely that this is either a blending issue, or an issue with copying the individual glyphs to the shared glyph atlas.
mikemorris commentedon Apr 22, 2014
@kkaefer Ah, looks like it might just be a discrepancy between the SDF code in fontserver and adding glyphs to the glyph atlas, thanks for pointing me in that direction.
kkaefer commentedon Jul 3, 2014
This is described in http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.154.9948
kkaefer commentedon Jul 29, 2014
never mind, it's not. Here's a reddit thread that gives a little background: http://www.reddit.com/r/gamedev/comments/2879jd/just_found_out_about_signed_distance_field_text/
mattdesl commentedon May 7, 2015
For reference -
https://lambdacube3d.wordpress.com/2014/11/12/playing-around-with-font-rendering/
jfirebaugh commentedon Mar 23, 2016
No current plans to pursue this.
kkaefer commentedon Apr 28, 2016
See https://github.com/Chlumsky/msdfgen for code that generates these SDFs.
mourner commentedon Apr 28, 2016
@kkaefer is there a considerable file size difference between mono and multi SDF textures?
mikemorris commentedon Apr 28, 2016
Oooh, neat find @kkaefer, I can look at this in the near future alongside other node-fontnik work.
@mourner Our current default resolution and granularity work well for simple fonts, but it's possible we could use this to generate sharper glyphs at comparable file sizes (smaller than some of my experiments in mapbox/node-fontnik#38 for instance), particularly for swooping script fonts.
kkaefer commentedon Jun 29, 2016
Thesis is at https://dspace.cvut.cz/bitstream/handle/10467/62770/F8-DP-2015-Chlumsky-Viktor-thesis.pdf