Forum > LazUtils

[Solved][LazFreeType]How to interpolate a point not on the curve?

**zamtmn**:

As I understand it in the TTF fonts order Bezier curve is not limited. There may be three or more points not on the curve. Built in LazFreeType tools for interpolating Bezier curves I have found. Interpolation to be done by himself or have a ready method in LazUtils?

In the screenshot "x" marked point on the curve, "o" - not on the curve.

**circular**:

You mean you need a function do compute those ?

Yes, there are built in functions in LazFreeType, but not easy to use. To my knowledge, there are no independant function, and Bezier functions generally have 1 or 2 control points.

**zamtmn**:

>>Built in LazFreeType tools for interpolating Bezier curves I have found

Sorry for my english (google.translate). I not found.

>>You mean you need a function do compute those ?

Yes

>>Yes, there are built in functions in LazFreeType, but not easy to use

Where are they?

**circular**:

I suppose it is the Split_Bezier method in TTProfile unit, but I'm not sure how it works.

**zamtmn**:

Thanks. Мethods from the TTProfile unit too complicated for me. I did my implementation Bezier

>> and Bezier functions generally have one or two control points.

In cases when there is 2 or more points "not on curve", between them need generate a point "on curve." It turned out that the Bezier curves in TTF always quadratic

Navigation

[0] Message Index

[#] Next page