Added on the fly glyph rendering to FreeTypeFontGenerator. #2973

merged 1 commit into from Mar 24, 2015


None yet

1 participant


This allows FreeTypeFontGenerator to create a BitmapFontData that renders glyphs as they are encountered so we can support fonts for languages that have many glyphs. See FreeTypeIncrementalTest.

The red boxes at the top are the glyph atlas pages, purposefully made tiny for testing. Better packing (a skyline variant) can be implemented in the future, for now it uses PixmapPacker as it used to.

I don't believe this breaks much, if anything, except that BitmapFont regions changes from TextureRegion[] to Array<TextureRegion> so adding a region on the fly is easier.

Related to #1589.

@NathanSweet NathanSweet merged commit d841924 into libgdx:master Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment