I think that depends on whether it is a fixed width font or not. In a non-fixed-width font the letter 'A' will be wider than the letter 'i'.
I looked into converting points to pixels once a long time ago and found it was not an easy thing to do. Maybe someone else had a differnt experience. You can, however, get the width of a letter or string using the TextWidth method of a Form or PictureBox.
VB Code:
Private Sub Form_Load() Form1.ScaleMode = vbPixels Form1.FontName = "Ariel" Form1.FontSize = "10" Debug.Print "Width in pixels of i = " & Form1.TextWidth("i") Debug.Print "Width in pixels of A = " & Form1.TextWidth("A") End Sub
Greg




Reply With Quote