What's the status of FreeType on z/os?
There are a number of previous posts that indicate that it should work, but I'm having trouble loading a truetype font. I'm trying to load the Bitstream Vera.ttf TrueType font, which I've copied in binary to my z/os machine. I've got the FT_DEBUG_LEVEL_ERROR and FT_DEBUG_LEVEL_TRACE options turned on in my freetype build, but when I run a small program like

#include <ft2build.h>
#include FT_FREETYPE_H


int main(int argc, const char* argv[]) {
        FT_Library library;
        FT_Init_FreeType( &library );

        FT_Face face;
FT_Error error = FT_New_Face(library, "/u/wpcuk02/fonts/Vera.ttf", 0, &face);
        printf("FT_New_Face returned %d\n", error);

}

I get

FT_Stream_Open: could not open `/u/wpcuk02/fonts/._Vera.ttf'
FT_Stream_Open: could not open `/u/wpcuk02/fonts/%Vera.ttf'
FT_Stream_Open: could not open `/u/wpcuk02/fonts/.AppleDouble/Vera.ttf'
FT_Stream_Open: could not open `/u/wpcuk02/fonts/Vera.ttf/rsrc'
FT_Stream_Open: could not open `/u/wpcuk02/fonts/resource.frk/Vera.ttf'
FT_Stream_Open: could not open `/u/wpcuk02/fonts/.resource/Vera.ttf'
FT_New_Face returned 2

It is possible that I've not built freetype right, because I've made some Makefiles to build it that fit in with our build system, but I've managed on the PC and it all works wonderfully.

Any ideas what might be wrong, or how I can get further with this?



_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to