Results 1 to 2 of 2

Thread: Font Problems

  1. #1

    Default Font Problems

    Hi
    I'm having a little bit of a problem printing text using ClanLib.

    If I add these 2 lines of code to my program it crashes ..
    Code:
    CL_Font font(gc, "Sans");
    gc.set_font(font);
    It displays this in the terminal
    Code:
    Mesa 7.0.3-rc2 implementation error: User called no-op dispatch function (an unsupported extension function?)
    Please report at bugzilla.freedesktop.org
    Mesa 7.0.3-rc2 implementation error: User called no-op dispatch function (an unsupported extension function?)
    Please report at bugzilla.freedesktop.org
    Mesa 7.0.3-rc2 implementation error: User called no-op dispatch function (an unsupported extension function?)
    Please report at bugzilla.freedesktop.org
    Mesa 7.0.3-rc2 implementation error: User called no-op dispatch function (an unsupported extension function?)
    Please report at bugzilla.freedesktop.org
    Exception Thrown - 
    ┴␋⎽␤␊⎽␤@┴␋⎽␤␊⎽␤-␍␊⎽┐├⎺⎻:/P⎼⎺$
    Even if I don't set the font to anything and let the default font remain ..
    Eg -
    Code:
    gc.draw_text(10,10, "Testing");
    Then also it crashes with a Segmentation Fault !!

    Any Idea ?

    PS : this is the command I'm using to compile my program
    Code:
    g++  -lclanApp -lclanCore -lclanDisplay -lclanGL -lfreetype -o test *inputfiles*
    And I'm using Ubuntu (ver 8) ... and ClanLib 0.9 (SVN)

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    This is very strange!

    First, the exception that was thrown is not being displayed correctly.

    There was a fundamental change to exceptions recently, that i have not fully tested on linux. (The CL_Exception class inherits std::exception). I have suspicion that it is when the CL_Exception is caught, it uses "CL_Exception &error", when it used to use "CL_Exception error" throughout all the examples.

    I cannot test this until at least monday.

    Secondly, if would be interesting to find out what is causing "Mesa 7.0.3-rc2 implementation error: User called no-op dispatch function (an unsupported extension function?) Please report at bugzilla.freedesktop.org", As we are not does anything abnormal for the XLib target (as for as i know)

    Which desktop are you running? (gnome, kde etc)

    Can you try running ClanLib-0.9/Tests/Display/Font1 and Font2 example.
    Can you also try running ClanLib-0.9/Tests/GUI/GUIFont example
    Finally there is a XLib test suite, somewhere in ClanLib-0.9/Tests/Display, i cannot remember what it is called. I think it is "window" or "displaywindow" or something like that. It should pass all the tests upto the clipboard on KDE.

Similar Threads

  1. Font rendering acceleration in v0.9
    By z42 in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 02-18-2008, 12:09 PM
  2. Have make font picture tool?
    By DavinciZhe in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 02-13-2008, 08:24 AM
  3. Font loading and the characters
    By Anvilfolk in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 09-14-2007, 05:08 PM
  4. Suggestions for modification to the ClanLib 0.9 Font API
    By rombust in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 08-20-2007, 09:28 AM
  5. I need help using CL_Font with a System font on the Mac
    By eoliveri in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 08-07-2007, 01:59 PM

Bookmarks

Bookmarks

Posting Permissions

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