Re: [ft] display string
> 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 ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype
Re: [ft] ftgrays.c problem
> 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 context, or my mistake. Hmm. Can you explain how you come to this conclusion? I don't understand the heuristics either (this is one of the many speed-up tricks left undocumented by David). If you have a cubic equation like ax³ + bx² + cx + d my feeling is that `da' corresonds to the cubic term and `db' to the quadratic one. To be more precise: Have you done some comparisons (e.g., using a profiler) or experienced better rendering results if you exchange those two values? Werner ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype
Re: [ft] offset x offset y values?
> I would like to know about offset x, offset y, advance x and > advance y? Could any one please tell me where can i find more info > about those? Read the FreeType tutorials. Werner ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype
[ft] distance between characters
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 rsr___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype
Re: [ft] distance between characters
> 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 images. `The same space as input string' is thus meaningless. After some thinking I'm no longer sure at all what you want to know... Please give an example. Werner ___ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype