Hi,
I have been trying to update a project from SDK and Toolchain 2.2.0 to 2.5.0 for both.
But I find that I get an error extracting fonts.
File "/home/user/ncs/v2.5.0/zephyr/scripts/build/gen_cfb_font_header.py", line 80, in extract_font_glyphs
fw, fh = font.getsize(chr(i))
AttributeError: 'FreeTypeFont' object has no attribute 'getsize'
It seems to me the reason is that getsize no longer exists in Python PIL package. At some point after Toolchain 2.2.0, PIL version 10 seems to be required, which no longer implements this method.
See: https://pillow.readthedocs.io/en/stable/deprecations.html#font-size-and-offset-methods
I tried editing the code, exchanging the method with the suggested code, but it seems to not give the exact same output anymore as I get an error further on... this could have been my error, never the less the issue remains in toolchain 2.5.0.