internal BoundingBox ( FontApi DC ) { // empty box Rect = new PdfRectangle(); // save width in right Rect.Right = DC.WindowsToPdf(DC.ReadInt32()); // save height Double Height = DC.WindowsToPdf(DC.ReadInt32()); // left Rect.Left = DC.WindowsToPdf(DC.ReadInt32()); // top Rect.Top = DC.WindowsToPdf(DC.ReadInt32()); // adjust right = left + width Rect.Right += Rect.Left; // adjust bottom = top - height Rect.Bottom = Rect.Top - Height; // get advanced width Width = DC.WindowsToPdf(DC.ReadInt16()); return; }
internal WinKerningPair ( FontApi DC ) { First = DC.ReadChar(); Second = DC.ReadChar(); KernAmount = DC.WindowsToPdf(DC.ReadInt32()); return; }