pharo icon indicating copy to clipboard operation
pharo copied to clipboard

AthensSurfaceExamples does not work - FFIUnsupportetUntypedLiteral

Open astares opened this issue 1 year ago • 2 comments

In Pharo 13 run

  • AthensSurfaceExamples class>>#draw2Strings
  • AthensSurfaceExamples class>>#drawFontMetrics by clicking on the icon in Calypso.

which gives an FFIUnsupportetUntypedLiteral exception.

Problem is the now more strict FFI and the "NULL" passing in calling cairo_scaled_font_text_to_glyphs API within the FFI method CairoFreetypeFontRenderer>>#convertString:len:ofFont:toGlyphs:numGlyphs:x:y:

Screenshot from 2024-05-13 20 55 26

astares avatar May 13 '24 18:05 astares

Same happens when you run examples in AthensTextRenderExamples

astares avatar May 13 '24 19:05 astares

might be fixed with https://github.com/pharo-project/pharo/pull/16562

astares avatar May 14 '24 20:05 astares