Results 1 to 2 of 2
  1. #1
    Basit781 is offline Member
    Join Date
    May 2010
    Posts
    47
    Rep Power
    0

    Question question about Font.stringWidth()

    Hi to all,
    Hope you all will be fine. Actually i want to ask. When i code

    Java Code:
    System.out.println( "Basit width is: " + mFont.stringWidth("Basit"));
    it gives me

    Basit width is: 24
    I want to ask why it is giving me 24? Basit is 5 characters long. Please tell me what is this 24 exactly.

    Thanks

  2. #2
    mi14chal is offline Member
    Join Date
    Dec 2010
    Posts
    15
    Rep Power
    0

Similar Threads

  1. Replies: 0
    Last Post: 08-18-2010, 11:31 AM
  2. Font.PLAIN - won't set font style to PLAIN!
    By Unsub in forum New To Java
    Replies: 3
    Last Post: 03-11-2010, 01:13 PM
  3. Replies: 5
    Last Post: 04-25-2009, 09:00 PM
  4. SWT Font Registry Example
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-07-2008, 05:46 PM
  5. Font question
    By orchid in forum Java 2D
    Replies: 1
    Last Post: 08-01-2007, 03:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •