[Pharo-project] FreeType scanning Font folders
Hello all, I am preparing a new istoa public release with latest Pharo. I am only using two fonts and I would like FreeType to only scan the Font folder along the .image. Can someone point me where to look to prevent FreeType scanning the host system folders at start up? Thanks -- http://blog.ofset.org/hilaire
On 14.12.2008, at 12:02, Hilaire Fernandes wrote:
Hello all,
I am preparing a new istoa public release with latest Pharo. I am only using two fonts and I would like FreeType to only scan the Font folder along the .image. Can someone point me where to look to prevent FreeType scanning the host system folders at start up?
The font reading is done in FreeTypeFontProvider class>>startUp: I really don't like this font scanning... I wonder if we can delay that somehow. e.g. to the point where the font-chooser is actually opened? Marcus -- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker
would be nice indeed. Stef On Dec 15, 2008, at 4:02 PM, Marcus Denker wrote:
On 14.12.2008, at 12:02, Hilaire Fernandes wrote:
Hello all,
I am preparing a new istoa public release with latest Pharo. I am only using two fonts and I would like FreeType to only scan the Font folder along the .image. Can someone point me where to look to prevent FreeType scanning the host system folders at start up?
The font reading is done in FreeTypeFontProvider class>>startUp:
I really don't like this font scanning... I wonder if we can delay that somehow. e.g. to the point where the font-chooser is actually opened?
Marcus
-- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I just removed the #startup: method, and everything still works fine for fonts ALREADY loaded...even the font selection dialog box. Maybe just a button to rescan on demand? Take care, Rob On Mon, Dec 15, 2008 at 3:31 PM, Stéphane Ducasse <stephane.ducasse@inria.fr
wrote:
would be nice indeed.
Stef
On Dec 15, 2008, at 4:02 PM, Marcus Denker wrote:
On 14.12.2008, at 12:02, Hilaire Fernandes wrote:
Hello all,
I am preparing a new istoa public release with latest Pharo. I am only using two fonts and I would like FreeType to only scan the Font folder along the .image. Can someone point me where to look to prevent FreeType scanning the host system folders at start up?
The font reading is done in FreeTypeFontProvider class>>startUp:
I really don't like this font scanning... I wonder if we can delay that somehow. e.g. to the point where the font-chooser is actually opened?
Marcus
-- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker <http://www.iam.unibe.ch/%7Edenker>
_______________________________________________ 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
In fact, the FontChooserMorph looks simple enough that even I might be able to give that a shot! Rob On Mon, Dec 15, 2008 at 6:22 PM, Rob Rothwell <r.j.rothwell@gmail.com>wrote:
I just removed the #startup: method, and everything still works fine for fonts ALREADY loaded...even the font selection dialog box. Maybe just a button to rescan on demand?
Take care,
Rob
On Mon, Dec 15, 2008 at 3:31 PM, Stéphane Ducasse < stephane.ducasse@inria.fr> wrote:
would be nice indeed.
Stef
On Dec 15, 2008, at 4:02 PM, Marcus Denker wrote:
On 14.12.2008, at 12:02, Hilaire Fernandes wrote:
Hello all,
I am preparing a new istoa public release with latest Pharo. I am only using two fonts and I would like FreeType to only scan the Font folder along the .image. Can someone point me where to look to prevent FreeType scanning the host system folders at start up?
The font reading is done in FreeTypeFontProvider class>>startUp:
I really don't like this font scanning... I wonder if we can delay that somehow. e.g. to the point where the font-chooser is actually opened?
Marcus
-- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker <http://www.iam.unibe.ch/%7Edenker>
_______________________________________________ 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
Here is a change set that adds an "Update" button to the font list dialog. I have never created a change set before, or submitted anything for that matter. I used my full name (not initials), but don't know if I am supposed to do anything else. I like not re-scanning unless you need to, but I bet it might break if the Fonts have NEVER been loaded...I'll have to think about how to test that. You still need to remove FreeTypeFontProvider from the startup list as well... Take care, Rob On Mon, Dec 15, 2008 at 10:02 AM, Marcus Denker <denker@iam.unibe.ch> wrote:
On 14.12.2008, at 12:02, Hilaire Fernandes wrote:
Hello all,
I am preparing a new istoa public release with latest Pharo. I am only using two fonts and I would like FreeType to only scan the Font folder along the .image. Can someone point me where to look to prevent FreeType scanning the host system folders at start up?
The font reading is done in FreeTypeFontProvider class>>startUp:
I really don't like this font scanning... I wonder if we can delay that somehow. e.g. to the point where the font-chooser is actually opened?
Marcus
-- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker <http://www.iam.unibe.ch/%7Edenker>
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
For Sophie I took the tactic of recording the details of the font files that were loaded, on restart we just would re-read the directory (a fast process) then compare the remembered files against the cached list. If there was a difference we would just resolve which were added, changed or deleted and update our list. On 15-Dec-08, at 8:38 PM, Rob Rothwell wrote:
Here is a change set that adds an "Update" button to the font list dialog. I have never created a change set before, or submitted anything for that matter. I used my full name (not initials), but don't know if I am supposed to do anything else.
I like not re-scanning unless you need to, but I bet it might break if the Fonts have NEVER been loaded...I'll have to think about how to test that.
You still need to remove FreeTypeFontProvider from the startup list as well...
Take care,
Rob
On Mon, Dec 15, 2008 at 10:02 AM, Marcus Denker <denker@iam.unibe.ch> wrote:
On 14.12.2008, at 12:02, Hilaire Fernandes wrote:
Hello all,
I am preparing a new istoa public release with latest Pharo. I am only using two fonts and I would like FreeType to only scan the Font folder along the .image. Can someone point me where to look to prevent FreeType scanning the host system folders at start up?
The font reading is done in FreeTypeFontProvider class>>startUp:
I really don't like this font scanning... I wonder if we can delay that somehow. e.g. to the point where the font-chooser is actually opened?
Marcus
-- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
<FontChooserUpdateButton. 1.cs>_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- = = = ======================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com = = = ========================================================================
On 16.12.2008, at 05:38, Rob Rothwell wrote:
Here is a change set that adds an "Update" button to the font list dialog. I have never created a change set before, or submitted anything for that matter. I used my full name (not initials), but don't know if I am supposed to do anything else.
No, thats fine.
I like not re-scanning unless you need to, but I bet it might break if the Fonts have NEVER been loaded...I'll have to think about how to test that.
Yes, we need to think a bit what is most clever... the whole font- picture is not yet completely clear to me. I will check over the holidays.
You still need to remove FreeTypeFontProvider from the startup list as well...
ok -- Marcus Denker -- denker@iam.unibe.ch http://www.iam.unibe.ch/~denker
A scan would be needed when the image is moved to a different platform (Linux vs Win32, say). Just saying as I develop on Win for a Linux end-user application. After making the deployment image it was neccessary to load on Linux and save again to get the correct fonts. Might be different now in the latest FreeType since TextStyles are no longer used... Regards, Gary. ----- Original Message ----- From: Rob Rothwell To: Pharo-project@lists.gforge.inria.fr Sent: Monday, December 15, 2008 11:22 PM Subject: Re: [Pharo-project] FreeType scanning Font folders I just removed the #startup: method, and everything still works fine for fonts ALREADY loaded...even the font selection dialog box. Maybe just a button to rescan on demand? Take care, Rob On Mon, Dec 15, 2008 at 3:31 PM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote: would be nice indeed. Stef On Dec 15, 2008, at 4:02 PM, Marcus Denker wrote: > > On 14.12.2008, at 12:02, Hilaire Fernandes wrote: > >> Hello all, >> >> I am preparing a new istoa public release with latest Pharo. I am >> only >> using two fonts and I would like FreeType to only scan the Font >> folder >> along the .image. >> Can someone point me where to look to prevent FreeType scanning the >> host system folders at start up? >> > > The font reading is done in FreeTypeFontProvider class>>startUp: > > I really don't like this font scanning... I wonder if we can delay > that somehow. > e.g. to the point where the font-chooser is actually opened? > > Marcus > > > -- > Marcus Denker -- denker@iam.unibe.ch > http://www.iam.unibe.ch/~denker > > > _______________________________________________ > 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
participants (6)
-
Gary Chambers -
Hilaire Fernandes -
John M McIntosh -
Marcus Denker -
Rob Rothwell -
Stéphane Ducasse