Hello Thomas, > >>>Another one: I also want to load a TTF from memory/resources. > >>> > >>> > >>Is there a > >> > >> > >>>way to do it or do I have to derive and implement my own font loading > >>>(AFAIR it's just a FT_New_Memory_face(buf) instead of FT_New_face > >>>(file) with freetype). > >>> > >>> > >>I can't answer that one. Patrick? > >> > >> > > > >Which text code do you actually use: > > > >OpenSG/Source/Experimental/Text > >OpenSG/Source/Contrib/FTGLText > >OpenSG/Source/System/Text > > > >Bye, > > > >Patrick > > > > > I use the System/Text implementation (isn't this the only option for > win32?)
Ok, the problem with the code in System/Text is that it is based on Freetype only when compiling on Linux/Unix systems. On Windows and MacOS, it is based on the native APIs of these operating systems. Therefore, the current API of System/Text is the least common denominator of these three different APIs. Whenever we add a new feature, we have to find an implementation for all three APIs. That makes it a little bit difficult to find a quick solution for your problem. The Windows and MacOS APIs allow to load a font from memory into the font server, but they do not allow to open the font directly, you still have to request the font from the font server by specifying its name. In contrast, when using Freetype, you get a direct reference to the font when you load it from memory. It's not an easy task to squeeze these different behaviours into a common OpenSG API. For this reason it is not implemented yet (and I do not expect it to be implemented in the very near future). Bye, Patrick ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
