Altera_Forum
Honored Contributor
16 years agoTruetype font loading problem
I am trying to load in a truetype font, which is the "lt1-r-omega-serif.ttf" that is in the build. This font is located in "/usr/fonts/truetype/lt1-r-omega-serif.ttf" on the target system.
This is from adding the FreeType 2 fonts in the build with make menuconfig. I have created a simple application to put "hello world" on the screen using this font. the code has the line: font = grcreatefont("/usr/fonts/truetype/lt1-r-omega-serif.ttf",3,null); Compile seems to be fine, but when I run this application on the target system, the following error occurs: fnt_createfont: /usr/fonts/truetype/lt1-r-omega-serif.ttf,3 not found Does anyone know how I can get this routine to find the font? Thanks, Scott