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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user