Подробности
[В начало]
Проблема в реализации № S0606
Краткое описание
FcDirScan не добавляет шрифты из данной директории
Подробное описание
В описании функции FcDirScan сказано: "Scans an entire directory and adds all fonts found to set". Но при сканировании данной директорию функция FcDirScan добавляет 0 шрифтов, хотя на самом деле в этой директории находятся 2 шрифта.
Раздел стандарта
Fontconfig Developers Reference, Version 2.4.2
Пример
#define FOLDER_PATH "/home/tester/some_dir" //the folder path
FcConfig *fc;
FcFontSet *set;
FcStrSet *dirs;
FcBlanks *blanks;
FcInit ();
if (!(fc = FcConfigGetCurrent ()))
{
printf ("Could not get current config");
}
if (!(set = FcFontSetCreate ()))
{
printf ("Could not create font sets");
}
if (!(dirs = FcStrSetCreate ()))
{
printf ("Could not create str set");
}
if (!(blanks = FcConfigGetBlanks (fc)))
{
printf ("Could not create blanks");
}
FcDirScan (set, dirs, 0, blanks, (FcChar8 *)FOLDER_PATH, FcTrue);
/*
* Scans an entire directory and adds all fonts found to set
*
* set->nfont should be 2
*/
Компонент
fontconfig 2.2.3 or later
Окружение
Дистрибутивы
The problem is appeared in the following distributions:
| Distribution | Architecture | Version |
|---|---|---|
| RedHat 4 | x86_64 | fontconfig 2.2.3 |
| Debian 4 | ia32 | fontconfig 2.4.2 |
| Ubuntu 6.06 | ia32 | fontconfig 2.3.2 |
| SLES 10 | ppc32 | fontconfig 2.3.2 |
| RedHat 4 | ia32 | fontconfig 2.4.1 |
| openSUSE 10.2 | x86_64 | fontconfig 2.4.2 |
| Ubuntu 7.04 | x86_64 | fontconfig 2.4.2 |
Принято
freedesktop.org Bugzilla 12950
[В начало]
»