×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    98

    reduce font size and change the font type in the label

    hi all

    i am using label to display the about page of my application .

    is there any way reduce size of the default fonts . or suggest me any other way to display the text in the screen in

    neat manner.or how to change the font type in the label.


    Thanks in advance

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: reduce font size and change the font type in the label

    You can try this:

    Code:
    	
             CFont* fontUsed;
           _LIT(f,"Arial");
    
            TFontSpec* fontSpec = new TFontSpec(f, 105);
    	TFontStyle* fontStyle = new TFontStyle();
    	fontStyle->SetPosture(EPostureUpright);
    	fontStyle->SetStrokeWeight(EStrokeWeightNormal);
    	fontSpec->iFontStyle = *fontStyle;
    	fontUsed = iCoeEnv->CreateScreenFontL(*fontSpec);
    
    	CEikLabel iDataLabel = new (ELeave) CEikLabel;
    	iDataLabel->SetContainerWindowL(*this);
    	iDataLabel->SetFont(fontUsed);

Similar Threads

  1. how to change font type and size in CEikEdwin control??
    By raj8nokiaforum in forum Symbian
    Replies: 1
    Last Post: 2009-08-19, 07:22
  2. Changing ListBox Font Size\type!
    By amerzannouneh in forum Symbian User Interface
    Replies: 5
    Last Post: 2008-08-25, 16:07
  3. how to change font size?
    By zeinab_b in forum Symbian
    Replies: 1
    Last Post: 2008-07-09, 14:17
  4. how i can change font name, size,type
    By eya360 in forum Mobile Java General
    Replies: 3
    Last Post: 2008-06-17, 09:01
  5. To change font name, size,type in j2ME
    By bvsbh in forum Mobile Java General
    Replies: 0
    Last Post: 2005-11-29, 07:36

Posting Permissions

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