Skip to content

What compression does Nuklear use for fonts? #819

@HappyGlitch

Description

@HappyGlitch

I want to add a font to my project by encoding it in base85 using the function nk_font_atlas_add_compressed_base85. Adding a base85 encoded ttf font in this way results in a segfault, when calling nk_sdl_font_stash_end, which I suppose is because I need to somehow compress the font before encoding it in base85.
Surprisingly this function does not have a non compressed counterpart. I found out it uses a function nk_decompress internally. How should I compress my font, so it can be decompressed using this function? There is no nk_compress.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions