Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread Igor Stasenko
On 2 February 2015 at 11:23, Ben Coman b...@openinworld.com wrote: On Mon, Feb 2, 2015 at 8:06 AM, Nicolai Hess nicolaih...@web.de wrote: Ok, the best I could do: Sadly, it only works because I changed the default lcd_filter from cairo. in cairo 1.7. was a public API for the lcd_filter.

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread Igor Stasenko
On 2 February 2015 at 01:06, Nicolai Hess nicolaih...@web.de wrote: Ok, the best I could do: Sadly, it only works because I changed the default lcd_filter from cairo. in cairo 1.7. was a public API for the lcd_filter. since 1.8 this API is private again (the code for the different filter

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread Igor Stasenko
Another idea would be to create a freetype face instance by directly calling freetype library, avoiding any interference with freetype plugin and in-image code for it etc. Because i suspecting there's something with the way it handles options/font matrix etc, that at some point got overridden,

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread p...@highoctane.be
On Mon, Feb 2, 2015 at 10:51 AM, Sven Van Caekenberghe s...@stfx.eu wrote: On 02 Feb 2015, at 01:06, Nicolai Hess nicolaih...@web.de wrote: I do not know, and I'm starting to lose all interest. Nicolai, Please don't give up. Yeah, don't. You rock. You are doing great work and we

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread stepharo
+ 1 ^ 1 Stef Le 2/2/15 10:51, Sven Van Caekenberghe a écrit : On 02 Feb 2015, at 01:06, Nicolai Hess nicolaih...@web.de wrote: I do not know, and I'm starting to lose all interest. Nicolai, Please don't give up. You are doing great work and we are all *very* impressed with your

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread Sven Van Caekenberghe
On 02 Feb 2015, at 11:40, stepharo steph...@free.fr wrote: + 1 ^ 1 You mean, + 1 ** 1, right ;-) Stef Le 2/2/15 10:51, Sven Van Caekenberghe a écrit : On 02 Feb 2015, at 01:06, Nicolai Hess nicolaih...@web.de wrote: I do not know, and I'm starting to lose all interest.

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread Igor Stasenko
On 2 February 2015 at 12:31, Nicolai Hess nicolaih...@web.de wrote: 2015-02-02 10:46 GMT+01:00 Igor Stasenko siguc...@gmail.com: On 2 February 2015 at 01:06, Nicolai Hess nicolaih...@web.de wrote: Ok, the best I could do: Sadly, it only works because I changed the default lcd_filter

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread Nicolai Hess
2015-02-02 11:23 GMT+01:00 Ben Coman b...@openinworld.com: On Mon, Feb 2, 2015 at 8:06 AM, Nicolai Hess nicolaih...@web.de wrote: Ok, the best I could do: Sadly, it only works because I changed the default lcd_filter from cairo. in cairo 1.7. was a public API for the lcd_filter. since

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread Sven Van Caekenberghe
On 02 Feb 2015, at 01:06, Nicolai Hess nicolaih...@web.de wrote: I do not know, and I'm starting to lose all interest. Nicolai, Please don't give up. You are doing great work and we are all *very* impressed with your attitude/drive/motivation, especially since you are covering such a

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread Ben Coman
On Mon, Feb 2, 2015 at 8:06 AM, Nicolai Hess nicolaih...@web.de wrote: Ok, the best I could do: Sadly, it only works because I changed the default lcd_filter from cairo. in cairo 1.7. was a public API for the lcd_filter. since 1.8 this API is private again (the code for the different filter

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-02 Thread Nicolai Hess
2015-02-02 10:46 GMT+01:00 Igor Stasenko siguc...@gmail.com: On 2 February 2015 at 01:06, Nicolai Hess nicolaih...@web.de wrote: Ok, the best I could do: Sadly, it only works because I changed the default lcd_filter from cairo. in cairo 1.7. was a public API for the lcd_filter. since 1.8

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-01 Thread Nicolai Hess
patents! Hours, and days digging in the code for font rendering with cairo. I tried to find out why this colored subpixel antialising is not working although all option settings are set (in cairo) and in the source code of cairo the FT_SetLCDFilter call is really used! But the output does is

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-02-01 Thread Nicolai Hess
Ok, the best I could do: Sadly, it only works because I changed the default lcd_filter from cairo. in cairo 1.7. was a public API for the lcd_filter. since 1.8 this API is private again (the code for the different filter settings is still there). You can choose between FT_LCD_FILTER_NONE

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-31 Thread stepharo
In athens, there are hints you can set. (CairoFontOptions/hintMetricsOff/hintMetricsOn/hintStyleFull ) I played a bit with different settings. Changing this settings change the output, but I can not get it to look like with the freetype plugin. I understand that this can not look equally,

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-26 Thread Nicolai Hess
2015-01-26 11:35 GMT+01:00 Henrik Johansen henrik.s.johan...@veloxit.no: On 25 Jan 2015, at 9:38 , Nicolai Hess nicolaih...@web.de wrote: It looks like this gray-scale vs. colored subpixel antialiasing is an issue on windows. I did the same test on linux (Ubuntu 14.04) (screenshot

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-26 Thread Henrik Johansen
On 25 Jan 2015, at 9:38 , Nicolai Hess nicolaih...@web.de wrote: It looks like this gray-scale vs. colored subpixel antialiasing is an issue on windows. I did the same test on linux (Ubuntu 14.04) (screenshot attached). But still, the font rendering with the freetype plugin (morphic way)

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-25 Thread Nicolai Hess
It looks like this gray-scale vs. colored subpixel antialiasing is an issue on windows. I did the same test on linux (Ubuntu 14.04) (screenshot attached). But still, the font rendering with the freetype plugin (morphic way) looks better than the athens one. any ideas/help?

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-13 Thread stepharo
Le 12/1/15 19:19, stepharo a écrit : Igor once explained to me that FreeType has the possibility to degrade fonts when the family does not provide it. Cairo does not have this possibility. Esteban I'm sure that the same code is used. FreeType is much more advanced than Cairo when it is about

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-13 Thread Esteban Lorenzano
On 13 Jan 2015, at 13:48, stepharo steph...@free.fr wrote: Le 12/1/15 19:19, stepharo a écrit : Igor once explained to me that FreeType has the possibility to degrade fonts when the family does not provide it. Cairo does not have this possibility. Esteban I'm sure that the same code is

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-12 Thread Alexandre Bergel
No idea, but it would be great to improve the situation with the Cairo integration. Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. On Jan 11, 2015, at 6:43 PM, Nicolai Hess

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-12 Thread Esteban Lorenzano
Weird… Both FT plugin and Athens use same library (even same instance)… but could be something on how cairo threats them what makes a difference, I suppose. Esteban On 11 Jan 2015, at 18:43, Nicolai Hess nicolaih...@web.de wrote: Anyone knows, why the text rendering with athens (cairo)

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-12 Thread Nicolai Hess
2015-01-12 19:19 GMT+01:00 stepharo steph...@free.fr: Igor once explained to me that FreeType has the possibility to degrade fonts when the family does not provide it. Cairo does not have this possibility. Esteban I'm sure that the same code is used. FreeType is much more advanced than Cairo

Re: [Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-12 Thread stepharo
Igor once explained to me that FreeType has the possibility to degrade fonts when the family does not provide it. Cairo does not have this possibility. Esteban I'm sure that the same code is used. FreeType is much more advanced than Cairo when it is about fonts. Stef Le 11/1/15 22:43,

[Pharo-dev] athens font rendering and subpixel antialiasing

2015-01-11 Thread Nicolai Hess
Anyone knows, why the text rendering with athens (cairo) looks slightly different than the freetypeplugin one? attached is a screenshot, left side athen right side (morphic) freetypeplugin. It looks like the cairo freetype fontrendering uses CAIRO_ANTIALIAS_GRAY, no colored subpixel