FLTK logo

[fltk.general] Deficiencies in Fl_SVG_Image

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.general  ]
 
[ Previous Message ] [ New Message | Reply ] [ Next Message ]

Deficiencies in Fl_SVG_Image "'pvr... 13:31 Oct 04  
 
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?

I attach the various SVG files  of concern.

Regards 
Phil Rose,


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/429a644c-7241-459c-905b-fd6f9f49d952n%40googlegroups.com.
[ Direct Link to Message ]
 
     
[ Previous Message ] [ New Message | Reply ] [ Next Message ]
 
 

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'.