Page 1 of 1
Nconvert don't read my TTF font
Posted: Fri Dec 09, 2005 7:30 pm
by KameSennin
Hi. congratulations for this great tool
I try to use Nconvert v4.51 to add some text to a PNG image, for example:
NCONVERT -text_font R:\FONT.TTF 64 -text_color 255 255 255 -text_flag bottom-right -text "Loading ... " -out png -o R:\LOAD.PNG R:\LOAD.PNG
And I see some strange things, if I put the text arguments with other order, Nconvert fails to made color, position, or some other action. Other minor problem is if I use
-text_flag center, I don't get a correct centered text.
The main problem is, I can't load any TTF font using
-text_font, always it show the default font.
Any help or comment are most welcome. Thanks.
Re: Nconvert don't read my TTF font
Posted: Sat Dec 10, 2005 9:18 am
by xnview
KameSennin wrote:Hi. congratulations for this great tool
I try to use Nconvert v4.51 to add some text to a PNG image, for example:
NCONVERT -text_font R:\FONT.TTF 64 -text_color 255 255 255 -text_flag bottom-right -text "Loading ... " -out png -o R:\LOAD.PNG R:\LOAD.PNG
And I see some strange things, if I put the text arguments with other order, Nconvert fails to made color, position, or some other action. Other minor problem is if I use
-text_flag center, I don't get a correct centered text.
The main problem is, I can't load any TTF font using
-text_font, always it show the default font.
Any help or comment are most welcome. Thanks.
In text_font setting you must set a font name not a file
Re: Nconvert don't read my TTF font
Posted: Sun Dec 11, 2005 10:13 pm
by KameSennin
xnview wrote:In text_font setting you must set a font name not a file
Thanks for your reply, but if I use the font name, I still get the default font, and it does not matter if nconver.exe and the .ttf font are under the same folder or not.
Maybe a problem of the order of the arguments ?
Thanks.
Re: Nconvert don't read my TTF font
Posted: Mon Dec 12, 2005 7:30 am
by xnview
KameSennin wrote:xnview wrote:In text_font setting you must set a font name not a file
Thanks for your reply, but if I use the font name, I still get the default font, and it does not matter if nconver.exe and the .ttf font are under the same folder or not.
Maybe a problem of the order of the arguments ?
Thanks.
Which font do you use?? The ttf font must be in standard windows font folder
Re: Nconvert don't read my TTF font
Posted: Tue Dec 13, 2005 5:47 am
by KameSennin
xnview wrote:Which font do you use?? The ttf font must be in standard windows font folder
I use
Chiller.ttf under C:\WINDOWS\FONT, but now I found some solution: Chiller it was
not installed like Windows font. After the install, Nconver can read this font.
I asume Nconvert read the font name from the registry, but I would like to see a new way to read font directly from the filename & path, this can help in other cases, for example, randomly select and copy some .ttf font to other location, and later use this font to create text over a image file:
RANDFILE %ART%\FONT\*.TTF %TEMP%\FONT.TTF
NCONVERT -text_font %TEMP%\FONT.TTF 32 -text_color 255 255 255 -text_flag top-left -text "LOADING..." -out png -o %TEMP%\LOAD.PNG %TEMP%\LOAD.PNG
But this task is not posible if Nconver cannot read fonts directly from a file name.
Thanks for your help.
Re: Nconvert don't read my TTF font
Posted: Thu Jun 03, 2010 7:46 pm
by jakebarnes
How does one register a font on a Linux web server? We are not using a Windows system.