I know these are documented, but are they going to be addressed?
I have downloaded flag image files from a couple of github repos (flag-icons and country-flags) and the US flag in both these will not render properly. The are no stars on the Stars and Stripes. The Chinese flag also does not draw properly. I initially thought that it was because I was trying to draw them onto too small a widget (66x50px) but after an afternoon messing about rasterising them into a large image and then copying that onto a small one with hardly any success I saw the documented deficiencies.
I have implemented a work-round by converting the SVG files to a 300px high PNG files and loading these into my app. But this may look messy if I ever want to blow the images up greater than 300 px high. Also I lose the benefit of scalability that SVG gives.
As an aside the Guam flag in the country-flags is very large (several hundred thousand pixels wide and high as the design is very intricate) and running normalize() on the raw image raised an exception. Maybe there should be some bound checking?
Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.