Changed temporary font scan directories to home/config/psfonts and ttfonts

Added installation of official OBOS fonts to proper location in hierarchy


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4188 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-08-02 00:13:30 +00:00
parent a2a6c4bdd7
commit 5b1de832bd
6 changed files with 60 additions and 3 deletions

View File

@ -84,12 +84,14 @@ AppServer::AppServer(void)
// Create the font server and scan the proper directories.
fontserver=new FontServer;
fontserver->Lock();
fontserver->ScanDirectory("/boot/beos/etc/fonts/ttfonts/");
// Used for testing purposes
// TODO: Uncomment when actually put to use. Commented out for speed
// fontserver->ScanDirectory("/boot/beos/etc/fonts/ttfonts/");
// fontserver->ScanDirectory("/boot/beos/etc/fonts/PS-Type1/");
// fontserver->ScanDirectory("/boot/home/config/fonts/ttfonts/");
// fontserver->ScanDirectory("/boot/home/config/fonts/psfonts/");
fontserver->ScanDirectory("/boot/home/config/fonts/ttfonts/");
fontserver->ScanDirectory("/boot/home/config/fonts/psfonts/");
fontserver->SaveList();
if(!fontserver->SetSystemPlain(DEFAULT_PLAIN_FONT_FAMILY,DEFAULT_PLAIN_FONT_STYLE,DEFAULT_PLAIN_FONT_SIZE))

View File

@ -41,6 +41,8 @@ extern FTC_Manager ftmanager;
FT_Library ftlib;
FontServer *fontserver;
//#define PRINT_FONT_LIST
/*!
\brief Access function to request a face via the FreeType font cache
*/
@ -221,6 +223,10 @@ status_t FontServer::ScanDirectory(const char *fontspath)
if(!family)
{
#ifdef PRINT_FONT_LIST
printf("Font Family: %s\n",face->family_name);
#endif
family=new FontFamily(face->family_name);
families->AddItem(family);
}
@ -231,6 +237,10 @@ status_t FontServer::ScanDirectory(const char *fontspath)
continue;
}
#ifdef PRINT_FONT_LIST
printf("\tFont Style: %s\n",face->style_name);
#endif
// Has vertical metrics?
family->AddStyle(path.Path(),face);
validcount++;

View File

@ -1,5 +1,8 @@
SubDir OBOS_TOP src servers app server ;
SubInclude OBOS_TOP src servers app server fonts ;
Depends app_server : install_fonts ;
AddResources app_server : app_server.rsrc ;
UseLibraryHeaders png zlib ;

View File

@ -0,0 +1,4 @@
SubDir OBOS_TOP src servers app server fonts ;
SubInclude OBOS_TOP src servers app server fonts psfonts ;
SubInclude OBOS_TOP src servers app server fonts ttfonts ;

View File

@ -0,0 +1,24 @@
SubDir OBOS_TOP src servers app server fonts psfonts ;
OBOSInstall install_fonts : [ FDirName $(OBOS_FONTS_DIR) psfonts ] :
bchbi.afm
bchr.pfb
cour.afm
courb.pfa
couri.afm
crb-pc8.afm
bchb.afm
bchbi.pfb
bchri.afm
cour.pfa
courbi.afm
couri.pfa
crbi-pc8.afm
bchb.pfb
bchr.afm
bchri.pfb
courb.afm
courbi.pfa
cr-pc8.afm
cri-pc8.afm
;

View File

@ -0,0 +1,14 @@
SubDir OBOS_TOP src servers app server fonts ttfonts ;
OBOSInstall install_fonts : [ FDirName $(OBOS_FONTS_DIR) ttfonts ] :
Vera.ttf
VeraBd.ttf
VeraMoBI.ttf
VeraMoIt.ttf
VeraSe.ttf
VeraBI.ttf
VeraIt.ttf
VeraMoBd.ttf
VeraMono.ttf
VeraSeBd.ttf
;