Most should. It's pretty standard as far as resource loading libs go. At least from what I've seen.
Is there some way to get a list of all the libs you're using so that I could look into fixing them adding this functionality to them?
Here is a summary of the libs and their features:
stb_image (sf::Image)
LoadFromFile and LoadFromMemory
FreeType (sf::Font)
LoadFromFile, LoadFromMemory and LoadFromCustomStream (I haven't looked at the details but it looks ok)
OpenGL (sf::Shader)
LoadFromString, but this one is special (only one format to support, and files are relatively small) and doesn't need to be compatible with the custom stream feature
libsndfile (sf::SoundBuffer & sf::Music)
LoadFromFile and LoadFromVirtualIO (based on custom
filelength, seek, read, write and
tell functions)
That seems unreasonable. Especially if you have exceedingly large fonts. The MS Ariel Unicode font is several dozen (hundred? I haven't checked lately) MB, most of which will go unused in programs.
Why is there such a limitation here? What can you do with a memory buffer that you can't do with a seek-and-read interface?
I only meant that the source has to be available as long as the font is used, whether it is a file or a custom stream. So I guess it would be compatible with the feature indeed.
I hope I don't sound like I'm nagging. I think this is a really important feature for a robust library and I really would like to see it implemented. Like I said I'm willing to assist by modifying the libs in question to support it. All you'd really have to do is write a few new LoadFrom functions that wrap around the added interface.
Sometimes I don't really have the time to focus on such features and investigate them deeply, so I really appreciate your help.
I have nothing against adding it to SFML, but I must tell you that I'm very picky about design (99% of features are rejected because of design issues, not technical ones), so before you start working on it we should talk about the public API that would result from this feature, and make sure that I'm 100% happy with it