pharo
pharo copied to clipboard
AthensSurfaceExamples does not work - FFIUnsupportetUntypedLiteral
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:
Same happens when you run examples in AthensTextRenderExamples
might be fixed with https://github.com/pharo-project/pharo/pull/16562