[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
font loading error messages?
From: tj ####@####.#### Date: 17 Sep 2004 23:20:45 +0100 Message-Id: <414B6329.5050109@comcast.net> Why do I always get font "not found" message. even in the fontdemo app where it loads times.ttf I get: fnt_createfont: times.ttf,3 not found pcf_createfont: times.ttf,3 not found fnt_createfont: times.ttf,4 not found pcf_createfont: times.ttf,4 not found fnt_createfont: times.ttf,5 not found pcf_createfont: times.ttf,5 not found fnt_createfont: times.ttf,6 not found pcf_createfont: times.ttf,6 not found fnt_createfont: times.ttf,7 not found pcf_createfont: times.ttf,7 not found Why do I get thesse message? Even in my own app I load .pcf fonts. I get these type message even though the fonts are loaded by GrCreateFont() and work. tj | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] font loading error messages?
From: Hinko Kocevar ####@####.#### Date: 17 Sep 2004 23:40:22 +0100 Message-Id: <414B67D2.6080809@iskramedical.si> tj wrote: > Why do I always get font "not found" message. even in the fontdemo app > where it loads times.ttf I get: > > fnt_createfont: times.ttf,3 not found > pcf_createfont: times.ttf,3 not found > fnt_createfont: times.ttf,4 not found > pcf_createfont: times.ttf,4 not found > fnt_createfont: times.ttf,5 not found > pcf_createfont: times.ttf,5 not found > fnt_createfont: times.ttf,6 not found > pcf_createfont: times.ttf,6 not found > fnt_createfont: times.ttf,7 not found > pcf_createfont: times.ttf,7 not found > > Why do I get thesse message? > check engine/font_freetype2.c where you'll get some hint on where the enginr looks for fonts. You need either MWFONTS pointing to your font dir or copy fonts to FREETYPE_FONT_DIR. > Even in my own app I load .pcf fonts. I get these type message even > though the fonts are loaded by GrCreateFont() and work. > PCF are different from ttf... regards, h -- hinko <dot> kocevar <at> iskramedical <dot> si Hinko Kocevar, developer Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU "Aì rén" | [Analects XII:22] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] font loading error messages?
From: tj ####@####.#### Date: 18 Sep 2004 01:12:45 +0100 Message-Id: <414B7D69.4070207@comcast.net> Hinko Kocevar wrote: > tj wrote: > >> Why do I always get font "not found" message. even in the fontdemo >> app where it loads times.ttf I get: >> >> fnt_createfont: times.ttf,3 not found >> pcf_createfont: times.ttf,3 not found >> fnt_createfont: times.ttf,4 not found >> pcf_createfont: times.ttf,4 not found >> fnt_createfont: times.ttf,5 not found >> pcf_createfont: times.ttf,5 not found >> fnt_createfont: times.ttf,6 not found >> pcf_createfont: times.ttf,6 not found >> fnt_createfont: times.ttf,7 not found >> pcf_createfont: times.ttf,7 not found >> >> Why do I get thesse message? >> > > check engine/font_freetype2.c where you'll get some hint on where the > enginr looks for fonts. You need either MWFONTS pointing to your font > dir or copy fonts to FREETYPE_FONT_DIR. > >> Even in my own app I load .pcf fonts. I get these type message even >> though the fonts are loaded by GrCreateFont() and work. >> > > PCF are different from ttf... > > regards, > h But, nano-X is finding, creating and using the fonts. So, if they are being found, why the error messages? tj | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] font loading error messages?
From: Hinko Kocevar ####@####.#### Date: 18 Sep 2004 09:17:05 +0100 Message-Id: <414BEEFE.1000500@iskramedical.si> tj wrote: > > But, nano-X is finding, creating and using the fonts. So, if they are > being found, why the error messages? > So you are saying you can see ttf fonts displayed? I that case your ttf font support is OK. I kinda didn't read your first post carefully and concluded that you lack correct ttf font location. After giving it a second look I think this errors are harmless and appear due to HAVE_FNT_SUPPORT and HAVE_PCF_SUPPORT being defined and if you look at engine/devfont.c those are evaluated before the HAVE_FREETYPE_SUPPORT and HAVE_FREETYPE_2_SUPPORT. I don't know what font support you enabled besides ttf support, but if() in both FNT and PCF case above avalutes to true and since you are loading ttf and not fnt or pcf they give you error. I'm using only ttf support and don't see the errors. HTH, h -- hinko <dot> kocevar <at> iskramedical <dot> si Hinko Kocevar, developer Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU "Aì rén" | [Analects XII:22] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] font loading error messages?
From: "Greg Haerr" ####@####.#### Date: 18 Sep 2004 18:44:54 +0100 Message-Id: <15a501c49da7$7a228b40$3eba46a6@winXP> : fnt_createfont: times.ttf,3 not found : pcf_createfont: times.ttf,3 not found : Even in my own app I load .pcf fonts. I get these type message even : though the fonts are loaded by GrCreateFont() and work. I should remove these messages. These show because the Microwindows system tries to load the specified font (.pcf) using the .ttf driver first, which of course fails, with the above errmsg. These messages are all DPRINTFs in engine/devfont.c::GdCreateFont(). You can comment them out. I put them in when I was debugging all the font loaders. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |