Posts by Fabio Michel Gessner • 3 points
1 post
-
0
votes1
answer44
viewsQ: Difference in string size with Fontmetrics.charWidth and Fontmetrics.stringWidth
I’m not getting the following code: String text = "C JEA NAV/NAP GRV NAV/ELT NAV SOLA PVC EXP PRETO "; int posString = FONT_METRICS.stringWidth(text); int posChar = 0; for (int i = 0; i <…