public virtual void MeasureCharacter(char c, ref int width, ref int height) { int[] aBuffer = new int[1]; if (GDI32.GetCharWidth32(DeviceContext, (uint)c, (uint)c, out aBuffer)) { width = aBuffer[0]; } else { width = 0; } //MeasureString(new string(c,1), ref width, ref height); }