×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Dec 2004
    Location
    St.Petersburg
    Posts
    9

    loading GDR fonrs on Series 60?

    hi folks


    We have trouble loading GDR fonts for our C++ Series 60 application running on Ngage.

    When the code below is executed, system crashes on application closing.

    This problem appears only on device. Emulator version works fine.
    UID for the font is correct one. We checked it with different fonts and the result is the same.

    As far we understand, this is a standard Nokia-recommended way of loading GDR fonts into the system.


    Any suggestions?



    void CNGageFontTestAppView::ConstructL(const TRect& aRect)
    {
    _LI(KTestFont1, "\\system\\apps\\NgageFontTest\\fnttest.gdr");
    TFileName flnm(KTestFont1);
    CompleteWithAppPath(flnm);
    Tint res = CEikonEnv::Static()->ScreenDevice()->AddFile(flnm, ifid);
    TUid uid = 270504055;
    res = CEikonEnv::Static()->ScreenDevice()->GetFontById(iFont, uid, TAlgStyle());

    CreateWindowL();
    SetRect(aRect);
    ActivateL();
    }

    // --------------------------------------------------------------------------
    // Destructor
    // --------------------------------------------------------------------------
    CNGageFontTestAppView::~CNGageFontTestAppView()
    {
    // TODO: Add your destructor here
    CEikonEnv::Static()->ScreenDevice()->ReleaseFont(iFont);
    }
    Last edited by cambion; 2005-03-24 at 18:23.

Posting Permissions

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