[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Cubic start and end points
From: |
David Turner |
Subject: |
Re: [ft] Cubic start and end points |
Date: |
Fri, 07 Sep 2007 15:39:53 +0200 |
Hello David,
find the previous contour point. if it is an ON point, this is the start of
your bezier arc,
if it is an CONIC point, then take the middle of both point, and use it as a
"virtual" ON point
in the contour
same goes in the other direction, find next contour point, if it is an ON
point, this is the
end of your bezier arc, if it is a CONIC point, take the middle and use it as a
virtual ON point.
for your information, some Japanese fonts have glyphs whose contours don't
include a single ON point :o)
- David
On Thu, 6 Sep 2007 18:07:11 -0700, "Astle, David" <address@hidden> said:
> I'm using FreeType to extract outline data from TrueType fonts to then
> be rendered in OpenVG. I'm running into an issue where a few characters
> in the font have a contour where either the start or end point is tagged
> as FT_CURVE_TAG_CONIC, rather than FT_CURVE_TAG_ON (as is the case with
> most characters). What is the proper handling of these cases?
>