Closed RoelN closed 4 years ago
@pascalw Is this worth adding a test for?
Yeah I would add a test for this. Should take a few minutes only and could prevent surprises down the road.
Need to add a test font with a custom text first, these are quite rare 😆
Ok well if it that's difficult I'm not opposed to not covering it.
@pascalw Added a name table entry to our test font anyway. Then found out Font.js does indeed return strings intermixed with x00
bytes. I'm now stripping them out on our side, until https://github.com/Pomax/Font.js/issues/74 is addressed.
~Will fix the conflict after https://github.com/Wakamai-Fondue/wakamai-fondue-engine/pull/9 is merged.~
Nice catch @RoelN !
Based on https://github.com/Wakamai-Fondue/wakamai-fondue-engine/pull/9, merge that first