×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Jun 2008
    Posts
    593

    Smile Change font style to Bold

    hi...

    m using the following code for Custom font :

    CGraphicsDevice *dev = CEikonEnv::Static()->ScreenDevice();
    TTypefaceSupport tfs;
    dev->TypefaceSupport(tfs,0 );
    aGc.SetPenColor(KRgbWhite);
    CFont* font;
    const CFont* logical_font = AknLayoutUtils::FontFromId(EAknLogicalFontPrimaryFont );
    TFontSpec font_spec = logical_font->FontSpecInTwips();
    TFontSpec myFontSpec(tfs.iTypeface.iName,4*(font_spec.iHeight)/3);
    CEikonEnv::Static()->ScreenDevice()->GetNearestFontToDesignHeightInTwips
    (font, myFontSpec);
    aGc.UseFont(font);
    i want to use Arial Black.. & make it Bold...
    but i got some symbols in place... isnt "Arial Black" supported by phn???
    i knw its possible from TCoeFont but i dnt understand how to relate it wid my code..
    i even tried but got panic...
    plz help...

    Thanks

  2. #2
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Change font style to Bold

    Quote Originally Posted by nital_shah View Post
    hi...

    m using the following code for Custom font :



    i want to use Arial Black.. & make it Bold...
    but i got some symbols in place... isnt "Arial Black" supported by phn???
    i knw its possible from TCoeFont but i dnt understand how to relate it wid my code..
    i even tried but got panic...
    plz help...

    Thanks
    use the following line
    fontSpec1.iFontStyle.SetStrokeWeight(EStrokeWeightBold);
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  3. #3
    Super Contributor
    Join Date
    Jun 2008
    Posts
    593

    Smile Re: Change font style to Bold

    your single line helped me a lott aamit...

    Thanks...

Similar Threads

  1. Arial font and Arial Bold font!!!!!!!
    By Billie.Stokic in forum Symbian User Interface
    Replies: 0
    Last Post: 2009-01-14, 17:46
  2. Change the font of the console application
    By tiyyob in forum Symbian
    Replies: 3
    Last Post: 2008-08-26, 12:05
  3. Replies: 1
    Last Post: 2007-10-30, 08:51
  4. change Label's font in ChoiceGroup
    By xarris_ in forum Mobile Java General
    Replies: 1
    Last Post: 2007-08-13, 07:15
  5. how do you change the size of the font?
    By Nokia_Archive in forum Symbian
    Replies: 1
    Last Post: 2002-05-31, 14:42

Posting Permissions

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