Transcript does not handle multiple thread access

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
30 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

Rob Rothwell
Hmm...thanks!  I'll see if I can figure that out...

Rob

On Tue, Jun 2, 2009 at 9:33 AM, Adrian Lienhard <[hidden email]> wrote:
Hi Rob,

I purged the font cache with

FreeTypeFontProvider current initialize

and then opened the font browser (in which I only see Accuny as
expected). When I hit update the progress bar appears, but the list of
fonts does not get updated. If I close the browser and open it again,
I see all fonts.

Cheers,
Adrian

On Jun 2, 2009, at 15:19 , Rob Rothwell wrote:

> A while ago I added an update button to the font browser so you
> could just
> load on demand when you knew you installed a new font...
>
> Rob
>
> On Tue, Jun 2, 2009 at 9:15 AM, Adrian Lienhard <[hidden email]>
> wrote:
>
>>
>> On Jun 2, 2009, at 15:00 , Steve Wirts wrote:
>>
>>> If the font reloading is taking longer than you would like for
>>> startup, you
>>> can disable it from
>>> PreferencesBrowser>>FreeType>>UpdateFontsAtImageStartup
>>
>> Has anybody looked into whether the reloading is actually needed on
>> each startup? Couldn't that be done only when the font browser is
>> opened?
>>
>> Adrian
>>
>>>
>>>
>>> On Sun, May 31, 2009 at 6:24 PM, Carlos Crosetti
>>> <[hidden email]>wrote:
>>>
>>>> Hi, i loaded pharo, did "software update" and saved the image then
>>>> quit.
>>>> Loading again, I no longer see a file-not-found dialog, now I see a
>>>> "FreeType" progress bar, showing and dissapearing twice... what is
>>>> that?
>>>>
>>>> Regards, Carlos
>>>>
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

Gary Chambers-4
In reply to this post by Mariano Martinez Peck
Depends whether you use the same image across multiple OSes...

Regards, Gary
----- Original Message -----
Sent: Tuesday, June 02, 2009 2:21 PM
Subject: Re: [Pharo-project] FreeType?



On Tue, Jun 2, 2009 at 12:15 PM, Adrian Lienhard <[hidden email]> wrote:

On Jun 2, 2009, at 15:00 , Steve Wirts wrote:

> If the font reloading is taking longer than you would like for
> startup, you
> can disable it from
> PreferencesBrowser>>FreeType>>UpdateFontsAtImageStartup

Has anybody looked into whether the reloading is actually needed on
each startup? Couldn't that be done only when the font browser is
opened?

That's exactly why I asked. It seems not necessary for me to be uploaded each time the image starts. How frequently your fonts change?

IMHO this preference must be disable by default.
 
Cheers,

Mariano



Adrian

>
>
> On Sun, May 31, 2009 at 6:24 PM, Carlos Crosetti
> <[hidden email]>wrote:
>
>> Hi, i loaded pharo, did "software update" and saved the image then
>> quit.
>> Loading again, I no longer see a file-not-found dialog, now I see a
>> "FreeType" progress bar, showing and dissapearing twice... what is
>> that?
>>
>> Regards, Carlos
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

Adrian Lienhard

On Jun 2, 2009, at 16:13 , Gary Chambers wrote:

> Depends whether you use the same image across multiple OSes...

That is probably not that often the case, but if, what happens? Would  
the selected fonts fall back to Accuny?

I think we should disable UpdateFontsAtImageStartup by default to not  
have to pay for the scanning on each image startup. People that  
transfer images between different OSes have the possibility to enable  
the preference. OK?

Adrian

>
>
> Regards, Gary
>
>  ----- Original Message -----
>  From: Mariano Martinez Peck
>  To: [hidden email]
>  Sent: Tuesday, June 02, 2009 2:21 PM
>  Subject: Re: [Pharo-project] FreeType?
>
>
>
>
>
>  On Tue, Jun 2, 2009 at 12:15 PM, Adrian Lienhard <[hidden email]>  
> wrote:
>
>
>    On Jun 2, 2009, at 15:00 , Steve Wirts wrote:
>
>> If the font reloading is taking longer than you would like for
>> startup, you
>> can disable it from
>> PreferencesBrowser>>FreeType>>UpdateFontsAtImageStartup
>
>
>    Has anybody looked into whether the reloading is actually needed on
>    each startup? Couldn't that be done only when the font browser is
>    opened?
>
>  That's exactly why I asked. It seems not necessary for me to be  
> uploaded each time the image starts. How frequently your fonts change?
>
>  IMHO this preference must be disable by default.
>
>  Cheers,
>
>  Mariano
>
>
>
>
>    Adrian
>
>
>>
>>
>> On Sun, May 31, 2009 at 6:24 PM, Carlos Crosetti
>> <[hidden email]>wrote:
>>
>>> Hi, i loaded pharo, did "software update" and saved the image then
>>> quit.
>>> Loading again, I no longer see a file-not-found dialog, now I see a
>>> "FreeType" progress bar, showing and dissapearing twice... what is
>>> that?
>>>
>>> Regards, Carlos
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
>    _______________________________________________
>    Pharo-project mailing list
>    [hidden email]
>    http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>  _______________________________________________
>  Pharo-project mailing list
>  [hidden email]
>  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project_______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

Mariano Martinez Peck


On Tue, Jun 2, 2009 at 1:25 PM, Adrian Lienhard <[hidden email]> wrote:

On Jun 2, 2009, at 16:13 , Gary Chambers wrote:

> Depends whether you use the same image across multiple OSes...

That is probably not that often the case, but if, what happens? Would
the selected fonts fall back to Accuny?

I think we should disable UpdateFontsAtImageStartup by default to not
have to pay for the scanning on each image startup. People that
transfer images between different OSes have the possibility to enable
the preference. OK?

+1
 


Adrian

>
>
> Regards, Gary
>
>  ----- Original Message -----
>  From: Mariano Martinez Peck
>  To: [hidden email]
>  Sent: Tuesday, June 02, 2009 2:21 PM
>  Subject: Re: [Pharo-project] FreeType?
>
>
>
>
>
>  On Tue, Jun 2, 2009 at 12:15 PM, Adrian Lienhard <[hidden email]>
> wrote:
>
>
>    On Jun 2, 2009, at 15:00 , Steve Wirts wrote:
>
>> If the font reloading is taking longer than you would like for
>> startup, you
>> can disable it from
>> PreferencesBrowser>>FreeType>>UpdateFontsAtImageStartup
>
>
>    Has anybody looked into whether the reloading is actually needed on
>    each startup? Couldn't that be done only when the font browser is
>    opened?
>
>  That's exactly why I asked. It seems not necessary for me to be
> uploaded each time the image starts. How frequently your fonts change?
>
>  IMHO this preference must be disable by default.
>
>  Cheers,
>
>  Mariano
>
>
>
>
>    Adrian
>
>
>>
>>
>> On Sun, May 31, 2009 at 6:24 PM, Carlos Crosetti
>> <[hidden email]>wrote:
>>
>>> Hi, i loaded pharo, did "software update" and saved the image then
>>> quit.
>>> Loading again, I no longer see a file-not-found dialog, now I see a
>>> "FreeType" progress bar, showing and dissapearing twice... what is
>>> that?
>>>
>>> Regards, Carlos
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
>    _______________________________________________
>    Pharo-project mailing list
>    [hidden email]
>    http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>  _______________________________________________
>  Pharo-project mailing list
>  [hidden email]
>  http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project_______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

Michael Rueger-6
In reply to this post by Adrian Lienhard
Adrian Lienhard wrote:

> On Jun 2, 2009, at 16:13 , Gary Chambers wrote:
>
>> Depends whether you use the same image across multiple OSes...
>
> That is probably not that often the case, but if, what happens? Would  
> the selected fonts fall back to Accuny?
>
> I think we should disable UpdateFontsAtImageStartup by default to not  
> have to pay for the scanning on each image startup. People that  
> transfer images between different OSes have the possibility to enable  
> the preference. OK?

+1

Long term the scanning needs to be much faster and also properly hooked
into the font change mechanism for every platform.
John implemented some caching for Sophie, but we never really got it
fast enough to not be noticable at startup.

Michael

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

Gary Chambers-4
In reply to this post by Adrian Lienhard
Sounds alright.

Regards, Gary

> I think we should disable UpdateFontsAtImageStartup by default to not  
> have to pay for the scanning on each image startup. People that  
> transfer images between different OSes have the possibility to enable  
> the preference. OK?
>
> Adrian
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

Adrian Lienhard
ok, I created an issue and attached a cs that disables the preference:

http://code.google.com/p/pharo/issues/detail?id=863

Adrian

On Jun 2, 2009, at 17:27 , Gary Chambers wrote:

> Sounds alright.
>
> Regards, Gary
>
>> I think we should disable UpdateFontsAtImageStartup by default to not
>> have to pay for the scanning on each image startup. People that
>> transfer images between different OSes have the possibility to enable
>> the preference. OK?
>>
>> Adrian
>>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

Eagle Offshore
In reply to this post by Adrian Lienhard
I would be inclined to make it a 'latch preference'.
It should do the scan on first startup on a new platform and then  
never again unless the user asked or the image is started on a new  
machine.
How to tell if an image was last run on that machine or platform is  
left as an exercise for the implementor. :-)  But that would be the  
most useful behavior.

-Todd Blanchard

On Jun 2, 2009, at 7:25 AM, Adrian Lienhard wrote:

>
> On Jun 2, 2009, at 16:13 , Gary Chambers wrote:
>
>> Depends whether you use the same image across multiple OSes...
>
> That is probably not that often the case, but if, what happens? Would
> the selected fonts fall back to Accuny?
>
> I think we should disable UpdateFontsAtImageStartup by default to not
> have to pay for the scanning on each image startup. People that
> transfer images between different OSes have the possibility to enable
> the preference. OK?
>
> Adrian
>
>>
>>
>> Regards, Gary
>>
>> ----- Original Message -----
>> From: Mariano Martinez Peck
>> To: [hidden email]
>> Sent: Tuesday, June 02, 2009 2:21 PM
>> Subject: Re: [Pharo-project] FreeType?
>>
>>
>>
>>
>>
>> On Tue, Jun 2, 2009 at 12:15 PM, Adrian Lienhard <[hidden email]>
>> wrote:
>>
>>
>>   On Jun 2, 2009, at 15:00 , Steve Wirts wrote:
>>
>>> If the font reloading is taking longer than you would like for
>>> startup, you
>>> can disable it from
>>> PreferencesBrowser>>FreeType>>UpdateFontsAtImageStartup
>>
>>
>>   Has anybody looked into whether the reloading is actually needed on
>>   each startup? Couldn't that be done only when the font browser is
>>   opened?
>>
>> That's exactly why I asked. It seems not necessary for me to be
>> uploaded each time the image starts. How frequently your fonts  
>> change?
>>
>> IMHO this preference must be disable by default.
>>
>> Cheers,
>>
>> Mariano
>>
>>
>>
>>
>>   Adrian
>>
>>
>>>
>>>
>>> On Sun, May 31, 2009 at 6:24 PM, Carlos Crosetti
>>> <[hidden email]>wrote:
>>>
>>>> Hi, i loaded pharo, did "software update" and saved the image then
>>>> quit.
>>>> Loading again, I no longer see a file-not-found dialog, now I see a
>>>> "FreeType" progress bar, showing and dissapearing twice... what is
>>>> that?
>>>>
>>>> Regards, Carlos
>>>>
>>>>
>>>> _______________________________________________
>>>> Pharo-project mailing list
>>>> [hidden email]
>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>>   _______________________________________________
>>   Pharo-project mailing list
>>   [hidden email]
>>   http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project_______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

johnmci
In reply to this post by Michael Rueger-6
Er, well there was a fair amount of improvement. Keep in mind we  
showed the font menu each line in
it's font type, which was expensive so we did the following.

(a) on star tup we would check the list of font files against our  
known list.
This actually happens really fast, the time required is for directory  
reads.

(b) We would merge our saved known list with the new list and kick out
the fonts that were deleted, or the fonts that were new.

(c) For new fonts we had to read and set up in our internal font  
dictionary and
set up in our font's menu image.

(d) we saved the cached font menu forms and list in an image segment.


Thus on  a restart all that was required if there were no font changes
was the reading of the font directorie(s).

On 2-Jun-09, at 7:46 AM, Michael Rueger wrote:

> Adrian Lienhard wrote:
>> On Jun 2, 2009, at 16:13 , Gary Chambers wrote:
>>
>>> Depends whether you use the same image across multiple OSes...
>>
>> That is probably not that often the case, but if, what happens? Would
>> the selected fonts fall back to Accuny?
>>
>> I think we should disable UpdateFontsAtImageStartup by default to not
>> have to pay for the scanning on each image startup. People that
>> transfer images between different OSes have the possibility to enable
>> the preference. OK?
>
> +1
>
> Long term the scanning needs to be much faster and also properly  
> hooked
> into the font change mechanism for every platform.
> John implemented some caching for Sophie, but we never really got it
> fast enough to not be noticable at startup.
>
> Michael
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
=
=
=
========================================================================
John M. McIntosh <[hidden email]>   Twitter:  
squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
=
=
=
========================================================================





_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: FreeType?

Carlos Crosetti-4
In reply to this post by Steve Wirts
its fine, thanks!
-----Mensaje original-----
De: [hidden email] [mailto:[hidden email]]En nombre de Steve Wirts
Enviado el: Martes, 02 de Junio de 2009 10:01 a.m.
Para: [hidden email]
Asunto: Re: [Pharo-project] FreeType?

If the font reloading is taking longer than you would like for startup, you can disable it from PreferencesBrowser>>FreeType>>UpdateFontsAtImageStartup

On Sun, May 31, 2009 at 6:24 PM, Carlos Crosetti <[hidden email]> wrote:
Hi, i loaded pharo, did "software update" and saved the image then quit.
Loading again, I no longer see a file-not-found dialog, now I see a
"FreeType" progress bar, showing and dissapearing twice... what is that?

Regards, Carlos


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
12