On Dec 17, 2009, at 11:09 01AM, John M McIntosh wrote:
Now I need someone to tell me where it fails when running as a 64bit VM with a 32bit image. No doubt there is a primitive call that needs to be changed, but I'm a bit too tired now to sort thru how the heck the FreeType class works to find out where it fails. (Silently I might add...)
It fails in FreeTypeFontProvider >> updateFromFileEntry: aDirectoryEntry directory: aFileDirectory locationType: aSymbol, on the primitive <primitive: 'primitiveNewFaceFromFileAndIndex' module: 'FT2Plugin'>. The problem is that when loading fonts, this primitive is called for all files, and expected to fail for files not containing fonts... So when it (like now) fails even on font files, then it fails silently. Cheers, Henry Here's a small snippet that should make debugging it simpler from the image side (in case more than one primitive fails, after the first one is fixed :) ) Directory needs to be changed of course, the Font used is the one previously supplied with the Dev image: file := DirectoryEntry name: 'DejaVuSans-Bold.ttf' creationTime: 3436368390 modificationTime: 3436368390 isDirectory: false fileSize: 572908. directory := FileDirectory on: '/Users/henrikjohansen/Pharo/PharoCore-1.0-10477-BETA 2/Fonts/DejaVu'. FreeTypeFontProvider current updateFromFileEntry: file directory: directory locationType: #imageRelative.