Re: [Pharo-dev] [ANN] FreeType binding

2016-09-07 Thread Esteban Lorenzano

> On 07 Sep 2016, at 21:39, stepharo  wrote:
> 
> 
>> Hi Thibault!
>> 
>> Is your binding more stable that the one currently in the image?
> Probably
> one idea of esteban was to try what thibault did and enhance it and use it in 
> place of the FT lib. Now if people could have a look
> and let us know it would be great because we are terribly busy.

yes, this would be nice because I’m coming to the idea that the freetype 
problems we have actually comes from FT2Plugin (something about managing 
pointers, etc.) and it would be easier to fix/maintain if we have a full UFFI 
implementation…
and yes, as Stef says right now I do not have the time to look at it, but would 
be really thankful if someone wants to explore this idea.

Esteban

> 
>> Many are experiencing recurrent VM crashes because of this.
>> If your binding is more stable, then you might have a huge impact on all of 
>> us.
>> 
>> Cheers,
>> Alexandre
>> 
>> 
>>> On Sep 6, 2016, at 10:37 AM, Thibault Raffaillac 
>>>  wrote:
>>> 
>>> Hello,
>>> 
>>> I am happy to announce the release of a new FreeType binding :) 
>>> http://smalltalkhub.com/#!/~ThibaultRaffaillac/UFFIFreeType
>>> I use it to render glyphs with OpenGL, so a few features are still missing 
>>> compared to FT2: gamma-space blitting (should belong to OSWindow?), 
>>> GlyphForm class, and subpixel rendering (patch GlyphSlot>>form).
>>> 
>>> FT_Library startUp: true.
>>> face := FT_Face fromFile: 'Arial.ttf' index: 0.
>>> glyph := face glyph.
>>> face setPixelWidth: 0 height: 12.
>>> face loadChar: $x asUnicode flags: 4.
>>> image := glyph form.
>>> 
>>> Cheers,
>>> Thibault
>>> 
>> 
>> 
> 
> 




Re: [Pharo-dev] [ANN] FreeType binding

2016-09-07 Thread stepharo



Hi Thibault!

Is your binding more stable that the one currently in the image?

Probably
one idea of esteban was to try what thibault did and enhance it and use 
it in place of the FT lib. Now if people could have a look

and let us know it would be great because we are terribly busy.


Many are experiencing recurrent VM crashes because of this.
If your binding is more stable, then you might have a huge impact on all of us.

Cheers,
Alexandre



On Sep 6, 2016, at 10:37 AM, Thibault Raffaillac  
wrote:

Hello,

I am happy to announce the release of a new FreeType binding :) 
http://smalltalkhub.com/#!/~ThibaultRaffaillac/UFFIFreeType
I use it to render glyphs with OpenGL, so a few features are still missing compared 
to FT2: gamma-space blitting (should belong to OSWindow?), GlyphForm class, and 
subpixel rendering (patch GlyphSlot>>form).

FT_Library startUp: true.
face := FT_Face fromFile: 'Arial.ttf' index: 0.
glyph := face glyph.
face setPixelWidth: 0 height: 12.
face loadChar: $x asUnicode flags: 4.
image := glyph form.

Cheers,
Thibault









Re: [Pharo-dev] [ANN] FreeType binding

2016-09-06 Thread Alexandre Bergel
Hi Thibault!

Is your binding more stable that the one currently in the image? Many are 
experiencing recurrent VM crashes because of this. 
If your binding is more stable, then you might have a huge impact on all of us.

Cheers,
Alexandre


> On Sep 6, 2016, at 10:37 AM, Thibault Raffaillac 
>  wrote:
> 
> Hello,
> 
> I am happy to announce the release of a new FreeType binding :) 
> http://smalltalkhub.com/#!/~ThibaultRaffaillac/UFFIFreeType
> I use it to render glyphs with OpenGL, so a few features are still missing 
> compared to FT2: gamma-space blitting (should belong to OSWindow?), GlyphForm 
> class, and subpixel rendering (patch GlyphSlot>>form).
> 
> FT_Library startUp: true.
> face := FT_Face fromFile: 'Arial.ttf' index: 0.
> glyph := face glyph.
> face setPixelWidth: 0 height: 12.
> face loadChar: $x asUnicode flags: 4.
> image := glyph form.
> 
> Cheers,
> Thibault
>