int lineto_(IntPtr to, IntPtr data) { FT.FT_Vector vec = FT.HandleToRecord <FT.FT_Vector>(to); if (LineToEv != null) { LineToEv(new Outline.Point(vec, scale_)); } return(0); }
int conicto_(IntPtr c, IntPtr to, IntPtr data) { FT.FT_Vector cvec = FT.HandleToRecord <FT.FT_Vector>(c); FT.FT_Vector tovec = FT.HandleToRecord <FT.FT_Vector>(to); if (ConicToEv != null) { ConicToEv(new Outline.Point(cvec, scale_), new Outline.Point(tovec, scale_)); } return(0); }
public Point(FT.FT_Vector vec) : this(vec, 1) { }
public Point(FT.FT_Vector vec, float scale) { X = FT.F26Dot6toFloat(vec.x) * scale; Y = FT.F26Dot6toFloat(vec.y) * scale; }
public Outline.Point GetKerning(uint left, uint right) { FT.FT_Vector delta = new FT.FT_Vector(); FT.FT_Get_Kerning(face_, left, right, FT.FT_KERNING_UNFITTED, out delta); return(new Outline.Point(delta, vectorScale_)); }