Nconvert don't read my TTF font

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
KameSennin
Posts: 3
Joined: Fri Dec 09, 2005 6:58 pm

Nconvert don't read my TTF font

Post by KameSennin »

Hi. congratulations for this great tool :D

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. :shock:

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.
User avatar
xnview
Author of XnView
Posts: 46605
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Nconvert don't read my TTF font

Post by xnview »

KameSennin wrote:Hi. congratulations for this great tool :D

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. :shock:

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
Pierre.
KameSennin
Posts: 3
Joined: Fri Dec 09, 2005 6:58 pm

Re: Nconvert don't read my TTF font

Post 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.
User avatar
xnview
Author of XnView
Posts: 46605
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Nconvert don't read my TTF font

Post 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
Pierre.
KameSennin
Posts: 3
Joined: Fri Dec 09, 2005 6:58 pm

Re: Nconvert don't read my TTF font

Post 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.
jakebarnes
Posts: 2
Joined: Thu Jun 03, 2010 7:43 pm

Re: Nconvert don't read my TTF font

Post by jakebarnes »

How does one register a font on a Linux web server? We are not using a Windows system.
Post Reply