Beispiel #1
0
        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);
        }
Beispiel #2
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);
        }
Beispiel #3
0
 public Point(FT.FT_Vector vec) : this(vec, 1)
 {
 }
Beispiel #4
0
 public Point(FT.FT_Vector vec, float scale)
 {
     X = FT.F26Dot6toFloat(vec.x) * scale;
     Y = FT.F26Dot6toFloat(vec.y) * scale;
 }
Beispiel #5
0
 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_));
 }