How will I know the width of a character?
i'm creating a program that prints characters to a form using the Printer object and i want to position the text at the center of the form. The solution i am trying to create is by computing its width but how will i know the width of the character as every font type varies? pls help.
i'm creating a program that prints characters to a form using the Printer object and i want to position the text at the center of the form. The solution i am trying to create is by computing its width but how will i know the width of the character as every font type varies? pls help.