Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Cheers, Juan Vuletich
Very nice. Actually you don't need to store them in 32bpp format. Store only alpha component (8 bits is more than enough). Even 4 bits per pixel will give much more nicer look than 1bit. :)
I'm looking forward for a TT fonts with good abstract protocol which allows to cache them in display canvas and manage them nicely. Then i can conversate with font using this protocol to let my GLCanvas do the rest.
On 27/04/07, Juan Vuletich juan@jvuletich.org wrote:
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Cheers, Juan Vuletich
So how did you produce those bitmaps?
Cheers, - Andreas
Juan Vuletich wrote:
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Cheers, Juan Vuletich
Hi Andreas,
I opened a regular "native" text editor, pasted the text, and saved the host OS display on a BMP file. Then I edited it to add the marks that tell the position of each glyph.
Cheers, Juan Vuletich
Andreas Raab escribió:
So how did you produce those bitmaps?
Cheers,
- Andreas
Juan Vuletich wrote:
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Cheers, Juan Vuletich
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Yay, Juan. You GO, guy!
You might be able to avoid the step of manually marking up your text-editor rendering by putting each character on a separate line, followed by , eg, "|" to identify the widths.
Really nice hack -- a great example of malleable software (and a clever mind) at work.
Ciao - Dan
Hi Dan,
Knowing you like something I did means really a lot to me. Thank you Dan!
The problem I see with using a line for each char is that I wouldn't be able to take the bitmap from the display, it would be too big. And it won't be easy to edit with a text editor to tweak glyphs at will... I know it is laborious to prepare the bitmap, but it is dog-simple. I guess this needs some more thinking.
Cheers, Juan Vuletich
Dan Ingalls escribió:
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Yay, Juan. You GO, guy!
You might be able to avoid the step of manually marking up your text-editor rendering by putting each character on a separate line, followed by , eg, "|" to identify the widths.
Really nice hack -- a great example of malleable software (and a clever mind) at work.
Ciao
- Dan
On 27-Apr-07, at 7:13 PM, Juan Vuletich wrote:
The problem I see with using a line for each char is that I wouldn't be able to take the bitmap from the display, it would be too big. And it won't be easy to edit with a text editor to tweak glyphs at will... I know it is laborious to prepare the bitmap, but it is dog-simple. I guess this needs some more thinking.
Since we do, in fact, have plugin code to render very high quality anti-aliased fonts within Squeak, why not simply render each char glyph to a Form, derive the appropriate metrics, add the Form to a composite Form for the StrikeFont glyphs and get all the tedious work done for almost free?
One nontrivial problem with simple StrikeFont type solutions is the kerning pair issue. Systems like Cairo put a fair bit of effort into getting that right and it does make a difference to the visual effect.
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Useful random insult:- Not enough sense to come in out of the rain.
On 27-Apr-07, at 9:38 PM, tim Rowledge wrote:
One nontrivial problem with simple StrikeFont type solutions is the kerning pair issue. Systems like Cairo put a fair bit of effort into getting that right and it does make a difference to the visual effect.
As an example:-
- from Sophie.
-- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: RDRI: Rotate Disk Right Immediate
I agree with the kerning issue. It is one of the disadvantages I talked about in my page.
But, an image that already has FreeType (I guess you're talking about it), what's the need for something like what I did? If you really care about kerning and other issues (like in Sophie), the proper solution is modeling the fonts and rendering them. My solution is for more modest needs, like a programmer that wants to avoid extra complexity and is happy with nice looking code.
Cheers, Juan Vuletich
tim Rowledge escribió:
Since we do, in fact, have plugin code to render very high quality anti-aliased fonts within Squeak, why not simply render each char glyph to a Form, derive the appropriate metrics, add the Form to a composite Form for the StrikeFont glyphs and get all the tedious work done for almost free?
One nontrivial problem with simple StrikeFont type solutions is the kerning pair issue. Systems like Cairo put a fair bit of effort into getting that right and it does make a difference to the visual effect.
tim
tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Useful random insult:- Not enough sense to come in out of the rain.
--No virus found in this incoming message. Checked by AVG Free Edition.Version: 7.5.467 / Virus Database: 269.6.1/778 - Release Date: 27/4/2007 01:39 p.m.
On 28-Apr-07, at 6:33 PM, Juan Vuletich wrote:
I agree with the kerning issue. It is one of the disadvantages I talked about in my page.
But, an image that already has FreeType (I guess you're talking about it), what's the need for something like what I did?
As you say, it might seem like there is little point in using the bitmaps if one has the plugin. However, not all machines are fast enough to render the characters 'live'. There is certainly a useful libration point of functionality where the plugin is used to initially render character glyphs and then the cached glyph is used for actual rendering. The caching could be on the basis of all characters in a font at once, or just the characters used, or predictive caching based on character frequency in the relevant language.
An example of this approach is RISC OS, where they generated cached character glyphs in 1/2 sub-pixel antialised form at need as a way of getting very high quality screen and printer fonts as far back as 1987. On a machine with 1Mb ram and 4mips! If this isn't a plausible way of getting decent fonts on more recent but non-leading-edge machines then I'd be very surprised.
If you really care about kerning and other issues (like in Sophie), the proper solution is modeling the fonts and rendering them. My solution is for more modest needs, like a programmer that wants to avoid extra complexity and is happy with nice looking code.
Indeed - and my suggestion would offer you a relatively easy way of improving that nice facility with a lot less manual hacking. You could also make use of any font on the users machine instead of just the ones that you have spent the time processing, which would surely reduce the wear and tear on your fingertips :-)
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Diagnostics are the programs that run when nothing else will.
I agree with all you say. And you, Andy or anybody is welcome to try that approach. But I'm not doing it, because I'm making my Morphic 3.0 image (where I'm focusing all my energy) as small as possible, and I won't have Freetype. At lease not now.
Cheers, Juan Vuletich
tim Rowledge escribió:
On 28-Apr-07, at 6:33 PM, Juan Vuletich wrote:
I agree with the kerning issue. It is one of the disadvantages I talked about in my page.
But, an image that already has FreeType (I guess you're talking about it), what's the need for something like what I did?
As you say, it might seem like there is little point in using the bitmaps if one has the plugin. However, not all machines are fast enough to render the characters 'live'. There is certainly a useful libration point of functionality where the plugin is used to initially render character glyphs and then the cached glyph is used for actual rendering. The caching could be on the basis of all characters in a font at once, or just the characters used, or predictive caching based on character frequency in the relevant language.
An example of this approach is RISC OS, where they generated cached character glyphs in 1/2 sub-pixel antialised form at need as a way of getting very high quality screen and printer fonts as far back as 1987. On a machine with 1Mb ram and 4mips! If this isn't a plausible way of getting decent fonts on more recent but non-leading-edge machines then I'd be very surprised.
If you really care about kerning and other issues (like in Sophie), the proper solution is modeling the fonts and rendering them. My solution is for more modest needs, like a programmer that wants to avoid extra complexity and is happy with nice looking code.
Indeed - and my suggestion would offer you a relatively easy way of improving that nice facility with a lot less manual hacking. You could also make use of any font on the users machine instead of just the ones that you have spent the time processing, which would surely reduce the wear and tear on your fingertips :-)
tim
tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Diagnostics are the programs that run when nothing else will.
--No virus found in this incoming message. Checked by AVG Free Edition.Version: 7.5.467 / Virus Database: 269.6.2/780 - Release Date: 29/4/2007 06:30 a.m.
Hi Folks,
Dan, I remembered about your technique to OCR Sanskrit text, using histograms of pixel values for rows and columns. Leandro Caniglia told me he learned it at your place on Squeak 10th anniversary. This allowed avoiding the need to mark the bmp files manually. Now, creating nice looking StrikeFonts in Squeak is fast and easy! Your work is always so enlightening!
I updated http://www.jvuletich.org/Squeak/Misc/AAStrikeFonts.zip . I also replaced copyrighted fonts with 6 sizes of Bitstream Vera, free of any legal issues.
Enjoy!
Juan Vuletich
Dan Ingalls escribió:
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Yay, Juan. You GO, guy!
You might be able to avoid the step of manually marking up your text-editor rendering by putting each character on a separate line, followed by , eg, "|" to identify the widths.
Really nice hack -- a great example of malleable software (and a clever mind) at work.
Ciao
- Dan
are you planning to produce a package that can be loaded in 3.9 or 3.10?
Stef
On 1 mai 07, at 21:36, Juan Vuletich wrote:
Hi Folks,
Dan, I remembered about your technique to OCR Sanskrit text, using histograms of pixel values for rows and columns. Leandro Caniglia told me he learned it at your place on Squeak 10th anniversary. This allowed avoiding the need to mark the bmp files manually. Now, creating nice looking StrikeFonts in Squeak is fast and easy! Your work is always so enlightening!
I updated http://www.jvuletich.org/Squeak/Misc/AAStrikeFonts.zip . I also replaced copyrighted fonts with 6 sizes of Bitstream Vera, free of any legal issues.
Enjoy!
Juan Vuletich
Dan Ingalls escribió:
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/ Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Yay, Juan. You GO, guy!
You might be able to avoid the step of manually marking up your text-editor rendering by putting each character on a separate line, followed by , eg, "|" to identify the widths.
Really nice hack -- a great example of malleable software (and a clever mind) at work.
Ciao
- Dan
Well, the zip file is for 3.9 and most likely it is ok for 3.10. I didn't think about a package in SqueakMap if that's what you mean. Anyway, as everybody seemed to like this a lot, perhaps the Release Team includes it in 3.10.
Cheers, Juan Vuletich
stephane ducasse escribió:
are you planning to produce a package that can be loaded in 3.9 or 3.10?
Stef
On 1 mai 07, at 21:36, Juan Vuletich wrote:
Hi Folks,
Dan, I remembered about your technique to OCR Sanskrit text, using histograms of pixel values for rows and columns. Leandro Caniglia told me he learned it at your place on Squeak 10th anniversary. This allowed avoiding the need to mark the bmp files manually. Now, creating nice looking StrikeFonts in Squeak is fast and easy! Your work is always so enlightening!
I updated http://www.jvuletich.org/Squeak/Misc/AAStrikeFonts.zip . I also replaced copyrighted fonts with 6 sizes of Bitstream Vera, free of any legal issues.
Enjoy!
Juan Vuletich
Dan Ingalls escribió:
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Yay, Juan. You GO, guy!
You might be able to avoid the step of manually marking up your text-editor rendering by putting each character on a separate line, followed by , eg, "|" to identify the widths.
Really nice hack -- a great example of malleable software (and a clever mind) at work.
Ciao - Dan
--No virus found in this incoming message. Checked by AVG Free Edition.Version: 7.5.467 / Virus Database: 269.6.2/782 - Release Date: 1/5/2007 02:10 a.m.
Hi Juan,
Great job! It looks very nice. Thank you for your work.
BTW, Just take in mind one topic: Licences.
I know that "real strong hackers" don't care about licenses, but to get an general acceptance of your work you have to be clear about this.
As far as I know, It's not posible to "reuse" the rendering of private fonts.
Can you try your stuff with Bitstream fonts (http://www.gnome.org/fonts/) and Komika?
Cheers,
-- Diego
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Cheers, Juan Vuletich
On Friday 27 April 2007 12:50 pm, Diego Gomez Deck wrote:
Hi Juan, Can you try your stuff with Bitstream fonts (http://www.gnome.org/fonts/) and Komika?
DejaVu (dejavu.sf.net), a Vera derivative, has better Unicode coverage.
Regards .. Subbu
Will take a look. Thanks.
Juan Vuletich
subbukk escribió:
On Friday 27 April 2007 12:50 pm, Diego Gomez Deck wrote:
Hi Juan, Can you try your stuff with Bitstream fonts (http://www.gnome.org/fonts/) and Komika?
DejaVu (dejavu.sf.net), a Vera derivative, has better Unicode coverage.
Regards .. Subbu
Hi Diego,
Thanks for your comments. WRT licenses, I believed that the true type font descriptions were copyrighted, but bitmap fonts could not. And I understand that many people, including you and small-land, are careful on this.
Anyway, any bitmap in the correct format should work. I'll try your suggestion.
Cheers, Juan Vuletich
Diego Gomez Deck escribió:
Hi Juan,
Great job! It looks very nice. Thank you for your work.
BTW, Just take in mind one topic: Licences.
I know that "real strong hackers" don't care about licenses, but to get an general acceptance of your work you have to be clear about this.
As far as I know, It's not posible to "reuse" the rendering of private fonts.
Can you try your stuff with Bitstream fonts (http://www.gnome.org/fonts/) and Komika?
Cheers,
-- Diego
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Cheers, Juan Vuletich
it would be excellent to get a bunch of free fonts like that :) How do you create the different size?
Anyway, any bitmap in the correct format should work. I'll try your suggestion.
Cheers, Juan Vuletich
Diego Gomez Deck escribió:
Hi Juan,
Great job! It looks very nice. Thank you for your work.
BTW, Just take in mind one topic: Licences.
I know that "real strong hackers" don't care about licenses, but to get an general acceptance of your work you have to be clear about this.
As far as I know, It's not posible to "reuse" the rendering of private fonts.
Can you try your stuff with Bitstream fonts (http://www.gnome.org/fonts/) and Komika?
Cheers,
-- Diego
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/ Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Cheers, Juan Vuletich
I prepared each size independently. The zip file includes three of them. To build more, it is needed to prepare more bmp files. As I said before, I took the bits from the display from a text editor and added the marks to find the glyphs by hand with a graphics editor.
In a few days I'll brew some more, but everybody is invited to do whichever they like, and share them for others to use. I.e. anybody can help!
Cheers, Juan Vuletich
stephane ducasse escribió:
it would be excellent to get a bunch of free fonts like that :) How do you create the different size?
Anyway, any bitmap in the correct format should work. I'll try your suggestion.
Cheers, Juan Vuletich
Diego Gomez Deck escribió:
Hi Juan,
Great job! It looks very nice. Thank you for your work.
BTW, Just take in mind one topic: Licences.
I know that "real strong hackers" don't care about licenses, but to get an general acceptance of your work you have to be clear about this.
As far as I know, It's not posible to "reuse" the rendering of private fonts.
Can you try your stuff with Bitstream fonts (http://www.gnome.org/fonts/) and Komika?
Cheers,
-- Diego
Hi Folks,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Cheers, Juan Vuletich
--No virus found in this incoming message. Checked by AVG Free Edition.Version: 7.5.467 / Virus Database: 269.6.1/778 - Release Date: 27/4/2007 01:39 p.m.
Hi Juan,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Good work ! It's really nice to see different approaches to a problem.
Cheers, Andy
Thanks Andy!
Juan Vuletich
Andrew Tween escribió:
Hi Juan,
The Weekly Juan #10 is out at http://www.jvuletich.org/issues/Issue0010.htm .
I managed to get antialiased subpixel rendered fonts in Squeak without modifying any plugin, just with a 13kb change set.
Hope you like it. Any comment is welcome.
Good work ! It's really nice to see different approaches to a problem.
Cheers, Andy
On 27/04/07, Juan Vuletich juan@jvuletich.org wrote:
Hope you like it. Any comment is welcome.
I get artifacts with italics and background colors, see screenshots.
Hi Damien,
I see. Will published a fixed version soon.
Thanks for the report, Juan Vuletich
Damien Pollet escribió:
On 27/04/07, Juan Vuletich juan@jvuletich.org wrote:
Hope you like it. Any comment is welcome.
I get artifacts with italics and background colors, see screenshots.
Hi Juan,
I like your approach. It is much of a benefit without adding much complexity.
The Umlauts öäü don't work. I can see they are contained in the bmp images but they aren't displayed correct in squeak.
I get the following:
ö = ^ ä = o/oo (pro mille) ü = something like a dot
Norbert
Hi Norbert,
My native language is Spanish and I forgot to test unmaluts and accents! Will fix them.
Thanks for the report, Juan Vuletich
Norbert Hartl escribió:
Hi Juan,
I like your approach. It is much of a benefit without adding much complexity.
The Umlauts öäü don't work. I can see they are contained in the bmp images but they aren't displayed correct in squeak.
I get the following:
ö = ^ ä = o/oo (pro mille) ü = something like a dot
Norbert
Ok I see. I did my stuff in my 3.7 derivative, but StrikeFonts have changed in 3.8 or 3.9. I will fix them later today.
Cheers, Juan Vuletich
Norbert Hartl escribió:
Hi Juan,
I like your approach. It is much of a benefit without adding much complexity.
The Umlauts öäü don't work. I can see they are contained in the bmp images but they aren't displayed correct in squeak.
I get the following:
ö = ^ ä = o/oo (pro mille) ü = something like a dot
Norbert
squeak-dev@lists.squeakfoundation.org