[Pharo-project] LocaleTest >> #testIsFontAvailable failing
Hi LocaleTest >> #testIsFontAvailable is raising an exception in my image. The problem is that LanguageEnvironment >> #isFontAvailable sends #fallbackFont to a LocigalFont which does not understand this message. The #realFont of the logical font is a FreeTypeFont which doesn't understand #fallbackFont as well. Cheers Philippe
Thanks. I think this simplest thing to do is to change the isFontAvailable as follows: isFontAvailable | encoding f | encoding := self leadingChar + 1. f := TextStyle defaultFont. f isFontSet ifTrue: [ f fontArray at: encoding ifAbsent: [^ false]. ^ true ]. ^ encoding = 1 I.e., to not check with a fallback font as this concept does not seem implemented for all fonts. Adrian On Jul 18, 2009, at 11:29 , Philippe Marschall wrote:
Hi
LocaleTest >> #testIsFontAvailable is raising an exception in my image. The problem is that LanguageEnvironment >> #isFontAvailable sends #fallbackFont to a LocigalFont which does not understand this message. The #realFont of the logical font is a FreeTypeFont which doesn't understand #fallbackFont as well.
Cheers Philippe
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (2)
-
Adrian Lienhard -
Philippe Marschall