Faculty of Information Technology
Software Engineering Group

Opened 2 years ago

Last modified 2 years ago

#208 new defect

[linux-only] Error XftFontDescription does not understand: #xftDrawDestroy during finalization of:

Reported by: Patrik Svestka Owned by:
Priority: major Milestone:
Component: default Keywords:
Cc: Also affects CVS HEAD (eXept version): no

Description (last modified by Patrik Svestka)

This error is shown at StX 6.x on linux

Most likely cause is


The selector #finalize contains:
self xftDrawDestroy

but I could not find #xftDrawDestroy anywhere. I got this error when running test for the #126 on linux (I did not have the windows detection there).

If you have FontTests from #126 you could add the following code (which could be substantially signified - I'm using the test framework where I discovered the error) :

"{ Encoding: utf8 }" !
!FontTests methodsFor:'tests'!

    " Testing long strings display.  
      The test takes shown textView and tries to find out non-white pixels.
    For more visit: https://swing.fit.cvut.cz/projects/stx-jv/ticket/126"

    self skipIf: (DeviceWorkstation current isX11Platform not) description: 'Not a X11 Platform.'. 

    fontList do:[:font | 
        testFontSize do:[:preselectedFontSize |   | setFontSize fontAtSize |
               [   (font size = 0.0) ifTrue:[setFontSize := preselectedFontSize]  "/TrueType font
                                     ifFalse:[setFontSize := font size].          "/Raster font
                   fontAtSize := (font copy asSize:setFontSize) onDevice:textView device.
                   textView font:fontAtSize.
                   textView contents: testString.

                   self assert:(font shouldImplement: 'xftDrawDestroy').

               ] ensure:[textView contents:nil].

    "Created: / 25-04-2018 / 16:29:11 / smalltalk"
! !

Change History (2)

comment:1 Changed 2 years ago by Patrik Svestka

Description: modified (diff)

comment:2 Changed 2 years ago by Patrik Svestka

Description: modified (diff)
Note: See TracTickets for help on using tickets.