I have the impression that in case you want to have to run your vm on system not having the freeType plugin. Relying less on C code is a nice option (especially when a guy did all the work). Often people are telling us that we should not do everything in Smalltalk but there this is a nice solution and all in Smalltalk. Stef
Concerning the fonts, I wonder what the win is, now that we have FreeType? Not that I don't like Juan's solution (I even proposed it some time ago for Pharo but then others preferred FreeType). When would FreeType not work and you would fall back to Juan's fonts?
Adrian
On Aug 5, 2009, at 09:50 , Stéphane Ducasse wrote:
Henrik
here is my answer: so I would really like to get enhanced strikefonts in pharo. Now I would like to have the point of view of the font experts.
http://code.google.com/p/pharo/issues/detail?id=1037
Hi Stef,
Stéphane Ducasse wrote:
Hi juan
Ideally in Pharo I would really like to be able to have really nice fonts without relying on external plugin. Now I do not know too much about fonts. Do you know that we could have the best of both worlds: - your idea - freetype.
Stef
Yes, I don't see any reason for not doing so. Load the attached. First 'preliminaries', then the big one.
Enjoy!
Cheers, Juan Vuletich
<EnhancedStrikeFontsForPharo.zip>
On Aug 4, 2009, at 8:05 PM, Stéphane Ducasse wrote:
From: Juan Vuletich <juan <at> jvuletich.org> Subject: [Ann] Enhanced StrikeFonts (antiAliasing , subPixel AA) Newsgroups: gmane.comp.lang.smalltalk.squeak.general Date: 2009-08-03 21:52:47 GMT (20 hours and 12 minutes ago) Hi Folks,
If you update to the latest trunk, you'll load Graphics-jmv.53, Morphic-jmv.138 and System-jmv.118. This is the support for anti aliased StrikeFonts from Cuis. The new 'BitmapDejaVu' font of point size 9 is set as default. I only included size 9 (reg, italic, bold, bold italic) to avoid using too much space in the image. If people want, more sizes can be added.
To do proper antialiasing / subpixel AA _without_ requiring new BitBlt modes, I use RGBMul BitBlt rule, and a second pass with RGBAdd rule. Text looks very good, in any combination of font and background colors, even at lower Display depths and / or glyphs depths.
By default underscore and caret are shown as in standard ASCII. If you prefer the classic ST-80 left and up arrow, evaluate 'StrikeFont useLeftArrow'. To go back to the default, evaluate 'StrikeFont useUnderscore'. I also added 2 preferences #subPixelRenderFonts and #subPixelRenderColorFonts (both default to true).
Andreas, thanks for all your help!
Comments are welcome.
Cheers, Juan Vuletich
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project