Skip to content

Commit db0fc1e

Browse files
committed
text-freetype2: Increase glyph atlas size
Increase the glyph texture atlas from 2048x2048 to 4096x4096. At larger font sizes the atlas overflows after caching standard Latin glyphs, causing cache_glyphs to break early with "Out of space". Uncached glyphs are then silently skipped in fill_vertex_buffer, producing missing characters.
1 parent 4d3794e commit db0fc1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/text-freetype2/text-freetype2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ MODULE_EXPORT const char *obs_module_description(void)
3333
return "FreeType2 text source";
3434
}
3535

36-
uint32_t texbuf_w = 2048, texbuf_h = 2048;
36+
uint32_t texbuf_w = 4096, texbuf_h = 4096;
3737

3838
static const char *ft2_source_get_name(void *unused);
3939
static void *ft2_source_create(obs_data_t *settings, obs_source_t *source);

0 commit comments

Comments
 (0)