AmigaPorts / ACE

Amiga C Engine
Mozilla Public License 2.0
156 stars 26 forks source link

font_conv vector size issue #202

Closed NZjeux26 closed 1 year ago

NZjeux26 commented 1 year ago

When converting ttf to png, when manually adding which chars you want to use, anything above 27chars seems to hit a size limit in the vector that the inputs are stored in. See below error: ./font_conv /home/nzjeux/local/AmigaACEPlay/amiga4ever_pro.ttf dir -out /home/nzjeux/local/AmigaACEPlay/fonts -size 8 -chars " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.:,;" terminate called after throwing an instance of 'std::length_error' what(): cannot create std::vector larger than max_size() Aborted (core dumped)

tehKaiN commented 1 year ago

Looks like algorithm for trimming each glyph from extra left/right space was busted!