3 ms·
I recently fixed a bug in fontforge to do with extracting fonts when parsing pdfs. It took me a whole day because I didn't know what I was doing (haven't worked
by aidos 10y ago
I recently fixed a bug in fontforge to do with extracting fonts when parsing pdfs. It took me a whole day because I didn't know what I was doing (haven't worked with C since Uni over 15 years ago).
Because I didn't think to look into using a debugger, I did it very much the hard way by adding trace statements all over the place to slowly narrow down the code path. I knew I was looking for something like that looked like an iteration typo, but it was a large unfamiliar codebase so it tok a long time.
Got there in the end! Probably 2 days of work start to finish for a 1 character fix. Classic.
I will definitely be starting by re-learning to use a step debugger in C next time I'm in the same position.
https://github.com/fontforge/fontforge/pull/3050/commits/e4b746c71eaa8b747220cf93fc380f9dbd0a835d https://github.com/fontforge/fontforge/pull/3050/commits/e4b...