Open MathemanFlo opened 3 years ago
The reason for the freeze is probably that Wingdings and Webdings do not include the glyph "Abg" for preview.
The reason for the freeze is probably that Wingdings and Webdings do not include the glyph "Abg" for preview.
I also thought that this is the case but I doubt it, because it also happens for Calibri, which is a "normal" font family and Webdings/Wingdings contains glyphs for A,b and g but they are symbols like a bike in case of b in Webdings.
Some additional details
RangeError: Start offset undefined is outside the bounds of the buffer
at new Uint8Array (<anonymous>)
at new haxe_io_Bytes (<anonymous>:4560:12)
at Function.alloc (<anonymous>:4528:23)
at kha_Font._get (<anonymous>:47109:23)
at kha_Font.width (<anonymous>:47126:15)
at Function.makeFontPreview (<anonymous>:14836:21)
at <anonymous>:24799:26
at update (<anonymous>:5717:7)
at kha_TimeTask.task (<anonymous>:5430:4)
at Function.executeTimeTasks (<anonymous>:5359:76)
Thus it is probably a kha bug.
ArmorPaint version: ArmorPaint.org - v0.9 (2021-10-05) - bd87056 Windows - Direct3D11
Issue description: ArmorPaint freezes while importing fonts like Wingdings oder Webdings. It also happens if I import the whole Calibri font family
Steps to reproduce: