freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] cubic clean up


From: Алексей Подтележников
Subject: [ft-devel] cubic clean up
Date: Mon, 8 Nov 2010 19:50:48 -0500

Hi,

This patch should not be controversial. It simplifies the code.
1) It replaces 2 comparisons in FT_MAX and FT_MIN with a single one.
2) It implements a simpler and better check for closeness of control
points to the chord

There is no gain or loss in speed and the quality is the same
(see images).

More on 2). Currently the control points are required to be between
the parallel lines through the chord ends. The proposed check requires
that they are inside a circle. Given an earlier check for the
perpendicular distance to the chord, these are actually almost
equivalent.  So the whole patch is just a clean up.

Thanks,
Alexei

Attachment: hinted_cubic1.png
Description: PNG image

Attachment: hinted_cubic2.png
Description: PNG image

Attachment: freetype-2.4.3-clean.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]