×

Discussion Board

Results 1 to 2 of 2

Thread: Font size

  1. #1
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Font size

    I am developeing one application in which i am displaying some images and text. To wrap the text i used to increment x by height/20 but it is not working well in 6300. So i want to increase the x by font size. Is there any way to know the font size which we are using or which is default ?

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Font size

    Font sizes vary significantly between devices, so you should always use the actual size of the font. (In some cases, even different firmware versions of the same device have different font sizes.)

    Code:
    public void paint(Graphics g) {
        int fontHeight = g.getFont().getHeight();
    }
    Cheers,
    Graham.

Similar Threads

  1. Setting font and font size in CAknSettingItemList control?
    By zmiceruk in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-09-22, 06:52
  2. How to control font size displayed in a Cieklabel.
    By smanikandan14 in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-10-04, 13:20
  3. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15
  4. [announce] full screen dot amtrix scroller
    By xchip in forum Symbian
    Replies: 7
    Last Post: 2006-06-08, 22:17
  5. Changing font size in proportion of edwin size
    By Dipakbaviskar in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-02-09, 07:28

Posting Permissions

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