59 StartPoint = outline->
loop;
60 EdgePoint = StartPoint;
62 NextPoint = EdgePoint->
next;
65 if (EdgePoint->
pos.
x != NextPoint->
pos.
x ||
66 EdgePoint->
pos.
y != NextPoint->
pos.
y) {
72 MFOutline =
push(MFOutline, NewPoint);
74 EdgePoint = NextPoint;
75 }
while (EdgePoint != StartPoint);
77 if (MFOutline !=
NULL)
96 while (outline !=
NULL) {
98 if (mf_outline !=
NULL)
99 mf_outlines =
push(mf_outlines, mf_outline);
100 outline = outline->
next;
140 while (EdgePoint != Outline);
161 while (Start !=
NULL) {
213 while (Last != First);
240 while (!
PointAt(EdgePoint)->ExtremityMark)
276 }
while (EdgePoint != Outline);
307 ASSERT_HOST(!
"How did NormalizeOutlines get called in character mode?");
340 for (Current = Start; Current != End; Current =
NextPointAfter (Current))
341 PointAt (Current)->Direction = Direction;
343 PointAt (End)->PreviousDirection = Direction;
369 CurrentPoint =
PointAt(Current);
377 while (Current != First);
419 Start->
Slope = Delta.
y / Delta.
x;
422 if (Start->
Slope > MinSlope)
423 if (Start->
Slope < MaxSlope)
429 else if (Start->
Slope < -MinSlope)
430 if (Start->
Slope > -MaxSlope)
436 else if (Delta.
y > 0)
437 if (Start->
Slope < -MinSlope)
438 if (Start->
Slope > -MaxSlope)
444 else if (Start->
Slope > MinSlope)
445 if (Start->
Slope < MaxSlope)
469 InitialDirection =
PointAt (EdgePoint)->Direction;
475 }
while (
PointAt(EdgePoint)->Direction == InitialDirection &&
void LocalNormTransform(const TPOINT &pt, TPOINT *transformed) const
void CharNormalizeOutline(MFOUTLINE Outline, const DENORM &cn_denorm)
void FreeMFOutline(void *arg)
#define set_rest(l, cell)
MFOUTLINE NextExtremity(MFOUTLINE EdgePoint)
void FindDirectionChanges(MFOUTLINE Outline, FLOAT32 MinSlope, FLOAT32 MaxSlope)
void NormalizeOutline(MFOUTLINE Outline, FLOAT32 XOrigin)
MFOUTLINE NextDirectionChange(MFOUTLINE EdgePoint)
void ChangeDirection(MFOUTLINE Start, MFOUTLINE End, DIRECTION Direction)
MFOUTLINE ConvertOutline(TESSLINE *outline)
void ComputeDirection(MFEDGEPT *Start, MFEDGEPT *Finish, FLOAT32 MinSlope, FLOAT32 MaxSlope)
void destroy_nodes(LIST list, void_dest destructor)
LIST ConvertBlob(TBLOB *blob)
const int kBlnBaselineOffset
void FreeOutlines(LIST Outlines)
#define DegenerateOutline(O)
void * alloc_struct(inT32 count, const char *)
DIRECTION PreviousDirection
LIST ConvertOutlines(TESSLINE *outline, LIST mf_outlines, OUTLINETYPE outline_type)
void MarkDirectionChanges(MFOUTLINE Outline)
#define NextPointAfter(E)
MFEDGEPT * NewEdgePoint()
void free_struct(void *deadstruct, inT32, const char *)
#define MakeOutlineCircular(O)
void NormalizeOutlines(LIST Outlines, FLOAT32 *XScale, FLOAT32 *YScale)
LIST push(LIST list, void *element)