Re: [ft] display string

2010-02-02 Thread Werner LEMBERG
When i am using *arial.ttf regular* file as input to convert the given string. But i am not seeing them arranged in same line. How to calculate baseline and how to show the images accordingly. The most basic example file, example1.c, demonstrates how to do it correctly. Werner

Re: [ft] ftgrays.c problem

2010-02-02 Thread Werner LEMBERG
in function gray_render_cubic() level = 1; da= da / ras.cubic_level; db= db / ras.conic_level; while ( da 0 || db 0 ) { da = 2; db = 3; level++; } I think da should be divided by conic_level and db by cubic_level according to the

[ft] distance between characters

2010-02-02 Thread rsr
Hi, I would like to calculate the distance between one character to another char given a string,while converting to bitmap.How can i get the position of next character inorder to display with the same space as input string is? Could anyone please explain me,how to do this? Thanks

Re: [ft] distance between characters

2010-02-02 Thread Werner LEMBERG
I would like to calculate the distance between one character to another char given a string, while converting to bitmap. How can i get the position of next character inorder to display with the same space as input string is? You can't. FreeType expects characters as input and outputs glyph