Made scanning of all font folders a compile-time option

Moved the scanning of individual font folders to FontServer
Implemented server-side code for update_font_families
Removed ClientFontList from the build


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13938 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2005-08-12 14:55:46 +00:00
parent 4b9ec73e99
commit d863d4bf1d
5 changed files with 45 additions and 26 deletions
+1 -16
View File
@@ -100,14 +100,7 @@ AppServer::AppServer()
// Create the font server and scan the proper directories.
gFontServer = new FontServer;
gFontServer->Lock();
// Used for testing purposes
// TODO: Re-enable scanning of all font directories when server is actually put to use
gFontServer->ScanDirectory("/boot/beos/etc/fonts/ttfonts/");
// gFontServer->ScanDirectory("/boot/beos/etc/fonts/PS-Type1/");
// gFontServer->ScanDirectory("/boot/home/config/fonts/ttfonts/");
// gFontServer->ScanDirectory("/boot/home/config/fonts/psfonts/");
gFontServer->ScanSystemFolders();
gFontServer->SaveList();
if (!gFontServer->SetSystemPlain(DEFAULT_PLAIN_FONT_FAMILY,
@@ -327,14 +320,6 @@ AppServer::_DispatchMessage(int32 code, BPrivate::LinkReceiver& msg)
break;
}
case AS_UPDATED_CLIENT_FONTLIST:
// received when the client-side global font list has been
// refreshed
gFontServer->Lock();
gFontServer->FontsUpdated();
gFontServer->Unlock();
break;
case AS_QUERY_FONTS_CHANGED:
{
// Client application is asking if the font list has changed since