fontstash
fontstash copied to clipboard
Light-weight online font texture atlas builder
According to https://www.fontsquirrel.com/fonts/droid-serif the droid fonts are to be distributed under the Apache v2 license.
When calculating the advance in fons__getQuad(), on line 1244: ```c *x += (int)(glyph->xadv / 10.0f + 0.5f); ``` Shouldn't the spacing be added somewhere like it is on line 1203:...
Is there any chance someone could either add an OpenGL 3 version of the example application or tweak the existing one to work with the new header? A naive substitution...
Hi People, please has someone working simple example for android? Or if is someone interested in help then I can create android container for testing with ndk and opengl es...
Hi, I have used a previous fork of font-stash from here: https://github.com/akrinke/Font-Stash/ I used it at the time because it added two useful features we needed (taken from the readme):...
In video games development one often needs to render arbitrary icons/images as part of text (game currency icons, game fractions icons, etc). Rendering them outside of text layout system is...
uses the builtin sdf generation in stb_truetype, disabled when using freetype
I use fontstash to draw a str = @"i:ə:ɔ:u:ɑ:i:ɜ:ɔ:u:ɑ:iɜɔuɑ", the glyph of "ɜ" display wrong. use "PingFangSC-Regular"  use "SFUIText-Light"  use "HelveticaNeue"  addtional, I suggest updating stb_trunetype to...
static int fons__tt_init() { FT_Error ftError; FONS_NOTUSED(context); ---- wrong. ftError = FT_Init_FreeType(&ftLibrary); return ftError == 0; }
why need to xadvance * 10.0f? glyph->xadv = (short)(scale * advance * 10.0f) *x += (int)(glyph->xadv / 10.0f + 0.5f);