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
+10
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++;